| Send | Permission | Community scope |
|---|---|---|
Authorization: Bearer <apiKey> | customerSuccess | Community scope is derived from the key; do not send a community identifier. |
{pathParameter} and use the query parameters documented below.meta.code = REDEMPTION_TRANSACTION_RETRIEVED{
"meta": {
"status": "success",
"statusCode": 200,
"code": "REDEMPTION_TRANSACTION_RETRIEVED"
},
"message": "Get redemption transaction detail successfully",
"data": {
"_id": "hist_agent_01",
"redemptionId": "ORD202607220001",
"productName": "Agent Test Voucher",
"price": 100,
"quantity": 1,
"status": "New Purchase",
"statusID": "sts_new",
"type": "voucher",
"userId": "usr_agent_01",
"purchasedDate": "2026-07-22T02:00:00.000Z",
"userData": {
"email": "agent-test@example.invalid",
"userName": "agent-test",
"roles": [
"@all"
]
}
}
}meta.code, never message text.| HTTP | Machine code | What the caller should do | Retry? |
|---|---|---|---|
| 400 | VALIDATION_FAILED | Use the public ORD identifier. | No, fix first |
| 401 | AUTH_API_KEY_REQUIRED | Add the Authorization header. | No, fix first |
| 401 | AUTH_API_KEY_INVALID | Replace or rotate the key. | No, fix first |
| 401 | AUTH_API_KEY_VALIDATION_FAILED | Authentication could not be completed. | Yes, with backoff |
| 403 | AUTH_PERMISSION_REQUIRED | Request the customerSuccess permission; no resource data is returned. | No, fix first |
| 404 | REDEMPTION_TRANSACTION_NOT_FOUND | Refresh the scoped order list. | After refreshing the ID |
| 500 | INTERNAL_ERROR | Retry with exponential backoff and the same request context, then escalate. | Yes, with backoff |
| 502 | REDEMPTION_DEPENDENCY_UNAVAILABLE | Retry with exponential backoff. | Yes, with backoff |
curl --location 'https://sgtr-api.returning.ai/v2/redemption-transactions/ORD202607220001' \
--header 'Authorization: Bearer <token>'{
"meta": {
"status": "success",
"statusCode": 200,
"code": "REDEMPTION_TRANSACTION_RETRIEVED"
},
"message": "Get redemption transaction detail successfully",
"data": {
"_id": "hist_agent_01",
"redemptionId": "ORD202607220001",
"productName": "Agent Test Voucher",
"price": 100,
"quantity": 1,
"status": "New Purchase",
"statusID": "sts_new",
"type": "voucher",
"userId": "usr_agent_01",
"purchasedDate": "2026-07-22T02:00:00.000Z",
"userData": {
"email": "agent-test@example.invalid",
"userName": "agent-test",
"roles": [
"@all"
]
}
}
}