post https://paella-sandbox.billie.io/api/v2/orders/
Purpose:
Updates order information before capture.
- Adding an external code that represents the order ID of the merchant if not already submitted previously.
- Changes the order amount associated with the order.
Preconditions:
uuid
of the order- order is in
state
created
and does not already has aneexternal_code
for an update of 'external_code` - order is in
state
created
orpartially_shipped
for an update of the order amount
Success:
- Response Code: HTTP 204
Attention:
- The value provided under
external_code
(the order number from your backend) will be used by Billie in communication with the buyer after capture. - If an
external_code
was provided at create order or confirm session call the uptade order call will fail, if it is a differentexternal_code
. - Lowering the values under the
amount
object to equal the sum of all partial captures will result in the order state to transition frompartially_shipped
toshipped
. - If the update order call increases the amount of the order, the increased amount will be subject to all checks and validations as a newly created order.
- If any part of the update order call is failing, no changes to the original order will be applied.