Use this method to update the properties of a service (pricelist item) in a pricelist.When adding a service, you need to have:The service id to updateThe pricelist id to which the service is addedThe company id to which the pricelist is attached
URL
(POST) 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 pricelist. The pricelist must belong to the company. | Required |
serviceid | The id of the service to update. The service must exist in the pricelist. | Required |
data | A json containing the service details, see below. | Required |
JSON format of "data" parameterSee previous chapter REF _Ref358978755 \r \h 9.4.5 for all parameters. All parameters are optional. Simply specify the fields you want to change. "TaskCode", "LocaleSource", and "LocaleTarget" can't be modified.Delete service(s) in pricelistUse this method to delete a service or all services from a given pricelist.To delete a single service, set a value to 'serviceid'.To delete all services, set 'deleteall' to 'true'.Method
Name | companies/{companyid}/pricelists/{pricelistid}/services?token={tokenid}&serviceid={serviceid}Urlhttp:// api.wordbee-translator.com / companies/{COMPANYID}/pricelists/{PRICELISTID}/services?token={TOKENID}&serviceid={SERVICEID}MethodDELETEParameterstokenThe token obtained on connection. | Required |
companyid | The id of the company which owns the pricelist. | Required |
pricelistid | The id of the pricelist. The pricelist must belong to the company. | Required |
serviceid | The id of the service to delete. The service must exist in the pricelist. You cannot specify a value for this parameter is you set "deleteall" to 'true'. | Optional |
deleteall | Boolean value. Sets to true if you want to remove all the services from the pricelist. Do not set this parameter to 'true' if you also specify a 'serviceid'. That would return an error. | Optional |