Order Management
This section describes how to update an Clearpay Button order.
Update The Merchant Reference
If you do not have an order number (merchantReference), at the time of launching the Clearpay Button, 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. Use the following URL:
https://api-plus.eu-sandbox.afterpay.com/v3/button (Sandbox test environment)
https://api-plus.eu.afterpay.com/v3/button (Production environment)
Beware
Make this call within 3 hours (180 minutes) of the customer completing the Clearpay checkout flow.