Skip to main content

Set Prep Details

POST 

/api/amazon/:integrationInstance/draft-inbound-plans/:draft_inbound_plan/set-prep-details

Sets Amazon SP-API prep details (prep category + prep types) for MSKUs on the draft inbound plan whose prep category is unknown. The request is forwarded to Amazon's setPrepDetails operation for the plan's marketplace (derived from the destination warehouse's country); Amazon's raw response (an operationId you can use to correlate the asynchronous SP-API operation) is returned under data.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Request body fields:

  • mskuPrepDetails (array, required) — one entry per MSKU
  • mskuPrepDetails[].msku (string, required) — the Amazon seller SKU
  • mskuPrepDetails[].prepCategory (string, required) — one of ADULT, BABY, FC_PROVIDED, FRAGILE, GRANULAR, HANGER, LIQUID, NONE, PERFORATED, SET, SHARP, SMALL, TEXTILE
  • mskuPrepDetails[].prepTypes (array of strings, required) — SP-API prep types (e.g. ITEM_POLYBAGGING, ITEM_BUBBLEWRAP, ITEM_LABELING, ITEM_NO_PREP)

Business rule: when prepCategory is NONE, prepTypes must include ITEM_NO_PREP (422 otherwise). A 422 is also returned when Amazon rejects the request.

Request

Responses

OK

Response Headers
    Content-Type