> This page is for Afterpay Online Developer, version v1.
> For other versions, use one of these documentation indexes:
> - Main (default): https://developers.afterpay.com/afterpay-online-developer/main/llms.txt
> - v1: https://developers.afterpay.com/afterpay-online-developer/v-1/llms.txt
> - Chinese: https://developers.afterpay.com/afterpay-online-developer/chinese/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.afterpay.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.afterpay.com/_mcp/server.

# Payment object

## Attributes

| Attribute         | Type                                                                                      | Description                                                                                                                                                                                                                                                                                 |
| ----------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id                | string                                                                                    | The unique, permanent, Afterpay-generated Order ID.                                                                                                                                                                                                                                         |
| token             | string                                                                                    | Order token that was used to complete payment.                                                                                                                                                                                                                                              |
| status            | string                                                                                    | An order status of "APPROVED" or "DECLINED". Note: in response to a [Capture Payment](../../../reference/payments/Capture-Payment.v1.yaml/paths/~1v1~1payments~1capture~1environment:\{environment}/post) call, an object in this format will only be returned if the status is "APPROVED". |
| created           | string                                                                                    | The UTC timestamp of when the payment was completed, in [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm) format.                                                                                                                                                               |
| totalAmount       | [Money](/afterpay-online-developer/v-1/api-reference/models/money-object)                 | Total amount charged to the consumer for the order.                                                                                                                                                                                                                                         |
| merchantReference | string                                                                                    | The merchant's order id/reference that this payment corresponds to.                                                                                                                                                                                                                         |
| refunds           | [Refund](/afterpay-online-developer/v-1/api-reference/models/refund-object)\[]            | An array of refunds. Note: in response to a [Capture Payment](../../../reference/payments/Capture-Payment.v1.yaml/paths/~1v1~1payments~1capture~1environment:\{environment}/post) call, this array will always be empty, since refunds cannot occur before payment is captured.             |
| orderDetails      | [Order Details](/afterpay-online-developer/v-1/api-reference/models/order-details-object) | The order bound to the payment.                                                                                                                                                                                                                                                             |
| events            | array                                                                                     | This array is an obsolete field; it will always be empty.                                                                                                                                                                                                                                   |

## Example Payment object

### Australia

```json
{
  "id": "12345678",
  "token": "ltqdpjhbqu3veqikk95g7p3fhvcchfvtlsiobah3u4l5nln8gii9",
  "status": "APPROVED",
  "created": "2019-01-01T00:00:00.000Z",
  "totalAmount": {
    "amount": "29.99",
    "currency": "AUD"
  },
  "merchantReference": "merchantOrderId-1234",
  "refunds": [
    ...
  ],
  "orderDetails": {
    ...
  },
  "events": []
}
```

### New Zealand

```json
{
  "id": "12345678",
  "token": "ltqdpjhbqu3veqikk95g7p3fhvcchfvtlsiobah3u4l5nln8gii9",
  "status": "APPROVED",
  "created": "2019-01-01T00:00:00.000Z",
  "totalAmount": {
    "amount": "29.99",
    "currency": "NZD"
  },
  "merchantReference": "merchantOrderId-1234",
  "refunds": [
    ...
  ],
  "orderDetails": {
    ...
  },
  "events": []
}
```

### United States of America

```json
{
  "id": "12345678",
  "token": "ltqdpjhbqu3veqikk95g7p3fhvcchfvtlsiobah3u4l5nln8gii9",
  "status": "APPROVED",
  "created": "2019-01-01T00:00:00.000Z",
  "totalAmount": {
    "amount": "29.99",
    "currency": "USD"
  },
  "merchantReference": "merchantOrderId-1234",
  "refunds": [
    ...
  ],
  "orderDetails": {
    ...
  },
  "events": []
}
```