Transactions API
Read Transaction
Changed onRetrieves transaction data.
get/transactions/{transaction_id}
Request
- Base URLhttps://sandbox.affirm.com/api/v1
- URLhttps://sandbox.affirm.com/api/v1/transactions/{transaction_id}
- AuthHTTP basic
Path parameters
transaction_idstring required
Example:ABCD-1234
A unique ID representing the transaction’s loan or charge ID. Displays as id in the response.
Query parameters
expandstring
A comma-separated set of related objects to expand in the response. Allowed values are 'checkout' and 'events'.
Headers
Has-Strict-Validationboolean
Optional param to denote whether client-side strict validation is used. Defaults to True if no param provided.
Response
HTTP 200 OK
Example response
{
"checkout_id": "HTSZAGURU7PZ8ZAG",
"provider_id": 1,
"remove_tax": true,
"status": "captured",
"currency": "USD",
"created": "2019-01-01T00:00:00.000Z",
"authorization_expiration": "2019-01-01T00:00:00.000Z",
"amount_refunded": 5000,
"amount": 20000,
"id": "ABCD-1234",
"order_id": "order_125",
"events": [
{
"amount": 20000,
"id": "ABCD-1234",
"currency": "USD",
"type": "auth",
"created": "2019-01-01T00:00:00.000Z"
}
]
}Changes
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status
- warning