Stripe

Create Stripe Customer

Creates a customer record in Stripe.

Unverified

What the model is told

Create a new customer in Stripe so they can be invoiced. Confirm the name and email with the customer first. It returns the customer ID (starts with cus_), which you need to create an invoice. Do not use this if you already hold a customer ID for them.

Request

POSThttps://api.stripe.com/v1/customers

Headers

  • AuthorizationBearer YOUR_STRIPE_SECRET_KEY
  • Content-Typeapplication/x-www-form-urlencoded

Body

name={{name}}&email={{email}}&phone={{phone}}

Parameters

  • name stringThe customer's full name.
  • email stringThe customer's email address.
  • phone stringThe customer's phone number.

Engage payload

{
  "source": "VOICE_AI",
  "tool": {
    "id": "e8fd3ae7-c601-40a3-bfe2-541953bd2783",
    "type": "HTTP_REQUEST",
    "label": "Create Stripe Customer",
    "name": "create_stripe_customer",
    "customName": false,
    "description": "Create a new customer in Stripe so they can be invoiced. Confirm the name and email with the customer first. It returns the customer ID (starts with cus_), which you need to create an invoice. Do not use this if you already hold a customer ID for them.",
    "parameters": [
      {
        "name": "name",
        "type": "string",
        "description": "The customer's full name."
      },
      {
        "name": "email",
        "type": "string",
        "description": "The customer's email address."
      },
      {
        "name": "phone",
        "type": "string",
        "description": "The customer's phone number."
      }
    ],
    "config": {
      "endpoint": {
        "method": "POST",
        "url": "https://api.stripe.com/v1/customers"
      },
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer YOUR_STRIPE_SECRET_KEY"
        },
        {
          "name": "Content-Type",
          "value": "application/x-www-form-urlencoded"
        }
      ],
      "body": "name={{name}}&email={{email}}&phone={{phone}}",
      "timeout": null
    }
  }
}

IDs are regenerated on every copy.