fbaInbound_get_labels

Download the box-label PDF of a confirmed shipment (v0 getLabels): the server fetches Amazon's downloadURL, cuts the pages to the label size and returns the PDF base64.

writeAmazon Seller (SP-API)sp.fulfillmentInboundV0

For per-unit FNSKU item labels use fbaInbound_createMarketplaceItemLabels. Amazon SP-API · getLabels · GET /fba/inbound/v0/shipments/{shipmentId}/labels Amazon SP-API · getShipment · GET /inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}

Call it

In an AI client (MCP)

tools/call
{
  "name": "fbaInbound_get_labels",
  "arguments": {
    "store": "myStore-US",
    "inbound_plan_id": "<inbound_plan_id>",
    "shipment_id": "<shipment_id>"
  }
}

From code (Tool API)

curl -X POST https://api.sellersheetai.com/api/v1/tools/fbaInbound_get_labels \
  -H "Authorization: Bearer $SELLERSHEET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"store":"myStore-US","inbound_plan_id":"<inbound_plan_id>","shipment_id":"<shipment_id>"}'
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.
inbound_plan_idrequiredstringthe inboundPlanId (from fbaInbound_createInboundPlan or fbaInbound_listInboundPlans).
shipment_idrequiredstringthe shipmentId (from the placement option's shipmentIds in fbaInbound_listPlacementOptions, or fbaInbound_getInboundPlan once a placement is confirmed). An FBA confirmation id (FBA1234ABCD) also works — Amazon keys labels on it; the server resolves it (data.shipmentConfirmationId).
page_typestringthe label sheet layout — not every layout suits every shipment (Gotchas). Default: PackageLabel_Letter_2. Allowed: PackageLabel_Letter_2 | PackageLabel_Letter_4 | PackageLabel_Letter_6 | PackageLabel_Letter_6_CarrierLeft | PackageLabel_A4_2 | PackageLabel_A4_4 | PackageLabel_Plain_Paper | PackageLabel_Plain_Paper_CarrierBottom | PackageLabel_Thermal | PackageLabel_Thermal_Unified | PackageLabel_Thermal_NonPCP | PackageLabel_Thermal_No_Carrier_Rotation.PackageLabel_Letter_2PackageLabel_Letter_4PackageLabel_Letter_6PackageLabel_Letter_6_CarrierLeftPackageLabel_A4_2PackageLabel_A4_4PackageLabel_Plain_PaperPackageLabel_Plain_Paper_CarrierBottomPackageLabel_ThermalPackageLabel_Thermal_UnifiedPackageLabel_Thermal_NonPCPPackageLabel_Thermal_No_Carrier_RotationDefault: "PackageLabel_Letter_2"
label_typestringthe kind of label — BARCODE_2D box labels, UNIQUE for Transparency-enrolled items, PALLET for LTL/FTL (with number_of_pallets). Default: BARCODE_2D.BARCODE_2DUNIQUEPALLETDefault: "BARCODE_2D"
number_of_packagesintegerpackage labels to print — pass it with page_size on a Non-Partnered or LTL shipment.
package_labels_to_printobject[]CartonIds, to reprint a subset. A list of identifiers that specify packages for which you want package labels printed. If you provide box content information with the FBA Inbound Shipment Carton Information Feed, then PackageLabelsToPrint must match the CartonId values you provide through that feed. If you provide box content information with the Fulfillment Inbound API v2024-03-20, then PackageLabelsToPrint must match the boxID values from the listShipmentBoxes response. If these values do not match as required, the operation returns the IncorrectPackageIdentifier error code.
number_of_palletsintegerpallet labels; with label_type PALLET only.
page_sizeinteger1–1000; REQUIRED on Non-Partnered and LTL shipments (Amazon: "pageSize must be provided for Non-Partnered and LTL Shipments"). The page size for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. Max value:1000.
page_start_indexintegerREQUIRED with page_size on Non-Partnered LTL shipments. The page start index for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments.
label_sizestringthe plan workbook's "FBA Box Label Size" (row 9) — '100x150 mm', '100x100 mm' (bare WxH = mm; '4x6 in' works). Pages are CUT, never scaled: 100x150 keeps Amazon's page as is, 100x100 keeps the top square (where the label sits). Blank = Amazon's bytes untouched.Default: ""
sta_spreadsheet_idstringthe plan workbook (mode A) — the server saves <FBA id>.pdf into the plan's Drive folder and turns three cells into links (STA-Options FBA ID, Manage Shipments fbaId and fbaLabel); you write nothing for them. Omit it in mode B and archive the PDF yourself (start_drive_upload) if the user wants it.Default: ""
plan_folder_idstringoverride the Drive folder (rare).Default: ""
fba_spreadsheet_idstringoverride the FBA spreadsheet for the Manage Shipments link (defaults to the workspace setting).Default: ""

Result

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

  • data.labelData — the PDF, base64 — decode and print.
  • data.labelSize / data.pageCount / data.pageType — what was applied.
  • data.downloadURL — Amazon's presigned URL.
  • data.driveUrl / data.driveFileId / data.fileName — the saved PDF — only with sta_spreadsheet_id or plan_folder_id.
  • data.planFolderId / data.links / data.skipped — the folder, which cells became links ({staOptions, manageShipments}) and why a save was skipped.

Gotchas

  • Not every page type works on every shipment — Amazon answers "Please check the parameter request or call GetValidPageTypesForShipment" when it disagrees (on a Non-Partnered shipment PackageLabel_Letter_2 is refused where PackageLabel_Plain_Paper succeeds): treat the enum as candidates and fall back to PackageLabel_Plain_Paper.

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude