Basket Offers
Token-based authentication with required prefix "Token"
trRequest body for creating a basket offer. The scheduler field is optional;
omit it (or pass null) to use manual start_datetime/end_datetime control.
start_datetime and end_datetime cannot be set when a scheduler object is provided.
Basket offer created successfully
Basket offer response including the optional nested scheduler state.
Primary key of the basket offer.
42Display name of the offer.
Monday flash saleCurrent status of the offer.
activePossible values: When the offer becomes active. Managed by the scheduler when one is attached; otherwise set manually.
2026-05-05T09:00:00ZWhen the offer expires. Managed by the scheduler when one is attached; otherwise set manually.
2026-05-05T17:00:00ZValidation error
POST /api/v1/remote/1/basket_offers/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 184
{
"name": "Monday flash sale",
"offer_type": "sitewide",
"scheduler": {
"cron": "0 9 * * 1",
"duration": "PT8H",
"timezone": "Europe/Istanbul",
"start_date": "2026-05-01T00:00:00Z",
"end_date": null
}
}{
"id": 42,
"name": "Monday flash sale",
"status": "active",
"start_datetime": "2026-05-05T09:00:00Z",
"end_datetime": "2026-05-05T17:00:00Z",
"scheduler": {
"cron": "0 9 * * 1",
"duration": "08:00:00",
"inclusions": [],
"exclusions": [],
"timezone": "Europe/Istanbul",
"start_date": "2026-05-01T00:00:00Z",
"end_date": null,
"current_period_start_date": "2026-05-05T09:00:00Z",
"current_period_end_date": "2026-05-05T17:00:00Z",
"next_period_start_date": "2026-05-12T09:00:00Z",
"next_period_end_date": "2026-05-12T17:00:00Z",
"next_update_date": "2026-05-05T17:00:00Z"
}
}Token-based authentication with required prefix "Token"
Primary key of the basket offer to update
trRequest body for a partial update of a basket offer's scheduler.
Pass a scheduler object to replace the full scheduler configuration,
scheduler: null to detach it (you may include start_datetime/end_datetime in the same request),
or omit scheduler entirely to leave it unchanged.
Manual active-from datetime. Only settable when scheduler is absent or being set to null.
2026-07-01T08:00:00ZManual active-until datetime. Only settable when scheduler is absent or being set to null.
2026-07-01T20:00:00ZBasket offer updated successfully
Basket offer response including the optional nested scheduler state.
Primary key of the basket offer.
42Display name of the offer.
Monday flash saleCurrent status of the offer.
activePossible values: When the offer becomes active. Managed by the scheduler when one is attached; otherwise set manually.
2026-05-05T09:00:00ZWhen the offer expires. Managed by the scheduler when one is attached; otherwise set manually.
2026-05-05T17:00:00ZValidation error
Basket offer not found
PUT /api/v1/remote/1/basket_offers/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 118
{
"scheduler": {
"cron": "0 10 * * 2",
"duration": "PT6H",
"timezone": "Europe/Istanbul",
"start_date": "2026-06-01T00:00:00Z"
}
}{
"id": 42,
"name": "Monday flash sale",
"status": "active",
"start_datetime": "2026-05-05T09:00:00Z",
"end_datetime": "2026-05-05T17:00:00Z",
"scheduler": {
"cron": "0 9 * * 1",
"duration": "08:00:00",
"inclusions": [
{
"start": "2026-06-01T10:00:00Z",
"end": "2026-06-01T14:00:00Z"
}
],
"exclusions": [
{
"start": "2026-06-01T10:00:00Z",
"end": "2026-06-01T14:00:00Z"
}
],
"timezone": "Europe/Istanbul",
"start_date": "2026-05-01T00:00:00Z",
"end_date": null,
"current_period_start_date": "2026-05-05T09:00:00Z",
"current_period_end_date": "2026-05-05T17:00:00Z",
"next_period_start_date": "2026-05-12T09:00:00Z",
"next_period_end_date": "2026-05-12T17:00:00Z",
"next_update_date": "2026-05-05T17:00:00Z"
}
}Token-based authentication with required prefix "Token"
Primary key of the basket offer to update
trRequest body for a partial update of a basket offer's scheduler.
Pass a scheduler object to replace the full scheduler configuration,
scheduler: null to detach it (you may include start_datetime/end_datetime in the same request),
or omit scheduler entirely to leave it unchanged.
Manual active-from datetime. Only settable when scheduler is absent or being set to null.
2026-07-01T08:00:00ZManual active-until datetime. Only settable when scheduler is absent or being set to null.
2026-07-01T20:00:00ZBasket offer updated successfully
Basket offer response including the optional nested scheduler state.
Primary key of the basket offer.
42Display name of the offer.
Monday flash saleCurrent status of the offer.
activePossible values: When the offer becomes active. Managed by the scheduler when one is attached; otherwise set manually.
2026-05-05T09:00:00ZWhen the offer expires. Managed by the scheduler when one is attached; otherwise set manually.
2026-05-05T17:00:00ZValidation error
Basket offer not found
PATCH /api/v1/remote/1/basket_offers/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 82
{
"scheduler": {
"cron": "0 9 * * 1",
"duration": "PT8H",
"timezone": "America/New_York"
}
}{
"id": 42,
"name": "Monday flash sale",
"status": "active",
"start_datetime": "2026-05-05T09:00:00Z",
"end_datetime": "2026-05-05T17:00:00Z",
"scheduler": {
"cron": "0 9 * * 1",
"duration": "08:00:00",
"inclusions": [],
"exclusions": [],
"timezone": "America/New_York",
"current_period_start_date": "2026-05-05T09:00:00Z",
"current_period_end_date": "2026-05-05T17:00:00Z",
"next_period_start_date": "2026-05-12T09:00:00Z",
"next_period_end_date": "2026-05-12T17:00:00Z",
"next_update_date": "2026-05-05T17:00:00Z"
}
}Last updated
Was this helpful?

