Import parameters

Directory

/data/discounts

Files reference

  • filename : header

Other parameters

Context (companyCode, establishmentCode and discountTypeCode)

The import is set by a context defined by the company code (companyCode), the establishment code (establishmentCode) and the discount type code (discountTypeCode).

Files content

Data structure

Field Column Data type Required Business rules

Effective date

effectiveDate

String (ISO-8601)

X

YYYY-MM-DDTHH:MM:SSZ

Item code

itemCode

String

X

20 characters max

Customer code

customerCode

String

10 characters max

Price

price

Double

Pourcentage

percent

Double

Currency code

currencyCode

String

3 characters max

Unit code

unitCode

String

5 characters max

Discount nature code

discountNatureCode

String

X

10 characters max

Customer group code

groupCode

String

10 characters max

Customer group level

groupLevel

Integer

Customer group value code

groupValueCode

String

20 characters max

Example

effectiveDate;itemCode;customerCode;price;percent;discountNatureCode;currencyCode;unitCode;groupCode;groupLevel;groupValueCode
2014-05-28T00:00:00Z;ART1;01;100.0;95.0;D1;EUR;KG;01;1;01
2014-05-29T00:00:00Z;ART2;02;105.0;94.0;D2;EUR;G;;;