palbaseDocs

Palbase IAP · API

GET/iap/customers

Find customers

Finds customers by what a person writing in has: their id; Apple's original transaction id or any transaction id of theirs; a Google order id (a renewal's ..N or not); Stripe's subscription, payment intent, invoice or customer id; or the email address a buyer with no account gave at checkout, matched whole (case and spaces around it aside). The address is never kept: an HMAC of it is.

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

Query

qstring · requiredA customer id, an id a store gave a purchase or its buyer, or an email address.
curl
curl -X GET "https://<your-ref>.palbase.studio/iap/customers" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The customers found (none is an empty list)

400No q, or one longer than 320 characters (`query_required`)

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

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

Operation SearchCustomers of iap's contract.