- Docs
- Techvia TMS overview
- API reference
- Customers API reference
- Create a customer
Create a customer
POST /api/public/v1/customers
Scope: directory.write. MCP tool: create_customer. Rules and edge cases: Customers guide.
Request body
Section titled “Request body”Content type application/json. Limits and rules for each field are in the Customers guide.
| Field | Type | Required | Notes |
|---|---|---|---|
name |
string | no | |
mcType |
string | no | |
mcNumber |
string | no | |
street |
string | no | |
city |
string | no | |
state |
string | no | |
zip |
string | no | |
country |
string | no | |
contactName |
string | no | |
phone |
string | no | |
email |
string | no | |
confirmNew |
boolean | no | Default false |
Responses
Section titled “Responses”| Status | Meaning | Body |
|---|---|---|
201 |
Created | PublicCustomer |
409 |
Conflict | ProblemDetails |
422 |
Unprocessable Entity | ProblemDetails |
201 body
Section titled “201 body”| Field | Type | Notes |
|---|---|---|
id |
string (uuid) | |
name |
string | |
mcType |
string | |
mcNumber |
string | |
city |
string | |
state |
string | |
status |
enum CustomerStatus | One of Active, Inactive |
contactName |
string | |
phone |
string | |
email |
string | |
rowVersion |
integer |
Errors are RFC 7807 problem details; see Errors.