Update Payment by Order ID
This endpoint is to create merchant side order ID's following the Afterpay order ID creation. The endpoint should be called immediately after the Afterpay order is created.
Authentication
AuthorizationBasic
Basic authentication of the form Basic <username:password>.
Path parameters
orderId
The Order ID to update
Headers
User-Agent
Accept
Request
This endpoint expects an object.
merchantReference
The merchant’s new order id to replace with
Response
Returns object containing the following attributes.
id
The unique Afterpay (merchant payment) payment Id
token
Checkout token to be used to complete consumer checkout and payment.
status
“APPROVED” (update is only valid for successful orders)
created
The payment creation time (ISO 8601 UTC/Zulu time).
originalAmount
Total amount for the order. See Money.
openToCaptureAmount
Total amount that can be captured for order. See Money.
paymentState
Available states: “AUTH_APPROVED”, “CAPTURED”, “VOIDED”, “EXPIRED”, “AUTH_DECLINED”, “PARTIALLY_CAPTURED”, “CAPTURE_DECLINED""
merchantReference
refunds
The refund details for merchant's order. See Refund.
orderDetails
The order bound to the payment. See Order Details.
events
Event list for for merchant's order. See Events.