Use this method to update a client or a supplier pricelist.
URL
(POST) companies/{companyid}/pricelists
PARAMETERS
token | The token obtained on connection | Required |
companyid | The id of the supplier. | Required |
data | A json containing the company information (see below) | Required |
JSON format of "data" parameter
Only specify those fields that you want to update.
PricelistCode | The name of the pricelist. The first pricelist created for a supplier will be defined as the "Standard pricelist" and be assigned an empty code. Even you specify a name for the first created pricelist, it will be ignored. Be careful: you can't add different pricelists with the same name for one supplier. | Optional |
Comments | Internal comments. | Optional |
DecimalPlaces | The number of decimals to which invoice totals will be rounded. A commonly used value is 2. | Optional |
CurrencyCode | The pricelist currency according to the ISO-4217 standard. Examples: "USD" or "EUR" .See https://fr.wikipedia.org/wiki/ISO_4217 for a complete list.If not specified and a standard pricelist exists, the new pricelist takes the currency from the standard pricelist. If creating the standard pricelist and currency is not set, "EUR" (Euro) will be chosen.It is recommended to always set this property. | Optional |
ContractNumber | The contract number. | Optional |
JSON format of field "Conversion"
Rate | A decimal. One unit in the standard pricelist currency equals this amount in the currency of the new pricelist. | Required |
Date | An optional date for the rate. | Optional |