Skip to main content
Skip table of contents

Revoking a third-party product entitlement – non-SSP deployment

Request

To revoke the status of a third-party product entitlement,, the CRM system should send a POST request to:

BASH
https://<host>:<port>/tpes/v1/operator/entitlements/{entitlementId}/actions/revoke

Headers

  • x-correlation-id  – identifier for logging, to correlate messages across a call flow

  • Authorization – Keycloak access token (see Accessing operator APIs using Keycloak)

  • nv-tenant-id – the tenant ID

Mandatory arguments

  • entitlementId (in URL) – the ID of the entitlement to be cancelled

  • cancelReasonCategory (in body) – the revocation reason category (see table below)

  • cancelReasonCode – (in body) the revocation reason code (see table below)

Valid revocation categories and reasons are as follows:

Category

Reason code

CUSTOMER_CANCELLED

NOT_RENEWED

CUSTOMER_CANCELLED

EXPIRED

CHANGED_SERVICE

SUBSCRIPTION_CANCELLED

ADDON_CANCELLED

OTHER

CUSTOMER_CHANGED

CUSTOMER_CANCELLED_BUNDLE

CHANGED_SERVICE

ACTIVATION_ROLLBACK

FRAUD

CUSTOMER_PAYMENT_DEFAULT

FRAUD_CHECK

MERCHANT_ACCOUNT_CHANGED

REVOKED

OTHER

ROLLBACK_ERROR

ROLLBACK_CONNECT_ERROR

PRODUCT_NO_LONGER_AVAILABLE

PARTNER_RETURN

CUSTOMER_RETURN

ACCOUNT_TERMINATED

SUSPEND_TERMINATED

ERROR

FRAUD

IMMEDIATE_CANCELLATION

Optional arguments

  • cancelReasonDescription – a description of the revocation reason

Example

A POST request with the following body will update the status of the entitlement whose ID is specified in the URL:

JSON
{
  "cancelReasonCategory": "REVOKED",
  "cancelReasonCode": "ACCOUNT_TERMINATED"
}

Response

A successful request returns an HTTP 200 status.

If the request is awaiting confirmation from the third-party provider, the request returns an HTTP 202 status. When OPF receives this confirmation, it notifies your CRM system – see Handling third-party product entitlement changes.

A bad request returns an HTTP 400 status.

A forbidden request returns an HTTP 403 status.

If the specified tenant does not exist, the request returns an HTTP 404 status.

See the Third Party Entitlement Service (TPES) API documentation for the specific error codes and their meanings.

See also

Third Party Entitlement Service (TPES) API documentation

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.