Get 2D Barcode Data
GET/api/amazon/:integrationInstance/draft-inbound-plans/:draft_inbound_plan/labels/2d-barcode-data
Get the 2D box-content barcode content strings for every box of a packing group that was submitted with the BARCODE_2D content information source. Returns one entry per box with the content string in Amazon's documented AMZN 2D box-content format:
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
AMZN,PO:<shipment reference>,MSKU:<msku>,QTY:<qty>[,EXP:<YYYY-MM-DD>],MSKU:...
The PO: reference is the shipment confirmation ID (FBA…) when available, falling back to the Amazon shipment ID, then PLAN-{id}. Each box item contributes an MSKU:/QTY: pair; EXP: follows the pair it applies to when the item has an expiration date.
Note: this endpoint returns content STRINGS only — PDF417 graphic rendering is deferred (render client-side or in a later phase).
Query parameters:
packing_group_id(integer, required) — the packing group; must belong to this draft inbound plan (404 otherwise)
422 condition: the packing group was not submitted with the BARCODE_2D content information source.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.