Activity
Endpoints
Create new activity
|
/companies/{companycode}/establishments/{establishmentcode}/activities |
Parameters
| Type | Name | Description | Schema | Business Rules |
|---|---|---|---|---|
Path |
companyCode |
Current context company code |
string |
2 characters max |
Path |
establishmentCode |
Current context establishment code |
string |
2 characters max |
Body |
body |
Get entity list
|
/companies/{companycode}/establishments/{establishmentcode}/activities |
Parameters
| Type | Name | Description | Schema | Business Rules |
|---|---|---|---|---|
Path |
companyCode |
Current context company code |
string |
2 characters max |
Path |
establishmentCode |
Current context establishment 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 |
< Activity > array |
400 |
Functionnal error |
No Content |
500 |
Internal server error |
No Content |
Import entity list
|
/companies/{companycode}/establishments/{establishmentcode}/activities/import |
Parameters
| Type | Name | Description | Schema | Business Rules |
|---|---|---|---|---|
Path |
companyCode |
Current context company code |
string |
2 characters max |
Path |
establishmentCode |
Current context establishment code |
string |
2 characters max |
Body |
body |
Get one activity
|
/companies/{companycode}/establishments/{establishmentcode}/activities/{code} |
|
operation.deprecated |
Parameters
| Type | Name | Description | Schema | Business Rules |
|---|---|---|---|---|
Path |
code |
Activity code to retrieve |
string |
20 characters max |
Path |
companyCode |
Current context company code |
string |
2 characters max |
Path |
establishmentCode |
Current context establishment code |
string |
2 characters max |
Delete activity
|
/companies/{companycode}/establishments/{establishmentcode}/activities/{code} |
Parameters
| Type | Name | Description | Schema | Business Rules |
|---|---|---|---|---|
Path |
code |
Activity public uuid code to delete |
string |
20 characters max |
Path |
companyCode |
Current context company code |
string |
2 characters max |
Path |
establishmentCode |
Current context establishment code |
string |
2 characters max |
Data structure
Activity
Description of an activity.
| Name | Description | Value | Business Rules |
|---|---|---|---|
areaCode |
Area code |
string |
10 characters max |
code |
Activity code |
string |
20 characters max |
companyCode |
Current company code |
string |
2 characters max |
contexts |
ContextOfUse list |
||
details |
ActivityDetail list |
||
establishmentCode |
Current establishment code |
string |
2 characters max |
familyCode |
Family code |
string |
10 characters max |
flowType |
Flow type |
string |
IN(PUSH,PULL) |
label |
Activity label |
string |
50 characters max |
publicUuid |
Activity public uuid |
string |
|
referenceItemCode |
Reference item code |
string |
20 characters max |
referenceUnitCode |
Reference unit code |
string |
5 characters max |
validityEndDate |
datetime |
YYYY-MM-DDTHH:MM:SSZ |
ActivityDetail
| Name | Description | Value | ||
|---|---|---|---|---|
costItems |
CostItem list |
|||
inputs |
|
ActivityInput list |
||
operations |
|
ActivityOperation list |
||
outputs |
|
ActivityOutput list |
||
referenceQuantity |
double |
ActivityInput
| Name | Value | Business Rules |
|---|---|---|
depositCode |
string |
10 characters max |
fixed |
boolean |
|
itemCode |
string |
20 characters max |
quantity |
double |
MUST HAVE at most same number of decimal places as item’s unit |
shrinkageLine |
boolean |
|
shrinkageRate |
double |
MUST BE SET IF shrinkageLine = TRUE |
substituteItems |
list |
|
unitCode |
string |
5 characters max |
comment |
string |
100 characters max |
ActivityOperation
| Name | Value | Business Rules |
|---|---|---|
default |
boolean |
|
operatingProcessCode |
string |
20 characters max |
ActivityOutput
| Name | Value | Business Rules |
|---|---|---|
depositCode |
string |
10 characters max |
fixed |
boolean |
|
itemCode |
string |
20 characters max |
quantity |
double |
MUST HAVE at most same number of decimal places as item’s unit |
shrinkageLine |
boolean |
|
shrinkageRate |
double |
MUST BE SET IF shrinkageLine = TRUE |
unitCode |
string |
5 characters max |
comment |
string |
100 characters max |
CostItem
| Name | Value | Business Rules |
|---|---|---|
fixed |
boolean |
|
itemCode |
string |
20 characters max |
quantity |
double |
MUST HAVE at most same number of decimal places as item’s unit |
unitCode |
string |
5 characters max |
ImportActivityList
| Name | Value |
|---|---|
callback |
string |
data |
Activity list |