---
title: "Create a Braintree buy (one-off)"
method: POST
path: "/blaize/payment/braintree/buy"
tags: ["Braintree Payments"]
---

# Create a Braintree buy (one-off)

`POST /blaize/payment/braintree/buy`

## Request

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

Uses the payment info captured by the braintree drop-in UI and encoded in the payment nonce to create a braintree customer and issue a one-off payment.
When braintree responds successfully, the logged-in user will be granted all entitlements in the product's associated bundle.

## Headers

- `cookie` string

## Request body

- object
  - `product_id` string, required: Product Id/slug
  - `price_point_id` string, required: Price Point Id/slug
  - `payment_nonce` string, required: Payment method nonce from Braintree drop-in UI.

## Response `200`

OK

- object
  - `grant_id` string: New grant of product bundle to user.

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