v1

latestOpenAPI 3.1.02026-07-241080412.6 KB

Terminate a pass [Beta]

Use this endpoint to terminate a pass using its ID.

post/passes/{passId}/terminate

Path parameters

passIdinteger required

Pass identifier in Cleeng.

Headers

Content-Typestring

application/json

Request body

terminationType'publisherCancel' | 'policyViolation' | 'expiration'

One of following:

  • publisherCancel - publisher-initiated termination
  • policyViolation - terminated as a result of policy violation
  • expiration - terminated as a result of pass expiration

When omitted (or empty body), defaults to publisherCancel

These values are used to drive churn analytics in the Cleeng dashboard.

Response

200

passIdinteger
customerIdinteger
statusstring
offerIdstring
expiresAtinteger
paymentMethodIdinteger
externalIdstring
externalPropertiesobject
isExternallyManagedboolean
sourcestring

Example response

{
  "passId": 123456789,
  "customerId": 123123123,
  "status": "terminated",
  "offerId": "P987654321_PL",
  "expiresAt": 1713273647,
  "paymentMethodId": 111222333,
  "externalId": "externalId",
  "isExternallyManaged": true,
  "source": "samsung"
}