---
updatedAt: 2026-04-20T19:23:49.000Z
agentTools:
  projectIndex: https://devdocs.helcim.com/llms.txt
---

# Create customer

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "This API covers publicly accessible merchant actions",
    "version": "2.2.0",
    "title": "The Helcim API"
  },
  "servers": [
    {
      "url": "https://api.helcim.com/v2"
    },
    {
      "url": "https://api.helcim.test/v2"
    }
  ],
  "paths": {
    "/customers": {
      "post": {
        "tags": [
          "Customer"
        ],
        "summary": "Create customer",
        "operationId": "create-customer",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer"
                }
              }
            }
          },
          "default": {
            "description": "Failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailedPaymentResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiAccessAuth": {
        "description": "API Token with required permissions",
        "type": "apiKey",
        "in": "header",
        "name": "api-token"
      }
    },
    "schemas": {
      "Address": {
        "title": "Address",
        "type": "object",
        "required": [
          "name",
          "street1",
          "postalCode"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "The recipient's name or business name for this address.\n",
            "example": "John Smith / Helcim"
          },
          "street1": {
            "type": "string",
            "description": "The primary street address.\n",
            "example": "21 Jump Street"
          },
          "street2": {
            "type": "string",
            "description": "Additional address details, such as unit or suite number.\n",
            "example": "Suite 400"
          },
          "city": {
            "type": "string",
            "description": "The city for this address.\n",
            "example": "Calgary"
          },
          "province": {
            "type": "string",
            "description": "The two-letter province or state code (e.g., AB, BC, CA).  Required if the country is CAN or USA.\n",
            "example": "AB"
          },
          "country": {
            "type": "string",
            "description": "The three-letter [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) country code (e.g., CAN, USA).\n",
            "example": "CAN"
          },
          "postalCode": {
            "type": "string",
            "description": "The postal or ZIP code for this address.\n",
            "example": "H0H0H0"
          },
          "phone": {
            "type": "string",
            "description": "Contact phone number (10 to 15 digits).\n",
            "example": 4031231234
          },
          "email": {
            "type": "string",
            "description": "Contact email address for this address.\n",
            "example": "john@example.com"
          }
        }
      },
      "FailedPaymentResponse": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "description": "List of errors",
            "items": {
              "type": "string",
              "example": "An error occurred"
            }
          }
        }
      },
      "Customer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 2488717,
            "description": "Id of Customer"
          },
          "customerCode": {
            "type": "string",
            "example": "CST1200",
            "description": "Customer code of the customer"
          },
          "businessName": {
            "type": "string",
            "example": "Best company",
            "description": "Name of the business"
          },
          "contactName": {
            "type": "string",
            "example": "John Smith",
            "description": "Contact Name"
          },
          "cellPhone": {
            "type": "string",
            "example": "908-295-4902",
            "description": "Cell phone number of customer"
          },
          "billingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "shippingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "cards": {
            "type": "array",
            "description": "Array of cards stored in the vault associated with this customer.",
            "items": {
              "title": "Card",
              "type": "object",
              "properties": {
                "cardHolderName": {
                  "type": "string",
                  "example": "John Smith",
                  "description": "The card holder name."
                },
                "cardF6L4": {
                  "type": "string",
                  "example": 5454545454,
                  "description": "The F6L4 of card."
                },
                "cardToken": {
                  "type": "string",
                  "example": "a1b2c3d4e5f6",
                  "description": "Card token"
                }
              }
            }
          }
        }
      },
      "CustomerRequest": {
        "title": "Customer Request",
        "type": "object",
        "properties": {
          "customerCode": {
            "type": "string",
            "example": "CST1000",
            "description": "The unique customer code. If blank, it will be automatically generated."
          },
          "contactName": {
            "type": "string",
            "example": "John Smith",
            "description": "The primary contact name (full name) of the customer."
          },
          "businessName": {
            "type": "string",
            "example": "Best Company",
            "description": "The business name of the customer. There must be either a contact name or business name present."
          },
          "cellPhone": {
            "type": "string",
            "example": "908-295-4902",
            "description": "The cell phone number of the customer."
          },
          "billingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "shippingAddress": {
            "$ref": "#/components/schemas/Address"
          }
        }
      }
    }
  }
}
```