Braintree Payments
Start the Braintree subscription (Deprecated)
** (Deprecated - use the "/zephr/subscribe" operation intead)** Uses the payment info captured by the braintree drop-in UI and encoded in the payment nonce to create a braintree customer in with a recurring payment. When braintree responds successfully, the logged-in user will be temporarily granted all entitlements in the product's associated bundle.
post/blaize/payment/braintree/subscribe
Request
- Base URL: https://demo-site
- URL: https://demo-site/blaize/payment/braintree/subscribe
- Auth: one of:
- API key in cookie blaize_session
- API key in query parameter jwt
- API key in header x-blaize-jwt
- API key in header x-zephr-jwt
- HTTP bearer
- API key in cookie blaize_jwt
Headers
cookiestring
The session cookie.
Request body
Example request
{
"product_id": "premium-access-monthly-recurring",
"payment_nonce": "eyJ2ZXmsaW5nQW...(lots more random-looking characters)...dyZWmVubW8iOiJvZmYifQ==",
"skip_trial_period": true,
"start_date": "2021-01-01T00:00:00Z"
}Response
OK
Example response
{
"grant_id": "33d576c7-d036-40e7-8141-8a91998a5c79"
}Changes
No recorded changes to this operation across all 2 revisions of this API.