Customer
Endpoints
Create new customer
| /companies/{companycode}/customers | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Body | body | 
Get entity list
| /companies/{companycode}/customers | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Query | page | Page index | integer (int32) | |
| Query | size | Entity count per page | integer (int32) | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | Successfull | < Customer > array | 
| 400 | Functionnal error | No Content | 
| 500 | Internal server error | No Content | 
Import entity list
| /companies/{companycode}/customers/import | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Body | body | 
Get one customer
| /companies/{companycode}/customers/{code} | 
| operation.deprecated | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | code | Entity code to retrieve | string | 10 characters max | 
| Path | companyCode | Current context company code | string | 2 characters max | 
Delete customer
| /companies/{companycode}/customers/{code} | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | code | Entity public uuid code to delete | string | 10 characters max | 
| Path | companyCode | Current context company code | string | 2 characters max | 
Data structure
Customer
Customer data structure.
| Name | Description | Value | Business Rules | 
|---|---|---|---|
| code | Customer code | string | 10 characters max | 
| companyCode | Current company code | string | 2 characters max | 
| deliveredTo | Delivered to | string | 10 characters max | 
| hierarchies | Hierarchies | GroupLink list | |
| label | Customer label | string | 50 characters max | 
| nature | Nature | string | IN(CUS=Customer,PRO=Prospect,OOC=Other customer,DVT=Delivered to) | 
| publicUuid | Customer public uuid | string | |
| referenceDate | Reference date | string | IN(ORD=Order date, SHI=Expedition date,DEL=Delivery date) | 
| validityEndDate | Validity end date | datetime | AAAA-MM-JJTHH:MM:SSZ | 
ImportCustomerList
| Name | Value | 
|---|---|
| callback | string | 
| data | Customer list |