Skip to main content
GET
Get a customer by ID

Authorizations

X-API-KEY
string
header
required

API key for the Twice API

Path Parameters

customerId
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

200

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