Delete service(s) in pricelist

Use 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'.


    URL

    (DELETE) companies/{companyid}/pricelists/{pricelistid}/services?token={tokenid}&serviceid={serviceid}

    PARAMETERS

    token

    The 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