Purchase
Endpoints
Get entity list
| /processes/{processcode}/purchases | 
Parameters
| Type | Name | Description | Schema | 
|---|---|---|---|
| Path | processCode | Process code | string | 
| Query | page | Page index | integer (int32) | 
| Query | size | Entity count per page | integer (int32) | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | Successfull | < Purchase > array | 
| 400 | Functionnal error | No Content | 
| 500 | Internal server error | No Content | 
Data structure
Purchase
Purchase.
| Name | Description | Value | 
|---|---|---|
| companyCode | Current company code | string | 
| establishmentCode | Current establishment code | string | 
| isValidated | Is validated ? | boolean | 
| itemCode | Item code | string | 
| orderDate | Order date | datetime (ISO-8601) | 
| quantity | Quantity | double | 
| receiptDate | Receipt date | datetime (ISO-8601) | 
| unitCode | Unit code | string |