Skip to main content
POST
Create customer
The Create Customer endpoint adds a new business company (a Customer or a Broker/3PL) to your account. On success it returns the created record together with the optimistic-concurrency token (ETag) you will need for any later update or delete. For more information on how versioning works and how to include it in your requests, please refer to the Versioning page. Per-tenant, per-Type uniqueness is enforced on CompanyNumber, ExternalId, and (Name + Zip). A request that would create a duplicate is rejected with 409 Conflict and the identifier of the existing customer.

Request Parameters

The following parameter is required in the URL path:

Request Body

The request body accepts the following fields. Only Name is required.

Example CURL Request

Replace YOUR_ACCESS_TOKEN with your actual Bearer token.

Response Fields

A successful request returns the created customer. The optimistic-concurrency token is returned both on the HTTP ETag response header and in the ETag body field, so you can use it on a follow-up If-Match without an extra GET.

Example Response

201 Created

Status Codes


Rate Limits

All endpoints are subject to rate limits to protect the API from traffic spikes. For detailed information on rate limits, please refer to the Rate Limits section. This page is interactive, allowing you to try a request by completing the fields for the parameters below. As you fill out the parameters, the CURL command on the right side of the page will be automatically updated.

Authorizations

Authorization
string
header
required

OAuth 2.0 client-credentials access token. Obtain one from https://auth.alvys.com/oauth/token (grant_type=client_credentials, audience=https://api.alvys.com/public/), then paste it here. The playground sends it as Authorization: Bearer <token>.

Path Parameters

version
string
default:1.0
required

API version (e.g., 1.0)

Example:

"1.0"

Body

Name
string | null
Type
string | null
CompanyNumber
string | null
Status
string | null
BillingAddress
object | null
Email
string[] | null
Phone
string[] | null
Fax
string | null
ExternalId
string | null

Response

Created

Id
string
required
ETag
string
required
Name
string
required
CompanyNumber
string
required
Type
string
required
Status
string
required
Email
string[]
required
Phone
string[]
required
BillingAddress
object | null
Fax
string | null
DateCreated
string<date-time> | null
DateModified
string<date-time> | null
InvoicingInformation
object | null
ExternalId
string | null