Palbase Payments · API
/payments/stripe/app/grantsCreate Stripe App install grant
Mints a one-time browser link to install the Palbase Stripe App: on a live account, in an account's test mode, or in a sandbox. Refused with 400 invalid_channel_key or invalid_mode (live and a sandbox at once), 409 stripe_app_in_review for a live link while Stripe reviews the App (a restricted key connects the account meanwhile), 429 too_many_grants when too many links are open, and 503 stripe_app_unavailable where the App is not set up for that mode.
Called by your server, with the project's secret key.
Request body
channel_keystring · optionalTarget channel key (defaults to stripe).livemodeboolean · optionalTrue to install the App on a live account; false for test mode, or a sandbox (sandbox). While the App is in Stripe's review a live install is refused (409 stripe_app_in_review): connect the account with a restricted key.sandboxboolean · optionalTrue to install the App in a Stripe sandbox, the accounts a Stripe account's Sandboxes menu lists; false for live, or an account's test mode. Not together with livemode (400 invalid_mode).curl -X POST "https://<your-ref>.palbase.studio/payments/stripe/app/grants" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"channel_key":"string","livemode":false,"sandbox":false}'Responses
201Grant created
400`invalid_channel_key`, or `invalid_mode`: live and a sandbox at once
409`stripe_app_in_review`: a live link while Stripe reviews the App; a restricted key connects the account meanwhile
429`too_many_grants`: too many links are open (Retry-After)
503`stripe_app_unavailable`: the App is not set up for that mode
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation CreateStripeAppGrant of payments's contract.