Get Payment By Token
This endpoint retrieves an individual payment along with its order details.
Connection Timeouts
Authentication
AuthorizationBasic
Basic authentication of the form Basic <base64(username:password)>.
Path parameters
token
Order token that was used to complete payment.
Headers
User-Agent
Accept
Response
Returns a Payment object in response.
id
The unique, permanent, Afterpay generated Order ID.
token
The token obtained from the checkout call
status
represents the status of the order
Allowed values:
created
The UTC timestamp of when the order was created.
originalAmount
Object containing amount and currency
openToCaptureAmount
Object containing amount and currency
paymentState
is the current state for capturing payments
merchantReference
is the merchant’s order id/reference that the payment corresponds to.
refunds
An array of refunds, voids, and reversals. Note: in response to a Capture Full Payment call, this array will always be empty, since refunds cannot occur until payment is captured.
orderDetails
This comprehensive schema is designed to store an entire transaction's detail, covering crucial aspects like consumer information, billing and shipping details, courier particulars, item list, discounts, tax, and shipping amount.
events
Errors
404
Not Found Error