Cancel Redemption
The Cancel Redemption endpoint allows partners to reverse a previously processed redemption, re-crediting the miles to the member's account. This operation is also referred to as a recredit.
Processing is asynchronous: a 201 Created response indicates that the request was accepted, not that the recredit has been completed. The final result is delivered via webhook notification.
Both total and partial cancellations are supported. A partial cancellation re-credits only the specified miles; the remaining miles from the original redemption are unaffected.
- Only redemptions in PROCESSED status are eligible for cancellation.
- A partial cancellation can only be performed once per correlation ID. Multiple partial cancellations for the same correlation ID are not supported.
Request
Endpoint
POST https://api.latampass.com/sandbox/v1/customer/eloyalty/partner/redeem/cancel
Request body
| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
correlationId | String (UUID) | Yes | Must be a valid UUID | Correlation ID of the redemption to cancel. Must reference a PROCESSED redemption. |
description | String | Yes | Max 500 characters | Description of the cancellation reason. |
miles | Number | Yes | Min: 0.001 / Max: total miles of the original redemption | Miles to re-credit. Decimal values are rounded to the nearest integer internally. |
Example — total cancellation
Example — partial cancellation
Headers
One authentication flow is accepted for this endpoint.
Flow B — Portal API Client Credentials
| Header | Value |
|---|---|
Content-Type | application/json |
x-latam-test | LatamPass (sandbox only) |
Access_token | <UUID_ACCESS_TOKEN> |
client_id | <YOUR_CLIENT_ID> |
Business rules
- Only redemptions in
PROCESSEDstatus are eligible for cancellation. Attempting to cancel a redemption inPROCESSING,ERROR, orCANCELLEDstatus returns422. - The
correlationIdmust be a valid UUID obtained from a previous Create Redemption201response. - The
milesfield must be positive (minimum0.001) and cannot exceed the total miles of the original redemption. - Decimal mile values are rounded to the nearest integer internally before processing.
- Cancellation can be total (full original miles) or partial (any amount up to the original total).
- A
201response returns the samecorrelationIdas the original redemption — no new correlation ID is generated. - If a cancellation is already in progress for the given
correlationId, a422is returned to prevent duplicate processing. - The final recredit result is delivered exclusively via webhook notification:
| Status | Meaning |
|---|---|
REFUNDED | Miles were successfully re-credited to the member's account. |
CANCELLED | Recredit could not be completed (non-recoverable). |
ERROR | Recredit failed — see errorException in the webhook payload for details. |
Response
201 Created — Request accepted
The correlationId in the response matches the original redemption's correlation ID. The final recredit status is not available synchronously — it is delivered via webhook.
Common errors
400 — Validation error (invalid payload)
400 — Redemption not found
400 — Cancellation amount exceeds original total
422 — Redemption not eligible for cancellation
Returned when the redemption exists but its current status does not allow cancellation (e.g., PROCESSING, ERROR, or CANCELLED).
422 — Cancellation already in progress
Returned when a cancellation request for the same correlationId is already being processed. Do not retry until the current operation concludes.
405 — Method Not Allowed
500 — Internal Server Error
Retry the request with the exact same payload.
If the error persists after retrying, contact LATAM Pass Support and provide the issueDateTime and the correlationId used in the request.