palbaseDocs

Palbase IAP · API

DELETE/iap/google

Disconnect Google Play purchases

Deletes this environment's push subscription and forgets the app: Play's notifications stop reaching it, and the apps' reports are refused. Purchases already made stay in the ledger. The app's topic stays (another environment of the project may read it). Emits iap.store.changed (disconnected).

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

Headers

Idempotency-Keystring · optionalMakes the write safe to send again (at most 255 characters). A retry with the same key and the same request gets the first answer back, marked `Idempotent-Replayed: true`, and changes nothing; the same key with a different request is refused with 422, and while the first request still runs a retry gets 409 with Retry-After. Answers are kept for 24 hours.
curl
curl -X DELETE "https://<your-ref>.palbase.studio/iap/google" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

204Disconnected

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

404Google Play purchases are not connected (`google_not_connected`)

409A request with this Idempotency-Key is still running (`idempotency_key_in_use`, Retry-After)

413The request body is too large (`request_too_large`)

422The Idempotency-Key was sent with a different request (`idempotency_key_reused`)

429Over the project's share of calls to Google (`google_rate_limited`): Palbase's Cloud project holds every project's Play quota, and each project's calls are its own share; Retry-After says when to try again. Or over the project's request limit

502Google refused to delete the subscription (`google_refused`, in its words)

503Google could not be reached, or did not answer (`google_unreachable`, Retry-After), or this Palbase has no Google Cloud project (`google_unavailable`)

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

Operation DisconnectGoogle of iap's contract.