Entrar

Salir

DELETE https://{organization}.myguper.com/api/register/membership/{personId}/{tierConfig}

Cierra una membership activa configurando leftAt.

La mayoría de las salidas ocurren automáticamente: quitar una tag listada en tag_tier_filter dispara un leave vía el hook. Este endpoint cubre salidas manuales o programáticas (opt-out por admin, cierre de cuenta, flujo especial).

Idempotente:

  • Sin fila, o fila ya con leftAt → no-op.
  • Fila activa → UPDATE pone leftAt, history left.

La fila no se borra — queda preservada para que el historial siga consultable.

Try-it values populated from environment ACME (Demo)


Autenticación

Token

Send your user token in the x-guper-authorization header.

Encabezados

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

Parámetros de ruta

Name Type Description
personId * integer Internal Guper person ID.
tierConfig * integer Tier program id (`tier_config.id`).

Cuerpo de la petición

Content-Type: application/json

{
    "leftAt": "2026-05-27T10:00:00-03:00",                      // optional
    "source": "manual",                                         // optional
    "sourceRef": "admin:42"                                     // optional
}

Respuestas

{ "action": "left" }
Copied to clipboard