---
updatedAt: 2025-08-08T23:27:04.000Z
agentTools:
  projectIndex: https://docs.payarc.net/llms.txt
---

# Create a Customer

This API creates a customer.

# Customer Data Fields

This section provides detailed information about the fields that can be used to capture customer data in the API. Each field is outlined with its type, description, requirements, format, and examples.

## Fields

### 1. Name

* **Type:** `string`
* **Description:** The full name of the customer.
* **Required:** Optional
* **Format:** Alphabetic and Whitespace
* **Min Length:** 3 characters
* **Max Length:** 50 characters
* **Example:** `John Smith`

### 2. Email

* **Type:** `string`
* **Description:** The email address of the customer. This is displayed next to the customer in the dashboard and can be used for searching and tracking.
* **Required:** Yes
* **Format:** Alphanumeric and Special Characters
* **Max Length:** 40 characters
* **Example:** `someone@example.com`

### 3. Description

* **Type:** `string`
* **Description:** An arbitrary string that you can attach to a customer. It is displayed next to the customer in the dashboard.
* **Required:** Optional
* **Format:** Alphanumeric and Special Characters
* **Min Length:** 5 characters
* **Max Length:** 50 characters
* **Example:** `A1 Company`

### 4. Send Email Address

* **Type:** `string`
* **Description:** The email address where invoices will be sent.
* **Required:** Optional
* **Format:** Alphanumeric and Special Characters
* **Min Length:** 5 characters
* **Max Length:** 40 characters
* **Example:** `someone@example.com`

### 5. CC Email Address

* **Type:** `string`
* **Description:** An additional email address where copies of invoices will be sent.
* **Required:** Optional
* **Format:** Alphanumeric and Special Characters
* **Min Length:** 5 characters
* **Max Length:** 40 characters
* **Example:** `someone@example.com`

### 6. Country

* **Type:** `string`
* **Description:** The name of the customer's country.
* **Required:** Optional
* **Format:** Alphabetic
* **Min Length:** 2 characters
* **Max Length:** 50 characters
* **Example:** `US`

### 7. Address Line 1

* **Type:** `string`
* **Description:** The first line of the customer's address.
* **Required:** Optional
* **Format:** Alphanumeric
* **Min Length:** 5 characters
* **Max Length:** 50 characters
* **Example:** `103 Mason Street`

### 8. Address Line 2

* **Type:** `string`
* **Description:** The second line of the customer's address.
* **Required:** Optional
* **Format:** Alphanumeric
* **Min Length:** 5 characters
* **Max Length:** 50 characters
* **Example:** `2nd Floor`

### 9. City

* **Type:** `string`
* **Description:** The customer's city name. This can represent a City, District, Suburb, Town, or Village.
* **Required:** Optional
* **Format:** Alphabetic and Whitespace
* **Min Length:** 2 characters
* **Max Length:** 50 characters
* **Example:** `New York`

### 10. State

* **Type:** `string`
* **Description:** The state name where the customer resides. This can include State, County, Province, or Region.
* **Required:** Optional
* **Format:** Alphabetic and Whitespace
* **Min Length:** 2 characters
* **Max Length:** 50 characters
* **Example:** `NY`

### 11. ZIP Code

* **Type:** `integer`
* **Description:** The customer's ZIP code.
* **Required:** Optional
* **Format:** Numeric and Hyphen
* **Max Length:** 10 characters
* **Example:** `10469` or `10469-2345`
* **Note:** To group numbers, use a hyphen symbol. No other symbols or characters are allowed.

### 12. Phone Number

* **Type:** `integer`
* **Description:** The customer's phone number.
* **Required:** Optional
* **Format:** Numeric
* **Min Length:** 2 characters
* **Max Length:** 11 characters
* **Example:** `5417543010`

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "payarc-sandbox",
    "version": "1.2.0"
  },
  "servers": [
    {
      "url": "https://testapi.payarc.net"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-default": "YourAPIBearerKey",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/customers": {
      "post": {
        "summary": "Create a Customer",
        "description": "This API creates a customer.",
        "operationId": "create-customer",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "Indicates which content types, expressed as MIME types, the client is able to understand.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "Indicates the media type of the resource sent in the HTTP message body. <br /><br /><b>Possible Values:</b><br /> application/json<br />application/x-www-form-urlencoded",
            "required": true,
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "Email address of the customer. It is displayed next to the customer in the dashboard and can be used for searching and tracking."
                  },
                  "name": {
                    "type": "string",
                    "description": "Name of the customer."
                  },
                  "description": {
                    "type": "string",
                    "description": "An arbitrary string that you can attach to a customer. It is displayed next to the customer in the dashboard."
                  },
                  "send_email_address": {
                    "type": "string",
                    "description": "Email address to which the invoices will be sent."
                  },
                  "cc_email_address": {
                    "type": "string",
                    "description": "Email address to which the invoices will be sent."
                  },
                  "country": {
                    "type": "string",
                    "description": "Customer's country name."
                  },
                  "address_1": {
                    "type": "string",
                    "description": "The customer's address for line 1."
                  },
                  "address_2": {
                    "type": "string",
                    "description": "The customer's address for line 2."
                  },
                  "city": {
                    "type": "string",
                    "description": "The cutomer's city name. Can be a City/District/Suburb/Town/Village."
                  },
                  "state": {
                    "type": "string",
                    "description": "The customer's state name. Can be State/County/Province/Region."
                  },
                  "zip": {
                    "type": "integer",
                    "description": "The customer's ZIP code.",
                    "format": "int32"
                  },
                  "phone": {
                    "type": "integer",
                    "description": "The customer's phone number.",
                    "format": "int32"
                  }
                }
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "Email address of the customer. It is displayed next to the customer in the dashboard and can be used for searching and tracking."
                  },
                  "name": {
                    "type": "string",
                    "description": "Name of the customer."
                  },
                  "description": {
                    "type": "string",
                    "description": "An arbitrary string that you can attach to a customer. It is displayed next to the customer in the dashboard."
                  },
                  "send_email_address": {
                    "type": "string",
                    "description": "Email address to which the invoices will be sent."
                  },
                  "cc_email_address": {
                    "type": "string",
                    "description": "Email address to which the invoices will be sent."
                  },
                  "country": {
                    "type": "string",
                    "description": "Customer's country name."
                  },
                  "address_1": {
                    "type": "string",
                    "description": "The customer's address for line 1."
                  },
                  "address_2": {
                    "type": "string",
                    "description": "The customer's address for line 2."
                  },
                  "city": {
                    "type": "string",
                    "description": "The cutomer's city name. Can be a City/District/Suburb/Town/Village."
                  },
                  "state": {
                    "type": "string",
                    "description": "The customer's state name. Can be State/County/Province/Region."
                  },
                  "zip": {
                    "type": "integer",
                    "description": "The customer's ZIP code.",
                    "format": "int32"
                  },
                  "phone": {
                    "type": "integer",
                    "description": "The customer's phone number.",
                    "format": "int32"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"data\": {\n    \"object\": \"customer\",\n    \"customer_id\": \"ADjPnVDNMjMpVpMN\",\n    \"name\": \"Foo Bar\",\n    \"email\": \"foo@someplace.com\",\n    \"description\": \"Foo Bar\",\n    \"payment_overdue\": null,\n    \"send_email_address\": \"foo@someplace.com\",\n    \"cc_email_address\": \"foo@someplace.com\",\n    \"source_id\": null,\n    \"address_1\": \"Foo Bar\",\n    \"address_2\": \"Foo Bar\",\n    \"city\": \"Foo Bar\",\n    \"state\": \"NY\",\n    \"zip\": 11501,\n    \"phone\": 5555555555,\n    \"country\": \"Foo Bar\",\n    \"created_at\": 1724443729,\n    \"updated_at\": 1724443729,\n    \"readable_created_at\": \"1 second ago\",\n    \"readable_updated_at\": \"1 second ago\",\n    \"invoice_prefix\": \"1MAA\",\n    \"card\": {\n      \"data\": []\n    },\n    \"bank_account\": {\n      \"data\": []\n    }\n  },\n  \"meta\": {\n    \"include\": [\n      \"card\",\n      \"charge\",\n      \"subscription\",\n      \"invoice\",\n      \"bank_account\",\n      \"ach_charge\"\n    ],\n    \"custom\": []\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "object": {
                          "type": "string",
                          "example": "customer"
                        },
                        "customer_id": {
                          "type": "string",
                          "example": "ADjPnVDNMjMpVpMN"
                        },
                        "name": {
                          "type": "string",
                          "example": "Foo Bar"
                        },
                        "email": {
                          "type": "string",
                          "example": "foo@someplace.com"
                        },
                        "description": {
                          "type": "string",
                          "example": "Foo Bar"
                        },
                        "payment_overdue": {},
                        "send_email_address": {
                          "type": "string",
                          "example": "foo@someplace.com"
                        },
                        "cc_email_address": {
                          "type": "string",
                          "example": "foo@someplace.com"
                        },
                        "source_id": {},
                        "address_1": {
                          "type": "string",
                          "example": "Foo Bar"
                        },
                        "address_2": {
                          "type": "string",
                          "example": "Foo Bar"
                        },
                        "city": {
                          "type": "string",
                          "example": "Foo Bar"
                        },
                        "state": {
                          "type": "string",
                          "example": "NY"
                        },
                        "zip": {
                          "type": "integer",
                          "example": 11501,
                          "default": 0
                        },
                        "phone": {
                          "type": "integer",
                          "example": 5555555555,
                          "default": 0
                        },
                        "country": {
                          "type": "string",
                          "example": "Foo Bar"
                        },
                        "created_at": {
                          "type": "integer",
                          "example": 1724443729,
                          "default": 0
                        },
                        "updated_at": {
                          "type": "integer",
                          "example": 1724443729,
                          "default": 0
                        },
                        "readable_created_at": {
                          "type": "string",
                          "example": "1 second ago"
                        },
                        "readable_updated_at": {
                          "type": "string",
                          "example": "1 second ago"
                        },
                        "invoice_prefix": {
                          "type": "string",
                          "example": "1MAA"
                        },
                        "card": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "array"
                            }
                          }
                        },
                        "bank_account": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "array"
                            }
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "include": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "card"
                          }
                        },
                        "custom": {
                          "type": "array"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "422",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"email\": [\n      \"The email field is required.\"\n    ]\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "The given data was invalid."
                    },
                    "errors": {
                      "type": "object",
                      "properties": {
                        "email": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "The email field is required."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```