post https://paella-sandbox.billie.io/api/v2/invoices
Purpose:
Captures against an order. This can be done against part of the authorised order amount (partial capture) or its entire amount (full capture).
For partial captures, please submit each as a separate request specifying the amount until the full amount of the associated Order is reached.
Preconditions:
id: The unique identifier of the order- Order with
idhas a sufficient unshippedamount(not lower than theamountprovided to be captured). - Invoice Number present as
external_code - Invoice present and reachable for download at
invoice_url
Success:
- Response Code:
HTTP 201 - Response body: 'uuid` -> unique identifier of the capture
Attention:
- Only one order
idcan be provided per request. - Don’t submit a negative
amountvalue. - The referenced order will change its state to
shippedif the fullamountis captured andpartially_shippedfor a capture amount lower then the order amount. - Capturing an order that is already partially shipped with an amount equal to the remaining amount will change the state of the order from
partially_shippedtoshipped.
