---
title: "Update a Braintree payment method"
method: PATCH
path: "/zephr/payment/braintree/payment-methods/{paymentMethodToken}"
tags: ["Braintree Payments"]
---

# Update a Braintree payment method

`PATCH /zephr/payment/braintree/payment-methods/{paymentMethodToken}`

## Request

- Base URL: `https://demo-site`
- URL: `https://demo-site/zephr/payment/braintree/payment-methods/{paymentMethodToken}`
- 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`

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.

## Path parameters

- `paymentMethodToken` string, required

## Headers

- `cookie` string

## Request body

- object
  - `payment_method_nonce` string: The vaulted nonce associated with the update payment method.

## Response `200`

OK

- PaymentMethod
  - `token` string, required: The token identifier for this payment method.
  - `default` boolean, required: If this the default payment method for this user.
  - `card_type` string: In the case of a card payment method, the type of the card.
  - `card_holder_name` string: In the case of a credit card payment method, the name of the card holder.
  - `card_number_masked` string: In the case of a card payment method, the masked card number, compliant with PCI security standards.
  - `expiration_date` string: In the case of a card payment method, the expiration date, in the format of MM/YY or MM/YYYY.
  - `expired` boolean: In the case of a card payment method, if the card has expired.
  - `expiring_soon` boolean: In the case of a card payment method, if the card will expire within the configured number of days.
  - `in_use` boolean: Indicates if this payment method is used by any subscriptions that have not been finalised and would be cancelled if this payment method is deleted.
  - `last_4` string: In the case of a card payment method, the last four digits of the card number.
  - `nonce` string, required: A nonce that can be used for other payment method operations.
  - `type` string, required: The payment method type.
  - `zipcode` string: In the case of a card payment method, the zip code associated with the card.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found

---

[API](https://skmtc.dev/zuora/apis/zuora-2.md) - [All operations](https://skmtc.dev/zuora/apis/zuora-2/llms.txt) - [OpenAPI document](https://skmtc.dev/zuora/apis/zuora-2/revisions/678190d04c40?raw)
