Entrar

Reactivar card

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

Deshace una cancelacion: limpia la fecha de cancelacion del card y lo devuelve a circulacion. Es el camino de vuelta de Cancelar card.

La vigencia no se toca. Un card reactivado despues de su expiresAt vuelve expirado, con el expiresAt original - reactivar no es extender. La respuesta trae el cardStatus resultante, asi quien llama ve si el card volvio a ser utilizable.

Un card que no esta cancelado se rechaza con 409.

Try-it values populated from environment ACME (Demo)


Autenticación

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.

Encabezados

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.

Parámetros de ruta

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

Respuestas

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

Relacionados

Copied to clipboard