Skip to main content

Create FBA Inbound Plan from Purchase Order

POST 

/api/purchase-orders/:purchase_order/fba-inbound-plan

Create a supplier-source FBA draft inbound plan from the PO's open lines and return where the wizard opens (SKU selection).

Required scope: purchase-orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Body:

  • integration_instance_id (integer, required): the Amazon account
  • fba_warehouse_id (integer, required): one of that account's active FBA warehouses (the marketplace to send to)
  • source_warehouse_id (integer, required): one of the PO supplier's warehouses, with a complete address
  • name (string, required, ≤40): plan name

Each open line becomes a plan item at its open quantity (ordered − received − quantity on live FBA/AWD plans for this PO), with the MSKU of the product's listing in that marketplace. The plan is created at skus_selected with purchase_order_id set.

Errors (422): the account or FBA warehouse doesn't match (integration_instance_id, fba_warehouse_id); the PO is not open or is a dropship PO, was partly received into another warehouse, or has nothing left to send (purchase_order); the ship-from isn't the supplier's or its address is incomplete (source_warehouse_id).

Requires the integrations.update permission. Token scopes: purchase-orders and integrations.

Request​

Responses​

OK

Response Headers
    Content-Type