Item Receipt

An item receipt transaction records the receipt of returned items from customers. This transaction updates the following information:

The item receipt transaction is available when the Advanced Receiving feature is enabled.

For more details about this type of transaction, see Receiving a Customer Return and Handling Returned Items.

The item receipt record is defined in tranPurch (purchases) XSD.

Supported Operations

add | addList | delete | deleteList | get | getDeleted | getList | getSavedSearch | getSelectValue | initialize / initializeList | search | update | updateList | upsert | upsertList

Note:

You can also use the asynchronous equivalents of SOAP web services list operations. For information about asynchronous operations, see SOAP Web Services Asynchronous Operations. For more information about request processing, see Synchronous Versus Asynchronous Request Processing.

Field Definitions

The SOAP Schema Browser includes definitions for all body fields, sublist fields, search filters, and search joins available to this record. For details, see the SOAP Schema Browser’s item receipt reference page.

Note:

For information about using the SOAP Schema Browser, see SOAP Schema Browser.

Usage Notes

Initializing Item Receipts

You can initialize an item receipt from a Purchase Order, a Return Authorization, a Transfer Order, or an Intercompany Transfer Order.

The SOAP web services initialize operation emulates the UI workflow by prepopulating fields on transaction line items with values from a related record. For more information about this operation, see initialize / initializeList.

Initializing Item Receipts from Transfer Orders

You can enter partial fulfillments and receipts for transfer orders, and track item costs throughout the transfer process. For details, see Fulfilling Transfer Orders. To fulfill partial transfer orders, you must have the Use Item Cost as Transfer Cost preference enabled for that transfer order.

When an item receipt is initialized from a transfer order, the InitializeAuxRefType itemFulfillment parameter is returned in request responses. The returned itemFulfillment parameter specifies the item fulfillment record associated with the transfer order.

For information about how to work with the transfer order record in the UI, see Transferring Inventory. For information about how to work with the record in SOAP web services, see Transfer Order.

The following example shows the initialization of an item receipt using the itemFulfillment parameter from a that was fulfilled twice.

Java

          public void test_item_receipt_from_transfer_order_specify_fulfillment() throws Exception {
ItemReceipt ir = (ItemReceipt) c.initialize(new InitializeRef(null, InitializeRefType.transferOrder, "308", null), InitializeType.itemReceipt, new InitializeAuxRef(null, InitializeAuxRefType.itemFulfillment, "309", null)) 
c.addRecord(ir) 
ItemReceipt ir2 = (ItemReceipt) c.initialize(new InitializeRef(null, InitializeRefType.transferOrder, "308", null), InitializeType.itemReceipt, new InitializeAuxRef(null, InitializeAuxRefType.itemFulfillment, "310", null)) 
c.addRecord(ir2)
} 

        

SOAP Request

          <soapenv:Body>
        <add xmlns="urn:messages_2017_1.platform.webservices.netsuite.com">
            <record xsi:type="ns8:ItemReceipt" xmlns:ns8="urn:purchases_2017_1.transactions.webservices.netsuite.com">
                <ns8:createdDate xsi:type="xsd:dateTime">2016-12-06T22:32:00.000Z</ns8:createdDate>
                <ns8:lastModifiedDate xsi:type="xsd:dateTime">2016-12-06T22:43:00.000Z</ns8:lastModifiedDate>
                <ns8:exchangeRate xsi:type="xsd:double">1.0</ns8:exchangeRate>
                <ns8:currencyName xsi:type="xsd:string">USA</ns8:currencyName>
                <ns8:createdFrom xsi:type="ns9:RecordRef" internalId="308" xmlns:ns9="urn:core_2017_1.platform.webservices.netsuite.com">
                    <ns9:name xsi:type="xsd:string"> #1</ns9:name>
                </ns8:createdFrom>
                <ns8:tranDate xsi:type="xsd:dateTime">2016-12-08T08:00:00.000Z</ns8:tranDate>
                <ns8:postingPeriod xsi:type="ns10:RecordRef" internalId="289" xmlns:ns10="urn:core_2017_1.platform.webservices.netsuite.com">
                    <ns10:name xsi:type="xsd:string">Dec 2016</ns10:name>
                </ns8:postingPeriod>
                <ns8:tranId xsi:type="xsd:string">5</ns8:tranId>
                <ns8:itemFulfillment xsi:type="ns11:RecordRef" internalId="310" xmlns:ns11="urn:core_2017_1.platform.webservices.netsuite.com">
                    <ns11:name xsi:type="xsd:string">Item Fulfillment #7</ns11:name>
                </ns8:itemFulfillment>
                <ns8:currency xsi:type="ns12:RecordRef" internalId="1" xmlns:ns12="urn:core_2017_1.platform.webservices.netsuite.com">
                    <ns12:name xsi:type="xsd:string">USA</ns12:name>
                </ns8:currency>
                <ns8:itemList xsi:type="ns8:ItemReceiptItemList" replaceAll="false">
                    <ns8:item xsi:type="ns8:ItemReceiptItem">
                        <ns8:itemReceive xsi:type="xsd:boolean">true</ns8:itemReceive>
                        <ns8:item xsi:type="ns13:RecordRef" internalId="61" xmlns:ns13="urn:core_2017_1.platform.webservices.netsuite.com">
                            <ns13:name xsi:type="xsd:string">Telephone Headset</ns13:name>
                        </ns8:item>
                        <ns8:orderLine xsi:type="xsd:long">6</ns8:orderLine>
                        <ns8:line xsi:type="xsd:long">6</ns8:line>
                        <ns8:itemName xsi:type="xsd:string">Telephone Headset</ns8:itemName>
                        <ns8:location xsi:type="ns14:RecordRef" internalId="2" xmlns:ns14="urn:core_2017_1.platform.webservices.netsuite.com">
                            <ns14:name xsi:type="xsd:string">Warehouse - West Coast</ns14:name>
                        </ns8:location>
                        <ns8:onHand xsi:type="xsd:double">0.0</ns8:onHand>
                        <ns8:quantityRemaining xsi:type="xsd:double">48.0</ns8:quantityRemaining>
                        <ns8:quantity xsi:type="xsd:double">48.0</ns8:quantity>
                    </ns8:item>
                </ns8:itemList>
            </record>
        </add>
    </soapenv:Body> 

        

SOAP Response

          <soapenv:Body>
        <addResponse xmlns="urn:messages_2017_1.platform.webservices.netsuite.com">
            <writeResponse>
                <platformCore:status isSuccess="true" xmlns:platformCore="urn:core_2017_1.platform.webservices.netsuite.com"/>
                <baseRef xsi:type="platformCore:RecordRef" type="itemReceipt" internalId="409" xmlns:platformCore="urn:core_2017_1.platform.webservices.netsuite.com"/>
            </writeResponse>
        </addResponse>
    </soapenv:Body> 

        

Key Field for ItemReceiptItemList

The orderLine field is used for transforms, because it implies a link between the previous transaction and the current one. For example, to add an item receipt from a purchase order, the purchase order lines would be "orderLines", because the receipt has not been saved. After the item receipt is saved, lines should be accessed through the line field.

Accessing Serial/Lot or Bin Data for Line Items

As of the 2011.2 endpoint, code to access serial number, lot number, and bin number data varies according to whether the Advanced Bin Management / Numbered Inventory Management feature is enabled.

For more details, see Updating SOAP Web Services Code When Advanced Bin / Numbered Inventory Management is Enabled.

Related Topics

General Notices