嗨,我正在尝试使用运输批次,在我创建这样的批次之后:
{"default_carrier_account":"9348***********50","default_servicelevel_token":"usps_priority","metadata":"test","label_filetype":"PDF_4x6","batch_shipments":[{"carrier_account":"93********************","servicelevel_token":"usps_priority","shipment":"c8c411c2ad8b497eb583decf7c3c614d","metadata":1},{"carrier_account":"9348ce6eecf**********ab850","servicelevel_token":"usps_priority","shipment":"768ae43826b04040b32490a6f069fa4f","metadata":2}]}
我收到这样的通知:
batch 0f0b69ae42bc475ab3c1421edddeb4fc creation failed
在此之后我尝试发出 api 请求并获取批处理数据(状态、消息等)。我确实将请求发布到:http ://api.goshippo.com/batches/0f0b69ae42bc475ab3c1421edddeb4fc?page=1
并得到回应:
{
"object_id":"0f0b69ae42bc475ab3c1421edddeb4fc",
"object_owner":"info@skumatrix.com",
"status":"VALIDATING",
"object_created":"2017-04-16T16:35:24.925Z",
"object_updated":"2017-04-16T16:35:27.143Z",
"metadata":"test",
"default_carrier_account":"9***************b850",
"default_servicelevel_token":"usps_priority",
"label_filetype":"PDF_4x6",
"batch_shipments":{
"count":0,
"next":null,
"previous":null,
"results":{
}
},
"object_results":{
"purchase_succeeded":0,
"purchase_failed":0,
"creation_failed":0,
"creation_succeeded":0
},
"label_url":{
}
}
我不明白的是 - 为什么状态仍在验证以及为什么没有错误消息?