- 接口配置化
- PLM提供
- 验证引擎
- 单号配置获取
- 引擎
- 引擎-配置管理
产品服务交货信息组关联配置
正式环境
https://occ.yanwentech.com
正式环境
https://occ.yanwentech.com
POST
/gateway/router
缓存2分钟
请求参数
Header 参数
appKey
string
系统名称
requestId
string
必需
method
string
必需
示例值:
supplier.interface_delivery.get
Body 参数application/json
productCode
string
产品编号
serviceCode
string
服务编号
epHandoverPlace
string
EP交接地(地点编号)
orderData
object
订单结构
示例
{
"productCode": "158",
"serviceCode": "8908316",
"epHandoverPlace": "201116",
"orderData": {
"OrderNo": "testuspbz202404230002",
"CustomerOrderNo": "testuspbz202404230002",
"CustomerCode": "100000",
"RoutingCode": "",
"Express": {
"TotalWeight": 2030,
"SupplierWeight": 2040,
"WeightUnit": "g",
"TotalValue": 29.2,
"TotalPiece": 1,
"ExpressLength": 0,
"ExpressWidth": 0,
"ExpressHigh": 0,
"CurrencyCode": "USD",
"CurrencyId": 1,
"ReceiveDate": "2024-04-23",
"OutWarehouse": "03",
"PickupWarehouse": "03",
"SortCode": "",
"WrapType": 0,
"IsReassignment": 0,
"RouteLevelProperty": "P10"
},
"Receiver": {
"ReceiverName": "LEFEVRE sebastien",
"ReceiverCompany": "",
"ReceiverPhone": "0685716183",
"ReceiverMobile": "0685716183",
"ReceiverEmail": "",
"ReceiverAddress1": "28 OCCIDENTAL CT",
"ReceiverAddress2": "",
"ReceiverZipCode": "27520-5426",
"ReceiverCity": "CLAYTON",
"ReceiverState": "NC",
"ReceiverTaxId": "",
"ReceiverCountryCode": "US",
"ReceiverCountryEn": "America"
},
"Goods": [
{
"ChineseName": "喷粉器",
"EnglishName": "duster",
"HSCode": "630710",
"DeclaredValue": 29.2,
"DeclaredWeight": 501,
"DeclaredItemCount": 1,
"MoreGoodsName": ""
}
],
"Shipper": {
"ShipperTaxId": ""
}
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://occ.yanwentech.com/gateway/router' \
--header 'appKey;' \
--header 'requestId;' \
--header 'method: supplier.interface_delivery.get' \
--header 'Content-Type: application/json' \
--data-raw '{
"productCode": "158",
"serviceCode": "8908316",
"epHandoverPlace": "201116",
"orderData": {
"OrderNo": "testuspbz202404230002",
"CustomerOrderNo": "testuspbz202404230002",
"CustomerCode": "100000",
"RoutingCode": "",
"Express": {
"TotalWeight": 2030,
"SupplierWeight": 2040,
"WeightUnit": "g",
"TotalValue": 29.2,
"TotalPiece": 1,
"ExpressLength": 0,
"ExpressWidth": 0,
"ExpressHigh": 0,
"CurrencyCode": "USD",
"CurrencyId": 1,
"ReceiveDate": "2024-04-23",
"OutWarehouse": "03",
"PickupWarehouse": "03",
"SortCode": "",
"WrapType": 0,
"IsReassignment": 0,
"RouteLevelProperty": "P10"
},
"Receiver": {
"ReceiverName": "LEFEVRE sebastien",
"ReceiverCompany": "",
"ReceiverPhone": "0685716183",
"ReceiverMobile": "0685716183",
"ReceiverEmail": "",
"ReceiverAddress1": "28 OCCIDENTAL CT",
"ReceiverAddress2": "",
"ReceiverZipCode": "27520-5426",
"ReceiverCity": "CLAYTON",
"ReceiverState": "NC",
"ReceiverTaxId": "",
"ReceiverCountryCode": "US",
"ReceiverCountryEn": "America"
},
"Goods": [
{
"ChineseName": "喷粉器",
"EnglishName": "duster",
"HSCode": "630710",
"DeclaredValue": 29.2,
"DeclaredWeight": 501,
"DeclaredItemCount": 1,
"MoreGoodsName": ""
}
],
"Shipper": {
"ShipperTaxId": ""
}
}
}'
返回响应
🟢200成功
application/json
Body
success
boolean
请求是否成功
code
integer
必需
message
string
错误提示
data
object
必需
productCode
string
产品编号
serviceCode
string
服务编号
epHandoverPlace
string
EP交接地(地点编号)
specialRule
string | null
特殊规则
deliveryCode
string
交货信息编号
apiAccountCode
string
接口账号编号
apiConfigGroup
array [object {2}]
接口配置组
示例
{
"success": true,
"code": 200,
"message": "操作成功",
"data": {
"productCode": "202204180009996",
"serviceCode": "5168308",
"epHandoverPlace": "200844",
"specialRule": "",
"deliveryCode": "AD16904291757430056",
"apiAccountCode": "AC0001",
"apiConfigGroup": [
{
"code": "I0001",
"type": "lm.order.create"
},
{
"code": "I0002",
"type": "lm.order.create"
},
{
"code": "I0003",
"type": "lm.order.query"
}
]
}
}
修改于 2024-05-29 09:00:33