Discount

Endpoints

Import entity list

/companies/{companycode}/establishments/{establishmentcode}/discounts/import

Parameters

Type Name Description Schema

Path

companyCode
required

Current context company code

string

Path

establishmentCode
required

Current context establishment code

string

Body

body
required

Responses

HTTP Code Description Schema

202

Accepted

No Content

400

Functionnal error

No Content

500

Internal server error

No Content

Consumes

  • application/json

Produces

  • application/json

Data structure

ImportDiscountList

Name Value

callback
optional

string

data
optional

Discount list

parameters
optional

Discount

Discount data structure.

Name Description Value Business rules

companyCode
optional

string

2 characters max

establishmentCode
optional

string

2 characters max

effectiveDate
required

Effective date

datetime (ISO-8601)

YYYY-MM-DDTHH:MM:SSZ

itemCode
required

Item code

string

20 characters max

customerCode
optional

Customer code

string

10 characters max

groupCode
optional

Customer group code

string

10 characters max

groupLevel
optional

Customer group level

integer

groupValueCode
optional

Customer group value code

string

20 characters max

percent
optional

Percent

double

price
optional

Price

double

currencyCode
required

Currency code

string

3 characters max

unitCode
required

Unit code

string

5 characters max

DiscountParameters

Discount parameters structure.

Name Description Value

deleteBeforeImport
optional

Delete discounts of the scope before import ?

boolean

discountTypeCode
required

Discount type code

string