CustomerContact
CustomerContact
List contacts for a customer
Required permission: TENANT.ACCESS
Reference to a Customer.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a specific page in a result set.
The number of items per page in a result set.
Defines which field the resource list is sorted by.
ENUM | Description |
---|---|
ASC | Sort in ascending order |
DESC | Sort in descending order |
GET /v2/tenants/{tenantUid}/customers/{customerUid}/contacts HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"items": [
{
"firstname": "text",
"lastname": "text",
"email": "text",
"mobile": "text",
"createdAt": "2025-07-30T17:19:18.781Z",
"lastModifiedAt": "2025-07-30T17:19:18.781Z",
"customerContactUid": "text",
"extensions": [
{
"extensionCode": "TWO_INVOICE",
"organizationUid": "text"
}
],
"displayName": "text"
}
],
"paging": {
"pageNumber": 1,
"pageSize": 1,
"totalCount": 1
}
}
Add a contact for a customer. Partial updates are allowed.
Required permission: TENANT.ACCESS
Reference to a Customer.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
CustomerContactCreateSchema
^[A-Za-z0-9-_]+
POST /v2/tenants/{tenantUid}/customers/{customerUid}/contacts HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 97
{
"firstname": "text",
"lastname": "text",
"email": "text",
"mobile": "text",
"customerContactUid": "text"
}
Example response
{
"firstname": "text",
"lastname": "text",
"email": "text",
"mobile": "text",
"createdAt": "2025-07-30T17:19:18.781Z",
"lastModifiedAt": "2025-07-30T17:19:18.781Z",
"customerContactUid": "text",
"extensions": [
{
"extensionCode": "TWO_INVOICE",
"organizationUid": "text"
}
],
"displayName": "text"
}
Get contact details for a customer
Required permission: TENANT.ACCESS
Reference to a Customer.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a Customer contact.
^[A-Za-z0-9-_]+
GET /v2/tenants/{tenantUid}/customers/{customerUid}/contacts/{customerContactUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"firstname": "text",
"lastname": "text",
"email": "text",
"mobile": "text",
"createdAt": "2025-07-30T17:19:18.781Z",
"lastModifiedAt": "2025-07-30T17:19:18.781Z",
"customerContactUid": "text",
"extensions": [
{
"extensionCode": "TWO_INVOICE",
"organizationUid": "text"
}
],
"displayName": "text"
}
Update contact details for a customer. Partial updates are allowed.
Required permission: TENANT.ACCESS
Reference to a Customer.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a Customer contact.
^[A-Za-z0-9-_]+
CustomerContactUpdateSchema
PUT /v2/tenants/{tenantUid}/customers/{customerUid}/contacts/{customerContactUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 69
{
"firstname": "text",
"lastname": "text",
"email": "text",
"mobile": "text"
}
Example response
{
"firstname": "text",
"lastname": "text",
"email": "text",
"mobile": "text",
"createdAt": "2025-07-30T17:19:18.781Z",
"lastModifiedAt": "2025-07-30T17:19:18.781Z",
"customerContactUid": "text",
"extensions": [
{
"extensionCode": "TWO_INVOICE",
"organizationUid": "text"
}
],
"displayName": "text"
}
Delete a contact for a customer.
Required permission: TENANT.BACKOFFICE
Reference to a Customer.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a Customer contact.
^[A-Za-z0-9-_]+
DELETE /v2/tenants/{tenantUid}/customers/{customerUid}/contacts/{customerContactUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No Content
No content
Add extension to a customer contact
Reference to a Customer.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a Customer contact.
^[A-Za-z0-9-_]+
ENUM | Description |
---|---|
TWO_INVOICE | The Two Invoice extension. |
^[A-Za-z0-9-_]+
POST /v2/tenants/{tenantUid}/customers/{customerUid}/contacts/{customerContactUid}/extensions/{customerExtensionCode} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"storeUid": "text"
}
Example response
{
"firstname": "text",
"lastname": "text",
"email": "text",
"mobile": "text",
"createdAt": "2025-07-30T17:19:18.781Z",
"lastModifiedAt": "2025-07-30T17:19:18.781Z",
"customerContactUid": "text",
"extensions": [
{
"extensionCode": "TWO_INVOICE",
"organizationUid": "text"
}
],
"displayName": "text"
}
Delete extension from a customer contact
Reference to a Customer.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a Customer contact.
^[A-Za-z0-9-_]+
ENUM | Description |
---|---|
TWO_INVOICE | The Two Invoice extension. |
^[A-Za-z0-9-_]+
DELETE /v2/tenants/{tenantUid}/customers/{customerUid}/contacts/{customerContactUid}/extensions/{customerExtensionCode} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"storeUid": "text"
}
No Content
No content
Was this helpful?