palbaseDocs

Palbase IAP · API

GET/iap/web/readiness

Check readiness to sell on the web

Whether the environment sells on the web, check by check, each with what was found in one sentence and the palbase command that fixes it: what the catalog sells there (web_sold); the payment channels web checkouts go to — each asked at its provider now, a call that changes nothing — and whether their keys may do what checkout and the customer portal need (web_channel); whether web_tax fits those channels — Stripe's Managed Payments works on a Stripe channel connected with a restricted key, not through the Stripe App (web_tax); with web_tax managed, a tax code on every web product (web_tax_codes) and Managed Payments turned on in the Stripe Dashboard, which the API does not say and is told as information (managed_payments_activated); and whether Stripe's events have an endpoint, with when the last came (web_webhook). The checks' ids never change.

Called by your server, with the project's secret key.

curl
curl -X GET "https://<your-ref>.palbase.studio/iap/web/readiness" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The checks

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`)

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