Customer
Please see the Breaking changes page for more info on the planned changes in validation.
Customer schema
id
long?
Customer ID - cannot be null in PUT/PATCH methods
📶 EQUALS
,ENUM
_cloudId
integer
Cloud ID
_discountGroupId
long?
Discount group ID
📶 EQUALS
,ENUM
_sellerId
long?
Seller ID
📶 EQUALS
,ENUM
addressLine1
string(180)
Address line 1
📶 STRING
addressLine2
string?(180)
Address line 2
📶 STRING
barcode
string(50)
Bar code
📶 EQUALS
,ENUM
birthday
timestamp?
The date of birth
city
string?(255)
City
📶 EQUALS
,STRING
companyId
string(255)
Customer company ID (CZ: IČO, PL: REGON)
📶 STRING
companyName
string(180) [1]
Customer company name
📶 STRING
🔽 BOTH
country
string?(10)
Country code
📶 STRING
created
timestamp?
Customer created date and time
📶 EQUALS
, ENUM
, NUMBER
🔽 BOTH
deleted
boolean
Customer deleted - cannot be true in POST/PUT/PATCH methods
📶 EQUALS
, ENUM
🔽 BOTH
display
boolean
Customer displayed
📶 EQUALS
, ENUM
🔽 BOTH
email
string(100)
E-mail address
📶 STRING
expireDate
timestamp?
Customer expire date and time
📶 EQUALS
, ENUM
, NUMBER
🔽 BOTH
externalId
string?(256)
External ID
📶 EQUALS
,ENUM
firstName
string(180) [1]
First name
📶 STRING
🔽 BOTH
flags
long
Customer flags
📶 BITS
headerPrint
string(256)
Header for printing
hexColor
string(7)
Product color
internalNote
string(1000)
Internal note
lastName
string(180) [1]
Last name
📶 STRING
🔽 BOTH
modifiedBy
string?(32)
Customer modified by
note
string?(500)
Customer note
phone
string(20)
Phone
📶 STRING
points
double
Customer points - must be greater than or equal to 0
📶 NUMBER
tags
string[](255)
Tags for a customer, must not contain any of these characters: ,^?*()[]$
📶 EQUALS
, ENUM
vatId
string(255)
Customer VAT ID (CZ: DIČ, PL: NIP). Validation regex.
📶 STRING
versionDate
timestamp?
Last modification date and time
📶 EQUALS
, ENUM
, NUMBER
🔽 BOTH
zip
string(20)
ZIP code
📶 STRING
[1] Properties firstName
, lastName
and companyName
must not be blank. At least one of these properties must contain a non-blank value.
JSON response
Get customers
GET
https://api.dotykacka.cz/v2/clouds/:cloudId/customers
Path Parameters
cloudId*
integer
Query Parameters
page
integer
limit
integer
filter
string
sort
string
Headers
If-None-Match
string
ETag to return results only if changed.
Authorization*
string
Bearer accessToken
Get customer
GET
https://api.dotykacka.cz/v2/clouds/:cloudId/customers/:customerId
Path Parameters
customerId*
integer
cloudId*
integer
Headers
If-None-Match
string
ETag to return results only if changed.
Authorization*
string
Bearer accessToken
Create customers
POST
https://api.dotykacka.cz/v2/clouds/:cloudId/customers
Path Parameters
cloudId*
integer
Headers
Authorization*
string
Bearer accessToken
Request Body
array
Array of Customer object
Replace or create customers
PUT
https://api.dotykacka.cz/v2/clouds/:cloudId/customers
Path Parameters
cloudId*
integer
Headers
If-Match
string
ETag to update only if not changed.
Authorization*
string
Bearer accessToken
Request Body
array
Array of Customer object
Replace or create customer
PUT
https://api.dotykacka.cz/v2/clouds/:cloudId/customers/:customerId
Path Parameters
customerId*
integer
cloudId*
integer
Headers
If-Match
string
ETag to update only if not changed.
Authorization*
string
Bearer accessToken
Request Body
object
Customer object
Partial update of Customer
PATCH
https://api.dotykacka.cz/v2/clouds/:cloudId/customers/:customerId
Path Parameters
customerId*
integer
cloudId*
integer
Headers
If-Match*
string
ETag to update only if not changed.
Authorization*
string
Bearer accessToken
Request Body
string
Object with some Customer properties
Delete customer
DELETE
https://api.dotykacka.cz/v2/clouds/:cloudId/customers/:customerId
Path Parameters
customerId*
integer
cloudId*
integer
Query Parameters
anonymize
boolean
Default false
Headers
If-Match
string
ETag ignored (temporarily) when deleting an entity.
Authorization*
string
Bearer accessToken
Options customers
OPTIONS
https://api.dotykacka.cz/v2/clouds/:cloudId/customers
Path Parameters
cloudId*
integer
Headers
Authorization*
string
Bearer accessToken
Options customer
OPTIONS
https://api.dotykacka.cz/v2/clouds/:cloudId/customers/:customerId
Path Parameters
customerId*
integer
cloudId*
integer
Headers
Authorization*
string
Bearer accessToken
Last updated