速率(每秒请求数) | 突发 |
---|---|
5 | 15 |
{
"clientReferenceId": "string",
"shipTo": {
"name": "string",
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"stateOrRegion": "string",
"city": "string",
"countryCode": "st",
"postalCode": "string",
"email": "string",
"copyEmails": [
"string"
],
"phoneNumber": "string"
},
"shipFrom": {
"name": "string",
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"stateOrRegion": "string",
"city": "string",
"countryCode": "st",
"postalCode": "string",
"email": "string",
"copyEmails": [
"string"
],
"phoneNumber": "string"
},
"shipDate": "2019-08-24T14:15:22Z",
"serviceType": "Amazon Shipping Ground",
"containers": [
{
"containerType": "PACKAGE",
"containerReferenceId": "string",
"value": {
"value": 0,
"unit": "str"
},
"dimensions": {
"length": 0,
"width": 0,
"height": 0,
"unit": "IN"
},
"items": [
{
"quantity": 0,
"unitPrice": {
"value": 0,
"unit": "str"
},
"unitWeight": {
"unit": "g",
"value": 0
},
"title": "string"
}
],
"weight": {
"unit": "g",
"value": 0
}
}
],
"labelSpecification": {
"labelFormat": "PNG",
"labelStockSize": "4x6"
}
}
curl --location --request POST 'https://sellingpartnerapi-na.amazon.com/shipping/v1/purchaseShipment' \
--header 'Content-Type: application/json' \
--data-raw '{
"clientReferenceId": "string",
"shipTo": {
"name": "string",
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"stateOrRegion": "string",
"city": "string",
"countryCode": "st",
"postalCode": "string",
"email": "string",
"copyEmails": [
"string"
],
"phoneNumber": "string"
},
"shipFrom": {
"name": "string",
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"stateOrRegion": "string",
"city": "string",
"countryCode": "st",
"postalCode": "string",
"email": "string",
"copyEmails": [
"string"
],
"phoneNumber": "string"
},
"shipDate": "2019-08-24T14:15:22Z",
"serviceType": "Amazon Shipping Ground",
"containers": [
{
"containerType": "PACKAGE",
"containerReferenceId": "string",
"value": {
"value": 0,
"unit": "str"
},
"dimensions": {
"length": 0,
"width": 0,
"height": 0,
"unit": "IN"
},
"items": [
{
"quantity": 0,
"unitPrice": {
"value": 0,
"unit": "str"
},
"unitWeight": {
"unit": "g",
"value": 0
},
"title": "string"
}
],
"weight": {
"unit": "g",
"value": 0
}
}
],
"labelSpecification": {
"labelFormat": "PNG",
"labelStockSize": "4x6"
}
}'
{
"shipmentId": "89108749065090",
"serviceRate": {
"billableWeight": {
"value": 4,
"unit": "kg"
},
"totalCharge": {
"value": 3.5,
"unit": "GBP"
},
"serviceType": "Amazon Shipping Standard",
"promise": {
"deliveryWindow": {
"start": "2018-08-25T20:22:30.737Z",
"end": "2018-08-26T20:22:30.737Z"
},
"receiveWindow": {
"start": "2018-08-23T09:22:30.737Z",
"end": "2018-08-23T11:22:30.737Z"
}
}
},
"labelResults": [
{
"containerReferenceId": "CRI123456789",
"trackingId": "1512748795322",
"label": {
"labelStream": "iVBORw0KGgo...AAAARK5CYII=(Truncated)",
"labelSpecification": {
"labelFormat": "PNG",
"labelStockSize": "4x6"
}
}
}
]
}
技术咨询扫码联系作者
SP-API技术咨询,开发者申请,Amazon ERP源码