/api/v2/server-side-api/purchase/profile/revoke/access-level/ Revoke access level
Removes an access level from an end user of your app in Adapty.
Header parameters
The unique ID of the customer in your system. Either adapty-customer-user-id or adapty-profile-id is required.
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
Paid access level ID configured in the Access Levels page
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.
Responses
Access level revoked successfully
Schema
The internal ID of your app
Adapty profile ID
The ID of your user in your system
A float value representing the total revenue in USD earned in the profile
Internal parameter
Response time in milliseconds, needs for resolve a race condition
A maximum of 30 custom attributes to the profile are allowed to be set
The key must be a string with no more than 30 characters. Only letters, numbers, dashes, points, and underscores allowed
The attribute value must be no more than 50 characters. Only strings and floats are allowed as values
Array of Access level objects. Empty array if the customer has no access levels
Access level identifier
Store where the access level was purchased
Product ID in the store
Base plan ID in the store
Transaction ID in the store
Original transaction ID in the store
Offer details, if a promotional or introductory offer was applied
Offer category
One of: "introductory", "promotional", "offer_code", "win_back"
Offer type
One of: "free_trial", "pay_as_you_go", "pay_up_front"
Offer ID
When the access level starts
When the access level was purchased
When the access level was originally purchased
When the access level expires
When renewal was cancelled
When billing issue was detected
Whether the access level is in grace period
Reason for cancellation
Array of Subscription objects. Empty array if the customer has no subscriptions
Store where the subscription was purchased
Product ID in the store
Base plan ID in the store
Transaction ID in the store
Original transaction ID in the store
Offer details, if a promotional or introductory offer was applied
Offer category
One of: "introductory", "promotional", "offer_code", "win_back"
Offer type
One of: "free_trial", "pay_as_you_go", "pay_up_front"
Offer ID
Environment (Sandbox, Production)
When the subscription was purchased
When the subscription was originally purchased
When the subscription expires
When renewal was cancelled
When billing issue was detected
Whether the subscription is in grace period
Reason for cancellation
Array of Non-Subscription objects. Empty array if the customer has no purchases
Unique purchase identifier
Store where the purchase was made
Product ID in the store
Base plan ID in the store
Transaction ID in the store
Original transaction ID in the store
When the purchase was made
Environment (Sandbox, Production)
Whether this is a refund
Whether this is a consumable purchase
Bad request
Schema
Source of the error
Array of error messages
Short error name
HTTP status code
Unauthorized
Schema
Source of the error
Array of error messages
Short error name
HTTP status code
Profile not found
Schema
Source of the error
Array of error messages
Short error name
HTTP status code
Internal server error