Public API reference
/v4 API
/- List the Braintree subscriptions of a user
Retrieve the Braintree token
Create a subscription charged callback
Update the Braintree subscription
Cancel the Braintree subscription
Create a Braintree buy (one-off)
List Braintree payment methods
Create a new Braintree payment method.
Update a Braintree payment method
Delete the Braintree payment method
Set the default Braintree payment method
List all Braintree plans
Get a Braintree Promo Code
List Braintree add-ons
Start the Braintree subscription (Deprecated)
List the Braintree subscr...
Lists all Braintree subscriptions for the logged-in user.
Security
CookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
- https://demo-sitehttps://demo-site/blaize/payment/braintree/subscriptions
curl -i -X GET \
https://demo-site/blaize/payment/braintree/subscriptions \
-H 'cookie: `blaize_session=...` (string)' \
-b '`blaize_session=...` (string)'OK
ISO-8601 formatted time at which the subscription was canceled. This field will be omitted if the subscription is not canceled.
Example:"2021-05-17T04:31:33Z"
ISO-8601 formatted time at which the subscription will next be billed.
Example:"2021-05-17T04:31:33Z"
The subscription state, as acquired from Braintree.
Enum:"Active""Canceled""Expired""Past Due""Pending""Unrecognized"
ISO-8601 formatted time up to which the subscription has been paid for. This will be null if the subscription has not yet been paid for.
Example:"2021-05-17T04:31:33Z"
The time unit of the billing frequency. Braintree only supports MONTH.
Value:"MONTH"
The frequency at which the subscription is billed, in the units specified by billing_frequency_unit.
Example:1
Always false, as Braintree does not support multi-phased plans.
Example:false
Response
{ "managed-by": "Braintree", "external-id": "abc123", "next-billing-time": "2021-05-17T04:31:33Z", "blaize-product": { "id": "one-month-one-off", "label": "One month access", "description": "One month access", "entitlement": { … }, "mapping": { … }, "sharingLimit": 0 }, "transaction-history": { "time": "2021-05-17T04:31:33Z", "currency": "GBP", "cents": 234, "cycle": "month", "cycleCount": 1, "currencyCode": "GBP", "human-readable-amount": "£2.34" }, "subscription-state": "Active", "paid_through_date": "2021-05-17T04:31:33Z", "plan_id": "plan-123", "plan_name": "monthly-plan", "billing_frequency_unit": "MONTH", "billing_frequency": 1, "currency_code": "GBP", "pre_discount_price": 2, "multiphase_plan": false, "discounts_applied": true }