Update a Braintree payment method

Updates the Braintree payment method details associated with the logged-in user. The details to update must first be captured from Braintree in a nonce and vaulted.

SecurityCookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Request
path Parameters
paymentMethodToken
required
string

The unique ID of the payment method

header Parameters
cookie
string

The session cookie.

Example: `blaize_session=...` (string)
Request Body schema: application/json
payment_method_nonce
string

The vaulted nonce associated with the update payment method

Responses
200

OK

400

Bad Request

401

Unauthorized

404

Not Found

patch/zephr/payment/braintree/payment-methods/{paymentMethodToken}
Request samples
application/json
{
  • "payment_method_nonce": "aa583cb8...and other characters...3a43796ef8e5"
}
Response samples
application/json
{
  • "token": "8m2kc5g",
  • "default": false,
  • "card_type": "Visa",
  • "card_holder_name": "John Rambo",
  • "card_number_masked": "654321******0987",
  • "expiration_date": "07/22",
  • "expired": false,
  • "expiring_soon": false,
  • "in_use": false,
  • "last_4": "1111",
  • "nonce": "086128f3-04c2-069e-78d2-3f4de98508e5",
  • "type": "CreditCard",
  • "zipcode": "123456"
}