Palbase IAP · API
/iap/google/account-idGet the customer's obfuscated account id
The signed-in customer's obfuscated account id for the connected app — a guest's too: random, made the first time it is asked for, the same afterwards. The app passes it to Play Billing's billing flow; Play's answers carry it back, so a purchase is the customer's before the app reports it, and nothing personal goes to Google. A guest's goes with it when it merges into an account.
Called by a signed-in user of your app, with their token and the publishable key.
curl -X POST "https://<your-ref>.palbase.studio/iap/google/account-id" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN"Responses
200The id
400The request is malformed, or a field breaks a rule (the error names which)
401No customer's session (`session_required`): a customer's own is reached with the publishable key and their access token; or the edge refused the key or token
404The user's id is longer than a customer's (128 characters; `customer_not_found`)
409The environment sells nothing on Google Play (`google_not_connected`), or this guest's purchases went to the account it signed in to (`customer_merged`)
410The user was deleted (`customer_erased`): their id is no customer's again
429Over the project's request limit; Retry-After says when to try again
503Temporarily unavailable; retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation GetGoogleAccountID of iap's contract.