Skip to main content
POST
Create a new customer

Authorizations

X-API-KEY
string
header
required

API key for the Twice API

Body

application/json

Body

firstName
string
required
lastName
string
phone
string
email
string<email>
Pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
homeAddress
object
accommodation
string
language
string
customerType
enum<string>
Available options:
individual,
business
companyName
string
taxId
string
dateOfBirth
string
billingAddress
object
shippingAddress
object
attributes
object

Response

201

id
string
required
createdAt
string
required
updatedAt
string
required
firstName
string
required
fullName
string
required
email
string<email> | null
required
Pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
customerType
enum<string>
required
Available options:
individual,
business
status
enum<string>
required
Available options:
active,
archived
aggregateData
object
required
lastName
string
phone
string
companyName
string
taxId
string
dateOfBirth
string
language
string
billingAddress
object
shippingAddress
object
archivedAt
string<date-time> | null
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
attributes
object
documents
object
tags
object