Order Management
This section describes how to update an Afterpay order.
Update The Merchant Reference
If you do not have an order number (merchantReference), at the time of launching the Afterpay Button, you will use the below endpoint when the order is completed.
Using the authToken and token received from the onComplete function, make a PUT request containing the new merchantReference
This call can be made from the front-end or from a back-end service. If you are in the US or Canada, use the following URL:
If you are in Australia use the following URL:
If you are in the UK use the following URL:
Response
authToken valid for 3 hours
This call must be made within 3 hours (180 minutes) of the customer completing the Afterpay, Clearpay (UK) or Cash App Afterpay (US) checkout flow.
Error Codes
Note
The information on this page also applies to Cash App Afterpay (US) and Clearpay (UK).