cURL
curl --request POST \ --url https://api.unprice.dev/v1/customer/can \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "customerId": "cus_1H7KQFLr7RepUyQBKdnvY", "featureSlug": "tokens", "metadata": { "action": "create", "country": "US" } }'
{ "success": true, "message": "<string>", "deniedReason": "RATE_LIMITED", "cacheHit": true, "remaining": 123 }
Check if a customer can use a feature
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Body of the request
The body is of type object.
object
The result of the can check
The response is of type object.