vendorShipments_GetShipmentLabels

Get small parcel transport labels from Amazon.

readamazon_vendorsp.vendorShipments

Amazon SP-API · GetShipmentLabels · GET /vendor/shipping/v1/transportLabels

Call it

In an AI client (MCP)

tools/call
{
  "name": "vendorShipments_GetShipmentLabels",
  "arguments": {
    "store": "myStore-US"
  }
}

From code (Tool API)

curl -X POST https://api.sellersheetai.com/api/v1/tools/vendorShipments_GetShipmentLabels \
  -H "Authorization: Bearer $SELLERSHEET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"store":"myStore-US"}'
Early access — the Tool API is open on request, contact us.

Arguments

NameTypeDescription
storerequiredstringthe store ref `<store>-<CC>` (name-country, e.g. 'myStore-US') — one of get_user_context's store_refs, verbatim.
label_created_afterstring · date-timeISO 8601 — labels created after this. Shipment labels created after this time will be included in the result. This field must be in ISO 8601 datetime format.
label_created_beforestring · date-timeISO 8601 — labels created before this. Shipment labels created before this time will be included in the result. This field must be in ISO 8601 datetime format.
buyer_reference_numberstringFilter by buyer reference number.
vendor_shipment_identifierstringFilter by vendor shipment ID.
seller_warehouse_codestringFilter by vendor warehouse (sellingParty.partyId). Get Shipping labels based on vendor warehouse code. This value must be same as the sellingParty.partyId in the shipment.
limitinteger · 1–50Max records returned, 1–50 (Amazon default 50).
sort_orderstringASC or DESC.ASCDESC
next_tokenstringthe cursor from the previous call's data.nextToken; omit for the first page. A token that you use to retrieve the next page of results. The response includes nextToken when the number of results exceeds the specified pageSize value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until nextToken is null. Note that this operation can return empty pages.

Result

Every tool answers {notification, data, human_action}; data carries:

  • data.transportLabels[] — labelData[] {labelSequenceNumber, trackingId, carrierCode, labelFormat PDF, label (the base-64 PDF)} and shipmentInformation {buyerReferenceNumber, totalLabelCount, shipMode}.
  • data.count — number of labels returned.
  • data.nextToken — pass to next call if present.

Workflow

  • 1. Call with label_created_after/label_created_before, or buyer_reference_number / vendor_shipment_identifier. 2. While data.nextToken is present, call again with it as next_token.

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude