---
title: "Create a new Braintree payment method."
method: POST
path: "/zephr/payment/braintree/payment-methods"
tags: ["Braintree Payments"]
---

# Create a new Braintree payment method.

`POST /zephr/payment/braintree/payment-methods`

## Request

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

Creates the Braintree payment method with the associated vaulted nonce, for the authenticated user.

## Headers

- `cookie` string, required

## Request body

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

## Response `200`

OK. A new Braintree payment method has been created for the authenticated user.

- 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

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