Get In touch

1 929 450 1916

创建订单


  1. POST /api-json/pms/createorder.aspx?key=271bd87a-60bd-4ef8-b3bc-5192e2e72de310000

查询请求参数

parameter nametyperequiredlengthdescribeexample eg
keyStringrequired api key271bd87a-60bd-4ef8-b3bc-5192e2e72de3

正文请求示例

{
    "customer_ID":"10002",
    "status":"10",
    "from_PersonName":"Lily",
    "from_CountryCode":"US",
    "from_CompanyName":"",
    "from_AddressLine1":"5031 Halison Street",
    "from_AddressLine2":"",
    "from_AddressLine3":"",
    "from_PostalCode":"90503",
    "from_Zip4":"",
    "from_City":"Torrance",
    "from_StateProvinceCode":"CA",
    "from_PhoneNumber":"0000000000",
    "from_TaxNo":"",
    "to_PersonName":"test",
    "to_CountryCode":"US",
    "to_CompanyName":"",
    "to_AddressLine1":"847 Spring Creek Court",
    "to_AddressLine2":"",
    "to_AddressLine3":"",
    "to_PostalCode":"60007",
    "to_Zip4":"",
    "to_City":"Elk Grove Village",
    "to_StateProvinceCode":"IL",
    "to_PhoneNumber":"0000000000",
    "to_TaxNo":"",
    "orderNo":"20210806001",
    "serviceCode":"UPS-G",
    "remark":"备注",
    "Distribution":"配货信息",
    "Source":"来源",
    "items":[
        {
            "Unit":"LB",
            "weight":1,           
            "length":1,
            "width":1,
            "height":1,
            "SKU":"SKU",
            "Quantity":1
        },
        {
            "Unit":"LB",
            "weight":1,          
            "length":1,
            "width":1,
            "height":1,
            "SKU":"SKU",
            "Quantity":1           
        }
    ]
}
 

正文请求参数

Body parameter nameType _Required _Length _Describe _example eg
customer_IDString  customer ID10000
statusString  Order Status10 (draft) or 30 (reviewed/generated (depending on service settings))
from_PersonNameStringrequired sender nameLily
from_CountryCodeStringrequired Shipping country codeUS
from_CompanyNameStringoptional Sending company**.OLD
from_AddressLine1Stringrequired Sending address 15031 Halison Street
from_AddressLine2Stringoptional Sending address 2 
from_AddressLine3Stringoptional Sending address 3 
from_PostalCodeStringrequired send zip code91765
from_Zip4Stringoptional small zip code0000
from_CityString  sender cityLonderzeel
from_StateProvinceCodeStringoptional From Statelonghuaqu
from_PhoneNumberString  Sending contact information0000000000
from_TaxNoString  Shipping Tax ID0000000000
to_PersonNameStringrequired recipient nameLily
to_CountryCodeStringrequired Recipient country codeUS
to_CompanyNameStringoptional receiver**.OLD
to_AddressLine1Stringrequired Recipient address 15031 Halison Street
to_AddressLine2Stringoptional Recipient address 2 
to_AddressLine3Stringoptional Recipient address 3 
to_PostalCodeStringrequired Receiving zip code91765
to_Zip4Stringoptional small zip code0000
to_CityString  Recipient cityLonderzeel
to_StateProvinceCodeStringoptional recipient statelonghuaqu
to_PhoneNumberString  Receiving contact information0000000000
to_TaxNoString  Receiving tax number0000000000
orderNoStringrequired Reference Number/Order Number0000000000
serviceCodeStringrequired service codeUPS
remarkString  Remarktest
DistributionString  Shipping Informationtest
SourceString  sourcetest
itemsJSONrequired package informationThe parameters are as follows
items parameter nametyperequiredlengthdescribeexample eg
UnitStringrequired unitLB/KG LB corresponds to IN KG corresponds to CM
weightfloat  weight1
lengthfloat  long1
widthfloat  Width1
heightfloat  high1
heightfloat  high1
SKUstring  SKUSKU
Quantityint  Quantity of products in the package1

成功响应的示例

{ 
    "result":"success", 
    "code":"100", 
    "No":"Single Number", 
    "serviceCode":"Service Code", 
    "totalRate":"Total Cost", 
    "items":[ 
        { 
            "tracingNo":"waybill number", 
            "description":"description", 
            "amount":fee 
        }, 
        { 
            "tracingNo":"waybill number", 
            "description":"description", 
            "amount":fee 
        } 
    ] 
}
 

失败响应示例

{
    "result":"failure",
    "code":"101",
    "message":"错误信息" 
}
 

响应参数

parameter namedescribetype
result Whether it is successful (success/failure)
codeerror code100 is success
messageprompt descriptionstring

错误代码

the codedescribe
100success
101fail

我们提供丰富的世界级服务和行业经验

服务

地点

联系信息

现在写信给我们

cs@niwopartners.com

Copyright @ 2023 NIWO Partners Inc. All Rights Reserved