API reference · Price Rule

Delete Price Rule

DELETEhttps://api.sandbox.cws.digital/v1/priceRule/{id}

Description

Deactivates a price rule.

It is a logical deletion: the rule is no longer applied in quotations and leaves the listing, but its history is kept — there is no way to reactivate it through this API.

Parameters

Path parameters

FieldTypeRequiredDescriptionValue
idintegerYes

Rule id, as it came in id on creation or in the listing.

Responses

  • 202

    202 Accepted, no body. It is the confirmation.

  • 400

    Non-numeric or zero id.

  • 401

    Missing, malformed or expired token.

Try it

Sandbox

Language

Credentials

Access token: saved in this tab and used on every endpoint.

Each token only reaches the partner's own data and that of the branches with an authorized link.

Don't have sandbox credentials yet? See how to request them

Request

cURL
curl --request DELETE \
  --url 'https://api.sandbox.cws.digital/v1/priceRule/4210001' \
  --header 'Authorization: Bearer <access_token>'

Response

Click Try it to see the real response here, or pick a documented example: