API reference · Price Rule
Delete Price Rule
- Method
- DELETE
- Route
-
/v1/priceRule/:id - Base URL
https://ws.autorei.net- Path parameters
:id- Token
- Requires Bearer token
Test in Postman
Opens this request in the public API documentation, the official source of the reference.
Description
Deactivates a price rule. It is a logical deletion: the rule stops being applied in quotations and leaves the list, but the history is preserved — there is no way to reactivate it through this API.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
integer | Yes | Rule id, as it came in id on creation or in the list. |
Response · 202
202 Accepted, with an empty body. Do not expect a confirmation JSON: the 202 is the confirmation.
Errors
| Code | When |
|---|---|
| 400 | id non-numeric or zero: {"error":"invalid id"}. |
| 404 | {"error":"Regra de preço não encontrada"} — nonexistent id, rule from another store, or rule already deactivated. Calling the same id twice returns 404 the second time. |
| 401 | Token missing, malformed or expired. |
Example request
curl --request DELETE 'https://ws.autorei.net/v1/priceRule/:id' \
--header 'Authorization: Bearer {{access_token}}' Example responses
202Success — rule deactivated
Used in
- Use casesEcommerce ERP integration: the typical path through the API
- Use casesB2B customer portal: the typical path through the API
- Use casesComplex retail and B2B2C: the typical path through the API
Related endpoints
Generated from the public API collection, published on 2026-09-04: api-docs.cws.digital.