Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Use this method to add a pricelist.

URL

(PUT) companies/{companyid}/pricelists

PARAMETERS

token

The token obtained on connection.

Required

companyid

The id of the supplier company (create a supplier pricelist) or the master company (create a client pricelist).

Required

data

A json containing the company information, see below.

Required


JSON format of "data" parameter

PricelistCodeThe 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.Required
CommentsInternal comments.Optional
DecimalPlacesThe number of decimals to which invoice totals will be rounded. A commonly used value is 2.Optional
CurrencyCodeThe 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
ContractNumberThe contract number.Optional

JSON format of field "Conversion"

RateA decimal. One unit in the standard pricelist currency equals this amount in the currency of the new pricelist.Required
DateAn optional date for the rate.Optional





  • No labels