Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to Braintree

Scalekit connector
Open markdown

The Braintree connector lets your AI agent act in each user's Braintree account. Each user connects their own Braintree API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 27 tools.

Tools
27
What they doRead · write · destructive
13 · 7 · 713 read7 write7 destructive
Users sign in with

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the Braintree connection

    In AgentKit > Connections, create a Braintree connection. The name you give it is the connection_name your code passes. See Configure connections.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • braintree_customer_getGet one Braintree vault customer by GraphQL ID, with their vaulted payment methods.Read-only

    Get Customer

    Get one Braintree vault customer by GraphQL ID, with their vaulted payment methods. Returns the customer's id, legacyId, name, email, company, phone, website, custom fields, default payment method and payment methods. Use Search Customers to find a customer by email.

    Inputs

    customer_idstringrequired
    Braintree GraphQL ID of the customer (not the legacy ID shown in the Control Panel; convert one with Get ID From Legacy ID). Get it from Search Customers. Example: Y3VzdG9tZXJfYWJjMTIz.
  • braintree_dispute_getGet one Braintree dispute by GraphQL ID.Read-only

    Get Dispute

    Get one Braintree dispute by GraphQL ID. Returns the dispute's id, status, type, caseNumber, referenceNumber, receivedDate, replyByDate, amounts, transaction, evidence and status history. Use Search Disputes to find open disputes.

    Inputs

    dispute_idstringrequired
    Braintree GraphQL ID of the dispute (not the legacy ID shown in the Control Panel; convert one with Get ID From Legacy ID). Get it from Search Disputes. Example: ZGlzcHV0ZV9hYmMxMjM.
  • braintree_legacy_id_convertConvert a legacy Braintree ID (as shown in the Control Panel and the older SDKs) into the GraphQL ID the other tools need.Read-only

    Get ID From Legacy ID

    Convert a legacy Braintree ID (as shown in the Control Panel and the older SDKs) into the GraphQL ID the other tools need. Returns the GraphQL ID. Use this when you only have a Control Panel transaction, customer, refund, dispute or payment method ID.

    Inputs

    legacy_idstringrequired
    Legacy ID from the Control Panel or SDK. Example: 8wb5v7nq.
    typestringrequired
    What the ID is for: TRANSACTION, CUSTOMER, REFUND, DISPUTE, PAYMENT_METHOD, RECURRING_BILLING_SUBSCRIPTION, RECURRING_BILLING_SUBSCRIPTION_PLAN, VERIFICATION and other Braintree legacy ID types. Example: TRANSACTION.one of CUSTOMERDISPUTEMERCHANT_ACCOUNT_APPLICATIONPAYMENT_CONTEXTPAYMENT_METHODRECURRING_BILLING_SUBSCRIPTIONRECURRING_BILLING_SUBSCRIPTION_PLANRECURRING_BILLING_SUBSCRIPTION_PLAN_ADD_ONRECURRING_BILLING_SUBSCRIPTION_PLAN_DISCOUNTREFUNDTRANSACTIONUS_BANK_ACCOUNT_VERIFICATIONVERIFICATION
  • braintree_payment_method_getGet one vaulted Braintree payment method by its GraphQL ID.Read-only

    Get Payment Method

    Get one vaulted Braintree payment method by its GraphQL ID. Returns the payment method's id, legacyId, usage, createdAt, details type and customer. Use Get Customer to list a customer's payment methods.

    Inputs

    payment_method_idstringrequired
    Braintree GraphQL ID of the payment method (not the legacy ID shown in the Control Panel; convert one with Get ID From Legacy ID). Get it from Get Customer. Example: cGF5bWVudG1ldGhvZF9jY19hYmMxMjM.
  • braintree_pingCheck that the Braintree connection and credentials work.Read-only

    Ping

    Check that the Braintree connection and credentials work. Returns the string pong. Use this to test a new connection. Use Get Viewer for merchant details.

    Inputs

    This tool takes no inputs.