palbaseDocs

Palbase IAP · API

GET/iap/offers

List my offers

The offers the signed-in customer may take now: live, not taken before (once a customer), for everyone, for an audience they are in having allowed personalization, or opened to them by a coupon they redeemed — with what each store sells them as.

Called by a signed-in user of your app, with their token and the publishable key.

curl
curl -X GET "https://<your-ref>.palbase.studio/iap/offers" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN"

Responses

200The offers

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 the token

403Not the project's secret key (`secret_key_required`)

503Temporarily unavailable; retrying is safe after Retry-After

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation ListMyOffers of iap's contract.