Sign in

Reactivate Card

POST https://{organization}.myguper.com/api/loyalty/cards/{id}/reactivate

Reverts a cancellation: clears the card's cancellation timestamp and puts it back in circulation. This is the way back from Cancel Card.

Validity is not touched. A card reactivated after its expiresAt comes back expired, with the original expiresAt - reactivating is not extending. The response carries the resulting cardStatus, so the caller sees whether the card is actually usable again.

A card that is not canceled is refused with 409.

Try-it values populated from environment ACME (Demo)


Authentication

Token

Send your user token in the x-guper-authorization header. Endpoints that support a Public mode (e.g. acúmulo and resgate previews) accept the same request without the header — Private mode adds customer data and a confirmation token to the response.

Headers

Name Type Description
x-guper-authorization * string User token issued by Guper. Omit only on endpoints that explicitly support a Public mode.
Content-Type * string Always `application/json` for endpoints that accept a JSON body.

Path parameters

Name Type Description
id * integer Card id, as returned by the card endpoints.

Responses

{
    "cardId": 95980,
    "canceledAt": null,
    "cardStatus": "active",
    "amount": 1250
}

Related

Copied to clipboard