Discount type
Endpoints
Create new discount type
| /companies/{companycode}/establishments/{establishmentcode}/discount-types | 
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}/discount-types | 
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 | < CodeLabelValidity > array | 
| 400 | Functionnal error | No Content | 
| 500 | Internal server error | No Content | 
Import entity list
| /companies/{companycode}/establishments/{establishmentcode}/discount-types/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 discount type
| /companies/{companycode}/establishments/{establishmentcode}/discount-types/{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 | 
| Path | establishmentCode | Current context establishment code | string | 2 characters max | 
Delete discount type
| /companies/{companycode}/establishments/{establishmentcode}/discount-types/{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 | 
| Path | establishmentCode | Current context establishment code | string | 2 characters max | 
Import entity list
| /companies/{companycode}/establishments/{establishmentcode}/discounts/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 | 
Data structure
ImportDiscountList
| Name | Value | 
|---|---|
| callback | string | 
| data | Discount list | 
| parameters | 
Discount
Discount data structure.
| Name | Description | Value | Business Rules | 
|---|---|---|---|
| companyCode | string | 2 characters max | |
| currencyCode | Currency code | string | |
| customerCode | Customer code | string | |
| discountNatureCode | Discount nature code | string | |
| effectiveDate | Effective date | datetime (ISO-8601) | |
| establishmentCode | string | 2 characters max | |
| groupCode | Customer group code | string | |
| groupLevel | Customer group level | integer | |
| groupValueCode | Customer group value code | string | |
| itemCode | Item code | string | |
| percent | Percent | double | |
| price | Price | double | |
| unitCode | Unit code | string |