Skip to content
For LLMsView as Markdown·

Braintree

Accept credit cards, PayPal, and digital wallets with Braintree gateway.

DetailValue
CategoryPayments
Base URLhttps://payments.braintreegateway.com
AuthenticationBearer Token
Endpoints5
Connector keybraintree

Using Braintree in a workflow

  1. Go to Connections and click New Connection.
  2. Pick Braintree from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
POST /merchants/{merchant_id}/transactionsCreate a transaction
GET /merchants/{merchant_id}/transactions/{transaction_id}Find a transaction
POST /merchants/{merchant_id}/customersCreate a customer
GET /merchants/{merchant_id}/customers/{customer_id}Find a customer
POST /merchants/{merchant_id}/transactions/{transaction_id}/refundRefund a transaction

Each endpoint is documented in full below. Use the outline on the right to jump to one.

POST /merchants/{merchant_id}/transactions

Create a transaction

DetailValue
Operation IDpayments.createTransaction
MethodPOST
Path/merchants/{merchant_id}/transactions

Parameters

NameLocationTypeRequired
merchant_idpathstringYes

Request Body

FieldType
amountstring
payment_method_noncestring

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Braintree connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.createTransaction.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Braintree API reference.

GET /merchants/{merchant_id}/transactions/{transaction_id}

Find a transaction

DetailValue
Operation IDpayments.getTransaction
MethodGET
Path/merchants/{merchant_id}/transactions/{transaction_id}

Parameters

NameLocationTypeRequired
merchant_idpathstringYes
transaction_idpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Braintree connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.getTransaction.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Braintree API reference.

POST /merchants/{merchant_id}/customers

Create a customer

DetailValue
Operation IDpayments.createCustomer
MethodPOST
Path/merchants/{merchant_id}/customers

Parameters

NameLocationTypeRequired
merchant_idpathstringYes

Request Body

FieldType
first_namestring
last_namestring
emailstring

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Braintree connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.createCustomer.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Braintree API reference.

GET /merchants/{merchant_id}/customers/{customer_id}

Find a customer

DetailValue
Operation IDpayments.getCustomer
MethodGET
Path/merchants/{merchant_id}/customers/{customer_id}

Parameters

NameLocationTypeRequired
merchant_idpathstringYes
customer_idpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Braintree connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.getCustomer.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Braintree API reference.

POST /merchants/{merchant_id}/transactions/{transaction_id}/refund

Refund a transaction

DetailValue
Operation IDpayments.refundTransaction
MethodPOST
Path/merchants/{merchant_id}/transactions/{transaction_id}/refund

Parameters

NameLocationTypeRequired
merchant_idpathstringYes
transaction_idpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Braintree connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.refundTransaction.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Braintree API reference.