v1

latestOpenAPI 3.1.02026-08-061945115.8 KB
Purchase

Revoke access level

Removes an access level from an end user of your app in Adapty.

post/api/v2/server-side-api/purchase/profile/revoke/access-level/

Headers

adapty-customer-user-idstring

The unique ID of the customer in your system. Either adapty-customer-user-id or adapty-profile-id is required.

adapty-profile-idstring

The unique ID of the profile in your system. Your best option if you are working with anonymous profiles. Either adapty-customer-user-id or adapty-profile-id is required.

Request body

access_level_idstring required

Paid access level ID configured in the Access Levels page

revoke_atstring date-time nullable

Specifies when the access level will expire. To revoke access immediately, either omit this field or set it to null. The default value is null.

Response

Access level revoked successfully