Purchase Shipping Labels
POST /shipping/shipments
Purchase shipping labels for the specified shipping rates.
Request Body required
Section titled “Request Body required ”object
The carrier for which the shipping label is being purchased.
amazon_shipping_v2
Details of the shipment to purchase.
object
The ID of the allocation for which to purchase the shipping label.
The ID of the carrier account to use for this shipment.
The remote shipment ID received in the rates response.
The service type corresponding to the name
field in the rates response.
Whether to notify the customer about the shipment.
Method used to create the shipment, e.g., “single_ship_from_orders_list”.
Sub-carrier ID from the rates response.
Service carrier from the rates response.
Payment method ID, if applicable.
Value-added service confirmation, e.g., “DELIVERY_CONFIRMATION”.
Liability amount for insurance, if applicable.
Whether to create a return label.
Total net charge for the shipping label.
Base rate for the shipping label.
Example
{ "carrier": "amazon_shipping_v2", "shipment": { "allocation_id": "INSERT_ALLOCATION_ID", "carrier_id": "", "remote_shipment_id": "prbXXXXXX which was recieved in the rates response", "service_type": "corresponds to the `name` field in the rates response", "notify_customer": true, "creation_method": "single_ship_from_orders_list", "sub_carrier_id": "`sub_carrier_id` from the rates response", "service_carrier": "`service_carrier` from the rates response", "payment_method_id": null, "value_added_service__VAS_GROUP_ID_CONFIRMATION\"": "DELIVERY_CONFIRMATION", "liability_amount\"": "0.0", "try_inbound_label\"": false, "total_net_charge\"": "$8.56", "base_rate\"": "8.56" }}
Responses
Section titled “ Responses ”Successful response with purchased shipping labels.
object
The ID of the purchased shipping label.
object
The currency unit for the charges.
The total charge for the shipping label.
URL to track the shipment.
URL to download the purchased shipping label.
Example
{ "id": 123456789, "outbound_label_charges": { "unit": "USD", "value": "8.56," }, "tracking_url": "<TRACKING_URL>", "label_url": "<LABEL_URL_PART_FROM_PURCHASE>"}
Bad request. Ensure you are passing valid parameters.
Allocation ID not found or invalid shipping rates provided.
Internal server error during label purchase.