Skip to content
Console
On this page

Revoke an entitlement grant

Ends a manual or test grant early without touching payments or the ledger.

Ends a manual or test grant early without touching payments or the ledger. Manual grants need billing:credits.approve; test grants need billing:test_grants:write. Paid and other derived grants cannot be revoked here. Repeating the same reason returns the original receipt; a different reason is RESOURCE_ALREADY_EXISTS. A grant that expired without being revoked returns INVALID_STATE.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/entitlement_grants/entitlement-grant:revoke
  • Scope billing:test_grants:write
  • Effect destructive — a successful call removes data; the CLI asks before it runs.
  • Collection entitlement_grants

Request

FieldTypeWhat it is
namestringThe full name of the manual or test entitlement grant. Required.
reasonstringWhy the grant is ending early. Use 1–500 bytes of printable text after trimming; do not include personal data or secrets. Required.

Response

FieldTypeWhat it is
namestringThe full name of the revoked grant.
reasonstringThe accepted reason for ending the grant early.
revokerstringThe authenticated principal that revoked the grant, set by Money.
revoke_timetimestampWhen Money recorded the revocation.

Errors

Every error arrives in the body Errors describes.

Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/entitlement_grants/entitlement-grant:revoke" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"reason":"…"}'