---
title: "Set the default Braintree payment method"
method: PUT
path: "/zephr/payment/braintree/default-payment-method"
tags: ["Braintree Payments"]
---

# Set the default Braintree payment method

`PUT /zephr/payment/braintree/default-payment-method`

## Request

- Base URL: `https://demo-site`
- URL: `https://demo-site/zephr/payment/braintree/default-payment-method`
- 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`

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

## Headers

- `cookie` string

## Request body

- object
  - `payment_method_token` string: The unique ID of the payment method to be set as default for the user.

## Response `204`

No Content

## 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)
