Palbase IAP · API
/iap/customers/{customer_id}Read a customer
What a customer has, as GET /iap/me answers it to them, for the project's backend — and the moves of their purchases to and from other customers (transfers), which the customer never reads. A guest merged into an account answers the account's. A user never seen here has nothing yet but the free tier of every quota; the read writes nothing — they become a customer when something is theirs.
Called by your server, with the project's secret key.
Path
customer_idstring · requiredThe customer: the user's id (a guest merged into an account names the account).curl -X GET "https://<your-ref>.palbase.studio/iap/customers/<customer_id>" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200What the customer has, and the moves of their purchases
400The request is malformed, or a field breaks a rule (the error names which)
401No key, not a key of this project, or a token that is not valid (the edge's answer)
403Not the project's secret key (`secret_key_required`)
404The id is longer than a customer's (128 characters; `customer_not_found`)
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
503Another change to this customer is in progress (`customer_busy`), or the platform could not answer now; retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation GetCustomer of iap's contract.