Get Payment By Order ID
This endpoint retrieves an individual payment along with its order details.
**Connection Timeouts**
| Timeout | Time (Seconds) |
|---------|----------------|
| Open | 10 |
| Read | 20 |
Authentication
AuthorizationBasic
Basic authentication of the form Basic <username:password>.
Path parameters
orderId
The unique ID of the Afterpay Order, for which a Payment event has been completed.
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 payment was completed.
originalAmount
Total amount charged to the customer for the order.
openToCaptureAmount
Remaining amount that can be captured. Will always be zero for Immediate Payment Flow orders.
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. Note: in response to a Capture Full Payment call, this array will always be empty, since refunds cannot occur until payment is captured.
orderDetails
The details of the order bound to the payment.
events
One or more payment events that have occurred against the order.
agreements
List of billing agreements created if any (field omitted if empty)