Unit
Endpoints
Create new unit
| /units | 
Get entity list
| /units | 
Parameters
| Type | Name | Description | Schema | 
|---|---|---|---|
| Query | page | Page index | integer (int32) | 
| Query | size | Entity count per page | integer (int32) | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | Successfull | < Unit > array | 
| 400 | Functionnal error | No Content | 
| 500 | Internal server error | No Content | 
Import entity list
| /units/import | 
Get one unit
| /units/{code} | 
| operation.deprecated | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | code | Entity code to retrieve | string | 5 characters max | 
Delete unit
| /units/{code} | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | code | Entity public uuid code to delete | string | 5 characters max | 
Data structure
Unit
Unit data structure.
| Name | Description | Value | Business Rules | 
|---|---|---|---|
| code | Unit code | string | 5 characters max | 
| ediReference | EDI reference | string | IN(AUC=None,PCE=Piece,CT=Box,PC=Parcel,TB=Bac,LTR=Litre,KGM=Kilogram,RCA=Roll,BJ=Bucket,TRE=Trolley,_201=pallet ISO 1/1 120*80,X1=pallet (X1),X2=Box pallet,_202=pallet ISO 1/2 60*80,CS=Case,BG=Bag) | 
| label | Unit label | string | 50 characters max | 
| nbDecimals | Decimals number | integer | |
| publicUuid | Unit public uuid | string | |
| unitFamily | Unit family | string | IN(PDS=Weigh,AUT=other,CDT=Piece,TPS=Time,LON=Length,TEM=Temperature,VOL=Volume) | 
| validityEndDate | Validity end date | datetime | YYYY-MM-DDTHH:MM:SSZ | 
ImportUnitList
| Name | Value | 
|---|---|
| callback | string | 
| data | Unit list |