Use this method to add a service (pricelist item) to a pricelist.
When adding a service, you need to have:
-
The pricelist id to which the service is added
-
The company id to which the pricelist is attached
URL
(PUT) companies/{companyid}/pricelists/{pricelistid}/services
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 |
|
pricelistid |
The id of the client or supplier price list. |
Required |
|
data |
A json containing the service details, see below. |
Required |
JSON format of "data" parameter
|
TaskCode |
The task category code such as "TR" for translation. See on how to get the list of all available codes. |
Required |
|
LocaleSource |
The source language code. See Languages for a list of all supported ISO-2 language codes. Use "*" (star) for services applicable to all languages. |
Required |
|
LocaleTarget |
Array of strings representing the target language code. See for a list of all supported ISO-2 language codes. Use "*" (star) for services applicable to all languages. The target language must be different from the source language (except if you use "*"). Sample: LocaleTarget":["en"] |
Required |
|
ProductCode |
An optional short text that is shown as "product code" in Wordbee. |
Optional |
|
Comments |
Comments attached to the service. |
Optional |
|
PriceAmount |
The unit price formatted as a decimal. Drop field or set to 0 to create a service without a price. Default: 0 |
Optional |
|
PriceUnitCode |
Specifies the costed unit such as “WD” for words. See 12.8 for the list of all supported unit codes. Default: WD |
Optional |
|
PriceUnits |
The number of units included in the price. For example, a service may define “0,1 Euros per 10 words”. In this example PriceUnits would be 10. Default: 1 |
Optional |
|
Rating |
A value between 1 and 5 to rate the quality or priority of the service. 5 is best. Default: 3 |
Optional |
|
DelayHours |
Indicates the lead time in hours applicable by the supplier. The lead time is the minimum time in hours from notification of work until start to work. For example: If the supplier lives in a different time zone, a minimum lead time would reflect the time difference. |
Optional |
|
DelayDays |
Indicates the lead time in days applicable by the supplier. You can combine this value with DelayHours and obtain for example a lead time of 1 day and 7 hours. |
Optional |
|
DelayUnitsPerDay |
The capacity of the supplier. It indicates the number of units the supplier can process per day (see PriceUnitCode). The unit is indicated in field PriceUnitCode. |
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 |