Update a sale

Updates an existing sale by ID.

Path Params
integer
required

The unique identifier of the sale.

Body Params
string
required

Target type for the sale. Values: 'all', 'category', 'brand', 'product'.

integer
required

ID of the target for the sale.

integer
required

Percentage discount for the sale.

date-time
required

Start date and time for the sale.

date-time

Expiry date and time for the sale. If not set, the sale has no expiry.

boolean
required

Indicates whether the sale is active.

Responses

400

Invalid request data.

401

Unauthorized. Invalid or missing API key.

404

Sale not found.

500

Server error.

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json