- Overview
- Authorization Workflow
- Permissions
- Sandbox
- API Models
- Available API Models
- Request Apidog Access
- OPENAPI SPECIFICATION
- Research Docs
- Amazon Warehousing and Distribution
- Authorization
- Catalog Items
- Catalog [Deprecated]
- Definitions
- Easy Ship
- FBAInbound
- listInboundPlans
- createInboundPlan
- getInboundPlan
- listInboundPlanBoxes
- cancelInboundPlan
- listInboundPlanItems
- updateInboundPlanName
- listPackingGroupBoxes
- listPackingGroupItems
- setPackingInformation
- listPackingOptions
- generatePackingOptions
- confirmPackingOption
- listInboundPlanPallets
- listPlacementOptions
- generatePlacementOptions
- confirmPlacementOption
- getShipment
- listShipmentBoxes
- listShipmentContentUpdatePreviews
- generateShipmentContentUpdatePreviews
- getShipmentContentUpdatePreview
- confirmShipmentContentUpdatePreview
- getDeliveryChallanDocument
- listDeliveryWindowOptions
- generateDeliveryWindowOptions
- confirmDeliveryWindowOptions
- listShipmentItems
- updateShipmentName
- listShipmentPallets
- cancelSelfShipAppointment
- getSelfShipAppointmentSlots
- generateSelfShipAppointmentSlots
- scheduleSelfShipAppointment
- updateShipmentSourceAddress
- updateShipmentTrackingDetails
- listTransportationOptions
- generateTransportationOptions
- confirmTransportationOptions
- listItemComplianceDetails
- updateItemComplianceDetails
- createMarketplaceItemLabels
- listPrepDetails
- setPrepDetails
- getInboundOperationStatus
- getItemEligibilityPreview
- FBAInventory
- FBAOutbound
- Feeds
- Fees
- Finance
- Invoices [Brazil]
- Listings Items
- Merchant Fulfillment
- Orders
- ProductPricing
- Reports
- Sales
- Sellers
- Service
- getServiceJobByServiceJobId
- cancelServiceJobByServiceJobId
- completeServiceJobByServiceJobId
- getServiceJobs
- addAppointmentForServiceJobByServiceJobId
- rescheduleAppointmentForServiceJobByServiceJobId
- assignAppointmentResources
- setAppointmentFulfillmentData
- getRangeSlotCapacity
- getFixedSlotCapacity
- updateSchedule
- createReservation
- updateReservation
- cancelReservation
- getAppointmmentSlotsByJobId
- getAppointmentSlots
- createServiceDocumentUploadDestination
- ShipmentInvoice[Brazil]
- Shipping
- getRatesPOST
- createShipmentPOST
- directPurchaseShipmentPOST
- getShipmentGET
- purchaseShipmentPOST
- cancelShipmentPOST
- oneClickShipmentPOST
- purchaseLabelsPOST
- getTrackingGET
- retrieveShippingLabelPOST
- getShipmentDocumentsGET
- purchaseShipmentPOST
- cancelShipmentPUT
- getRatesPOST
- getAdditionalInputsGET
- getAccountGET
- getCarrierAccountFormInputsGET
- getTrackingInformationGET
- getCarrierAccountsPUT
- linkCarrierAccountPUT
- unlinkCarrierAccountPUT
- generateCollectionFormPOST
- getCollectionFormHistoryPUT
- getUnmanifestedShipmentsPUT
- getCollectionFormGET
- getAccessPointsGET
- Supply Sources
- Tokens
- Uploads
- Notifications
purchaseLabels
Pending
POST
/shipping/v1/shipments/{shipmentId}/purchaseLabels
shipping
Last modified:2024-11-28 09:36:30
Maintainer:Not configured
Rate (requests per second) | Burst |
---|---|
5 | 15 |
Request
Path Params
shipmentId
stringÂ
required
Body Params application/json
The request schema for the purchaseLabels operation.
rateId
stringÂ
required
labelSpecification
object (LabelSpecification)Â
required
labelFormat
enum<string>Â
required
Allowed value:
PNG
labelStockSize
enum<string>Â
required
Allowed value:
4x6
Example
{
"rateId": "string",
"labelSpecification": {
"labelFormat": "PNG",
"labelStockSize": "4x6"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sandbox.sellingpartnerapi-na.amazon.com/shipping/v1/shipments//purchaseLabels' \
--header 'Content-Type: application/json' \
--data-raw '{
"rateId": "string",
"labelSpecification": {
"labelFormat": "PNG",
"labelStockSize": "4x6"
}
}'
Responses
🟢200OK
application/json
Headers
x-amzn-RateLimit-Limit
stringÂ
optional
x-amzn-RequestId
stringÂ
optional
Body
The response schema for the purchaseLabels operation.
payload
object (PurchaseLabelsResult)Â
optional
shipmentId
stringÂ
required
clientReferenceId
stringÂ
optional
<= 40 characters
acceptedRate
object (AcceptedRate)Â
required
labelResults
array[object (LabelResult) {3}]Â
required
errors
array[object (Error) {3}]Â
optional
code
stringÂ
required
message
stringÂ
required
details
stringÂ
optional
Example
{
"shipmentId": "89108749065090",
"clientReferenceId": "911-7267646-6348616",
"acceptedRate": {
"billedWeight": {
"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"
}
}
}
]
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🟠429429
🔴500Server Error
🔴503Service Unavailable