Heads up, our devs are blazing ahead—docs are catching up, so some features might not be fully documented yet.

CustomerContact

CustomerContact

List contacts for a customer

get
/tenants/{tenantUid}/customers/{customerUid}/contacts

List contacts for a customer

Required permission: TENANT.ACCESS

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
customerUidstringRequired

Reference to a Customer.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Query parameters
pageNumberintegerOptional

Reference to a specific page in a result set.

pageSizeintegerOptional

The number of items per page in a result set.

sortBystringOptional

Defines which field the resource list is sorted by.

sortDirectionstring · enumOptional
ENUM Description
ASC Sort in ascending order
DESC Sort in descending order
Possible values:
Responses
200

Example response

application/json
get
/tenants/{tenantUid}/customers/{customerUid}/contacts
200

Example response

Add a contact for a customer

post
/tenants/{tenantUid}/customers/{customerUid}/contacts

Add a contact for a customer. Partial updates are allowed.

Required permission: TENANT.ACCESS

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
customerUidstringRequired

Reference to a Customer.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Body

CustomerContactCreateSchema

firstnamestringRequired
lastnamestringRequired
emailstringOptional
mobilestringOptional
customerContactUidstringOptionalPattern: ^[A-Za-z0-9-_]+
Responses
200

Example response

application/json
post
/tenants/{tenantUid}/customers/{customerUid}/contacts
200

Example response

Get contact details for a customer

get
/tenants/{tenantUid}/customers/{customerUid}/contacts/{customerContactUid}

Get contact details for a customer

Required permission: TENANT.ACCESS

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
customerUidstringRequired

Reference to a Customer.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
customerContactUidstringRequired

Reference to a Customer contact.

Pattern: ^[A-Za-z0-9-_]+
Responses
200

Example response

application/json
get
/tenants/{tenantUid}/customers/{customerUid}/contacts/{customerContactUid}
200

Example response

Update contact details for a customer

put
/tenants/{tenantUid}/customers/{customerUid}/contacts/{customerContactUid}

Update contact details for a customer. Partial updates are allowed.

Required permission: TENANT.ACCESS

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
customerUidstringRequired

Reference to a Customer.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
customerContactUidstringRequired

Reference to a Customer contact.

Pattern: ^[A-Za-z0-9-_]+
Body

CustomerContactUpdateSchema

firstnamestringOptional
lastnamestringOptional
emailstringOptional
mobilestringOptional
Responses
200

Example response

application/json
put
/tenants/{tenantUid}/customers/{customerUid}/contacts/{customerContactUid}
200

Example response

Delete a contact for a customer

delete
/tenants/{tenantUid}/customers/{customerUid}/contacts/{customerContactUid}

Delete a contact for a customer.

Required permission: TENANT.BACKOFFICE

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
customerUidstringRequired

Reference to a Customer.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
customerContactUidstringRequired

Reference to a Customer contact.

Pattern: ^[A-Za-z0-9-_]+
Responses
delete
/tenants/{tenantUid}/customers/{customerUid}/contacts/{customerContactUid}
204

No Content

No content

Add extension to a customer contact

post
/tenants/{tenantUid}/customers/{customerUid}/contacts/{customerContactUid}/extensions/{customerExtensionCode}

Add extension to a customer contact

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
customerUidstringRequired

Reference to a Customer.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
customerContactUidstringRequired

Reference to a Customer contact.

Pattern: ^[A-Za-z0-9-_]+
customerExtensionCodestring · enumRequired
ENUM Description
TWO_INVOICE The Two Invoice extension.
Possible values:
Body
storeUidstringRequiredPattern: ^[A-Za-z0-9-_]+
Responses
200

Example response

application/json
post
/tenants/{tenantUid}/customers/{customerUid}/contacts/{customerContactUid}/extensions/{customerExtensionCode}
200

Example response

Delete extension from a customer contact

delete
/tenants/{tenantUid}/customers/{customerUid}/contacts/{customerContactUid}/extensions/{customerExtensionCode}

Delete extension from a customer contact

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
customerUidstringRequired

Reference to a Customer.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
customerContactUidstringRequired

Reference to a Customer contact.

Pattern: ^[A-Za-z0-9-_]+
customerExtensionCodestring · enumRequired
ENUM Description
TWO_INVOICE The Two Invoice extension.
Possible values:
Body
storeUidstringRequiredPattern: ^[A-Za-z0-9-_]+
Responses
delete
/tenants/{tenantUid}/customers/{customerUid}/contacts/{customerContactUid}/extensions/{customerExtensionCode}
204

No Content

No content

Last updated

Was this helpful?