curl --request POST \
--url https://{cluster}.voucherify.io/v2/loyalties/programs/{programId}/members/{memberId}/cards/{cardId}/pending-points/{bucketId}/cancel \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'Cancel pending point bucket
Cancels a pending points bucket so its points aren’t activated. Creates a PENDING_POINTS_CANCELED card transaction. The transaction is created with status PENDING and processed asynchronously. No request body.
The bucket must be PENDING, and its date must be after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423.
Returns 404 when the program or the member doesn’t exist, when the card isn’t assigned to that member, or when the bucket isn’t on that card.
A successful call records no activity.
curl --request POST \
--url https://{cluster}.voucherify.io/v2/loyalties/programs/{programId}/members/{memberId}/cards/{cardId}/pending-points/{bucketId}/cancel \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'Authorizations
Path Parameters
Response
Result of the pending points cancellation.
Response body schema for POST /v2/loyalties/programs/{programId}/members/{memberId}/cards/{cardId}/pending-points/{bucketId}/cancel.

