POST/v1/customers/{external_id}/app-store/account-token
Issue a customer's App Store account token
Returns the customer's appAccountToken for StoreKit purchases, the same on every call in the environment. A purchase carrying it is linked to the customer when its notification arrives. Needs customers:write or billing:self.
curl -X POST 'https://api.entitler.co/v1/customers/ada/app-store/account-token' \
-H "Authorization: Bearer $ENTITLER_KEY" \
-H "Content-Type: application/json" \
-d '{"target":{"environmentId":"environmentId","projectId":"projectId","teamId":"teamId"}}'Credentials
Send any one of these:
- Bearer token
Path parameters
| Name | Type | Description |
|---|---|---|
external_idrequired | string | The customer's external ID, or me for the customer a customer token or identity token names. |
Request body
object
targetProductTargetenvironmentIdstringprojectIdstringteamIdstring
Responses
200The IssueAppAccountTokenResponse message.
IssueAppAccountTokenResponse
appAccountTokenstringrequired
ErrorA refusal, with the HTTP status of its gRPC code.
Error
errorobjectrequiredcodestringrequiredparametersobjectrequiredEach value: string
reasonstringor nullrequired