For the complete documentation index, see llms.txt. This page is also available as Markdown.

Bulk-set the status of basket offers

Activates or deactivates many basket offers in one request.

Only offers whose current status is active or passive can be targeted; identifiers of offers in any other status are rejected with a validation error. The target status is limited to active or passive.

post
/basket_offers/bulk_set_status/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Body
basket_offersinteger[]Required

Identifiers of the basket offers to change. Only offers whose current status is active or passive are accepted.

statusstring · enumRequired

The status applied to every targeted offer.

Possible values:
Responses
200

The statuses were changed. The response body is an empty object.

application/json
objectOptional
post/basket_offers/bulk_set_status/
POST /api/remote/1/basket_offers/bulk_set_status/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 39

{
  "basket_offers": [
    1
  ],
  "status": "active"
}
{}

Last updated

Was this helpful?