palbaseDocs

Palbase IAP · API

GET/iap/offerings

Read the offerings

The catalog's products as an app shows them on a paywall: each channel's own text in every language and its price, and the id the channel's store sells each plan by — the App Store's product id, Google Play's product id (and base plan, for a subscription), Stripe's price lookup key. Nobody's purchases: any of the project's keys reads it, the publishable one included.

Called by your app, with the publishable key; or a signed-in user of your app, with their token and the publishable key; or your server, with the project's secret key.

Query

channel"ios" | "android" | "web" · optionalOne channel's only.
curl
curl -X GET "https://<your-ref>.palbase.studio/iap/offerings" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The offerings

400`channel` is not ios, android or web (`invalid_channel`)

401Not a key of the project (`key_required`), or the edge refused the key or token

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 GetOfferings of iap's contract.