Orders

Charge products to existing orders in bulk. Every product provided will be charged to every order provided, using the payment method already on each order. Charges are processed asynchronously and large batches may take several minutes to complete. A 202 response returns a batch_id that can be polled with the batch status endpoint to see the outcome of each charge.

post/orders/batch-add-to-order

Request body

order_idsinteger[] required

The IDs of the orders to charge. Maximum of 5000 orders per request.

product_idsinteger[] required

The IDs of the products to add to each order. Maximum of 25 products per request.

Example request

{
  "order_ids": [
    12345,
    12346
  ],
  "product_ids": [
    678,
    679
  ]
}

Response

Request accepted. Charges will be processed asynchronously. Poll the returned batch_id for results.

Changes

No recorded changes to this endpoint across all 1 revision of this API.