palbaseDocs

Palbase IAP · API

POST/iap/webhooks/google

Receive a Google Play notification

Where Pub/Sub pushes the connected app's real-time developer notifications — no key: the push carries an OIDC token Google minted for Palbase's push account, for this environment's own address, and anything else is refused. A notification only says something changed: what it is, is read from Play by its token as the project's Play connection account and applied to the ledger; a voided purchase's, by reading the app's voided iap. Each push is kept once, sealed, by its message id: one pushed again is answered and not applied twice. A test notification proves the topic (verified_at). Another app's notification is taken and ignored. Pub/Sub hears 204 once that is written; a 503 (Google unreachable), and it pushes it again.

Called by .

curl
curl -X POST "https://<your-ref>.palbase.studio/iap/webhooks/google" \
  -H "content-type: application/json" \
  -d '{}'

Responses

204Taken: applied, taken before, or nothing a customer has

400The push holds no Play notification (`invalid_push`)

401The push carries no OIDC token (`unsigned`), or not one Pub/Sub minted for this environment (`bad_signature`)

404The environment takes no Google Play notifications (`google_not_connected`)

413The push is over 64 KiB (`too_large`)

429Over the project's request limit; Retry-After says when to try again

503Google could not be reached, or did not answer (`google_unreachable`, Retry-After), the project's share of calls to Google is spent for now (`google_rate_limited`, Retry-After), or this Palbase has no Google Cloud project (`google_unavailable`): Pub/Sub pushes it again

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

Operation ReceiveGoogleNotification of iap's contract.