Create/Modify ASN

Request Service

  • createAsn

Request Method:

  • POST

Request Sample:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.example.org/">
    <SOAP-ENV:Body>
        <ns1:callService>
            <paramsJson>
                {
                  "reference_no":"test-dfdfd1399866764",
                  "transit_type":"1",
                  "warehouse_code":"WPLA",
                  "shipping_type":"1",
                  "loading_method":"0",
                  "cabinet_type":"1",
                  "tracking_number":"12313213",
                  "receiving_desc":"dfdfdf",
                  "eta_date":"2020-04-15",
                  "verify":"1",
                  "stock_type":"0",
                  "seller_id":"seller",
                  "items":[
                    {
                      "product_sku":"HOG102329",
                      "quantity":"10",
                      "box_no":"1",
                      "vat_tax_number":"vat001"
                    },
                    {
                      "product_sku":"HOG102329",
                      "quantity":"10",
                      "box_no":"2",
                      "vat_tax_number":null
                    }
                  ]
                }
            </paramsJson>
            <appToken>appToken</appToken>
            <appKey>appKey</appKey>
            <service>createAsn</service>
        </ns1:callService>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Request Parameter:

Parameter Type Required Remark Length Limited
receiving_code String N ASN No,If available means to update an ASN 30
reference_no String Y Customer referenece no 200
transit_type int N Transit type :1 By Customer, 2 By Western Post
warehouse_code String Y Warehouse code 20
shipping_type String Y Shipping type:1:Ocean,2:Air feight,3:Express,4:Pallet
loading_method String N Loading method: 0 ground pile 1 pallet()
cabinet_type String Y Cabinet type:0:None,1:40HQ,2:45HQ,3:20GP,4:40GP,5:45PLWD,6:53HQ
tracking_number String N Tracking Number/Container No 50
receiving_desc String N ASN remark 200
receiving_type String N ASN type:0.Normal,10.Return from FBA
eta_date date N ETA date
verify int N 0: Save as draft 1: Submit ASN to Warehouse
stock_type String N Inventory attribute: 0: normal, 1: pre-sale (the products in the container have been pre sold on the platform, and need to be sent quickly after arrival). The default value is 0
email_of_towing_cabinet String N Notice email 300
seller_id String N Seller ID 128
items Object Y refer to items object

items:

Parameter Type Required Remark Length Limited
product_sku String Y SKU 50
quantity int Y Quantity
box_no String Y Box no 50
vat_tax_number String N VAT tax number 30

Response Sample:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SOAP-ENV:Envelope xmlns:ns1="http://www.example.org/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body>
        <ns1:callServiceResponse>
            <response>
                {
                  "ask":"Success",
                  "message":"Success",
                  "nextPage":false,
                  "receiving_code":"RV-XX-200101-0001"
                }
            </response>
        </ns1:callServiceResponse>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response Parameter:

Parameter Type Remark
ask String Request Result: success or failure
message String Response message
nextPage boolean Identify if have next page or not
receiving_code String ASN Code
Error Object Reference to Error section
作者:WesternPost  创建时间:2021-06-30 23:52
最后编辑:覃超华  更新时间:2024-12-31 02:56