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:
uuid
of the order- Order with
uuid
has a sufficient unshippedamount
(not lower than theamount
provided 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
uuid
can be provided per request. - Don’t submit a negative
amount
value. - The referenced order will change its state to
shipped
if the fullamount
is captured andpartially_shipped
for 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_shipped
toshipped
.