Skip to main content
Creates a new customer without an initial subscription.
Deprecated: Use provisionCustomer instead, which can create both customer and subscription in a single operation.

Mutation

mutation CreateCustomer($input: CustomerInput!) {
  createOneCustomer(input: $input) {
    customerId
    name
    email
    billingId
    createdAt
  }
}
{
  "input": {
    "customerId": "customer-123",
    "name": "Acme Corp",
    "email": "billing@acme.com"
  }
}
{
  "data": {
    "createOneCustomer": {
      "customerId": "customer-123",
      "name": "Acme Corp",
      "email": "billing@acme.com",
      "billingId": null,
      "createdAt": "2024-01-15T10:30:00Z"
    }
  }
}

Parameters

input
CustomerInput
required
Input for creating a customer

Return Type

Returns a Customer object with all customer fields.