Skip to main content
View as Markdown

Add items to an order from payments

POST 

/orders/:orderId/add-items

Adds order items from existing payments (selected by id) to an unfulfilled order that has not been sent to your fulfillment provider. The order qualifies while no submission has been attempted (lastSubmissionAttemptedAt is empty) and its tplSubmissionStatus is either pending with submitToTplAt still ahead, or one no provider receives the order from: null, skipped_no_route, skipped_no_country, skipped_no_shippable_items, skipped_route_conflict or skipped_integration_inactive. Any other order is refused with a 400, since your provider would never receive the added items: import the payments as an order of their own with POST /orders/import instead. All-or-nothing: if any payment is already imported, missing, not succeeded, reversed, charged back, failed to capture, has no line items belonging to a product enabled for Order Management, or does not match the order's customer/currency, no items are added and every failing payment is reported.

Request​

Responses​