Skip to content

Retrieve the Stripe public key

Request

This API endpoint fetches the public key associated with a tenant for payment processing. If the user is authenticated and the tenant has a configured Stripe public key, the endpoint will return the Stripe public key in a String format.

Security
CookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Headers
cookiestringrequired

The session cookie is employed to ascertain whether a user is already authenticated or has an active session.

Example:blaize_session=57685913-7365-4dae-a425-1c2c2f72cc0
cURL
curl -i -X GET \
  https://demo-site/blaize/payment/stripe/publicKey \
  -H 'cookie: blaize_session=57685913-7365-4dae-a425-1c2c2f72cc0' \
  -b blaize_session=57685913-7365-4dae-a425-1c2c2f72cc0

Responses

A stripe public key for the tenant.

Headers
any
Bodyapplication/json
string
Response
"pk_live_PFghBsstUo5FwUGcXBiNvIkY00X1YHtpnJ"