K5物流软件 API文档
文档首页快件接口(小包/快递)一件代发(仓储)大货中转(仓储)退换标(仓储)设备对接
文档首页快件接口(小包/快递)一件代发(仓储)大货中转(仓储)退换标(仓储)设备对接
  1. 大货中转(仓储)
  • 大货中转创建入库:[ createGStorage]
    POST
  • 查询大货中转入库状态:[getGStorageStatus]
    POST
  • 大货中转查询入库单:[searchGStorage]
    POST
  • 大货中转创建出库:[createGSOrder ]
    POST
  • 大货中转查询出库订单:[ searchGSOrder]
    POST
  • 大货中转查询库存:[ searchGStock ]
    POST
  1. 大货中转(仓储)

大货中转创建入库:[ createGStorage]

POST
http://yqbug.kingtrans.net/PostInterfaceService

请求参数

Query 参数
method
string 
必需
示例值:
createGStorage
Header 参数
Content-Type
string 
可选
默认值:
application/json;charset=UTF-8
Body 参数application/json
Verify
object 
验证信息
必需
Clientid
string 
必需
客户编码(由物流商提供)
Token
string 
必需
验证Token(由物流商提供)
StorageAr
object 
可传多个入库订单
必需
StorageId
string 
传入入库主键ID
必需
HouseId
string 
仓库编码
必需
HeadwayType
string 
必需
"头程方式", 0:自发头程1:代发头程
ContainerNumber
string 
可选
海运柜号(大货中转必传)
SingleNumber
string 
头程单号
可选
Refernumb
string 
客户订单号
可选
Etd
string 
预计发货时间
可选
Eta
string 
预计到货时间
可选
StorageAr
array [object {9}] 
可传多个明细
必需
示例
{
	"Verify": {
		"Clientid": "XC",
	    "Token": "WVFCVUc=ng7kbKSHS6gV0nJvkf8j"
	},
	"StorageAr": [{
			"StorageId": "zsy1001010100",
			"BusinessType": "0",
			"HeadwayType": "0",
			"SingleNumber": "111222",
			"ContainerNumber": "222333",
			"Refernumb": "",
			"RetId": "",
			"Etd": "",
			"Eta": "",
			"HouseId": "xh",
			"StorageItemAr": [{
					"StorageItemId": "zsy100011",
					"GoodsName": "手机",
					"Specification": "规格",
					"Num": "7",
					"Weight": "2",
					"Length": "30",
					"Width": "22",
					"Height": "22"
				},
				{
					"StorageItemId": "zsy100012",
					"GoodsName": "数据线",
					"Specification": "1",
					"Num": "2",
					"Weight": "0.2",
					"Length": "3",
					"Width": "4",
					"Height": "5"
				}
			]
		},
		{
			"StorageId": "zsy100020",
			"BusinessType": "0",
			"HeadwayType": "0",
			"SingleNumber": "1112222",
			"ContainerNumber": "2223323",
			"HouseId": "moscow",
			"StorageItemAr": [{
					"StorageItemId": "zsy100021",
					"GoodsName": "手机 02",
					"Specification": "规格",
					"Num": "7",
					"Weight": "2",
					"Length": "30",
					"Width": "22",
					"Height": "22"
				},
				{
					"StorageItemId": "zsy100022",
					"GoodsName": "数据线 02",
					"Specification": "1",
					"Num": "2",
					"Weight": "0.2",
					"Length": "3",
					"Width": "4",
					"Height": "5"
				}
			]
		}
	]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://yqbug.kingtrans.net/PostInterfaceService?method=createGStorage' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{
	"Verify": {
		"Clientid": "XC",
	    "Token": "WVFCVUc=ng7kbKSHS6gV0nJvkf8j"
	},
	"StorageAr": [{
			"StorageId": "zsy1001010100",
			"BusinessType": "0",
			"HeadwayType": "0",
			"SingleNumber": "111222",
			"ContainerNumber": "222333",
			"Refernumb": "",
			"RetId": "",
			"Etd": "",
			"Eta": "",
			"HouseId": "xh",
			"StorageItemAr": [{
					"StorageItemId": "zsy100011",
					"GoodsName": "手机",
					"Specification": "规格",
					"Num": "7",
					"Weight": "2",
					"Length": "30",
					"Width": "22",
					"Height": "22"
				},
				{
					"StorageItemId": "zsy100012",
					"GoodsName": "数据线",
					"Specification": "1",
					"Num": "2",
					"Weight": "0.2",
					"Length": "3",
					"Width": "4",
					"Height": "5"
				}
			]
		},
		{
			"StorageId": "zsy100020",
			"BusinessType": "0",
			"HeadwayType": "0",
			"SingleNumber": "1112222",
			"ContainerNumber": "2223323",
			"HouseId": "moscow",
			"StorageItemAr": [{
					"StorageItemId": "zsy100021",
					"GoodsName": "手机 02",
					"Specification": "规格",
					"Num": "7",
					"Weight": "2",
					"Length": "30",
					"Width": "22",
					"Height": "22"
				},
				{
					"StorageItemId": "zsy100022",
					"GoodsName": "数据线 02",
					"Specification": "1",
					"Num": "2",
					"Weight": "0.2",
					"Length": "3",
					"Width": "4",
					"Height": "5"
				}
			]
		}
	]
}'

返回响应

🟢200成功
application/json
Body
statusCode
string 
可选
状态 (success:成功,error:失败)
returnDatas
array [object {5}] 
可选
statusCode
string 
可选
状态 (success:成功,error:失败)
StorageId
string 
对接方入库主键
可选
boxurl
string 
箱唛标签打印地址
可选
MergeSheetId
string 
入库主键编码
可选
itemReultAr
object 
可选
示例
{
    "statusCode": "string",
    "returnDatas": [
        {
            "statusCode": "string",
            "StorageId": "string",
            "boxurl": "string",
            "MergeSheetId": "string",
            "itemReultAr": {
                "statusCode": "string",
                "StorageItemId": "string",
                "SheetId": "string",
                "BoxCode": "string"
            }
        }
    ]
}
修改于 2023-09-13 06:31:55
下一页
查询大货中转入库状态:[getGStorageStatus]
Built with