Chargebee

Create Chargebee Customer

Creates a customer record in Chargebee.

Unverified

What the model is told

Create a new customer in Chargebee. Confirm the name, email and phone with the customer first. Do not use this if you already hold a customer ID for them. It returns the customer ID.

Request

POSThttps://YOUR_CHARGEBEE_SITE.chargebee.com/api/v2/customers

Headers

  • Content-Typeapplication/x-www-form-urlencoded
  • AuthorizationBasic YOUR_BASE64_CHARGEBEE_API_KEY

Body

first_name={{firstName}}&last_name={{lastName}}&email={{email}}&phone={{phone}}

Parameters

  • firstName stringThe customer's first name.
  • lastName stringThe customer's last name.
  • email stringThe customer's email address.
  • phone stringThe customer's phone number.

Engage payload

{
  "source": "VOICE_AI",
  "tool": {
    "id": "de619e6d-8a37-404a-9fe5-660c45164c90",
    "type": "HTTP_REQUEST",
    "label": "Create Chargebee Customer",
    "name": "create_chargebee_customer",
    "customName": false,
    "description": "Create a new customer in Chargebee. Confirm the name, email and phone with the customer first. Do not use this if you already hold a customer ID for them. It returns the customer ID.",
    "parameters": [
      {
        "name": "firstName",
        "type": "string",
        "description": "The customer's first name."
      },
      {
        "name": "lastName",
        "type": "string",
        "description": "The customer's last 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://YOUR_CHARGEBEE_SITE.chargebee.com/api/v2/customers"
      },
      "headers": [
        {
          "name": "Content-Type",
          "value": "application/x-www-form-urlencoded"
        },
        {
          "name": "Authorization",
          "value": "Basic YOUR_BASE64_CHARGEBEE_API_KEY"
        }
      ],
      "body": "first_name={{firstName}}&last_name={{lastName}}&email={{email}}&phone={{phone}}",
      "timeout": null
    }
  }
}

IDs are regenerated on every copy.