Skip to content

Set the default Braintree payment method

Request

Sets the Braintree default payment method for the logged-in user. This must be a valid payment method already associated with the user.

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

The session cookie.

Example:`blaize_session=...` (string)
Bodyapplication/json
payment_method_tokenstring

The unique ID of the payment method to be set as default for the user.

Example:"payment-method-123"
{ "payment_method_token": "payment-method-123" }

Responses

No Content

Headers
any