Create a slot suspender
Creates a new slot suspender. description, retail_store_config and time_config are required.
Each config is a { "rule": ..., "params": ... } object whose params are validated against the selected rule. See Rule Configuration in the section description for the accepted rules and their params.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The body of a slot suspender create or full update request.
A human-readable description of the suspender.
Whether the suspender is active. Defaults to true when omitted.
trueThe created slot suspender.
A slot suspender — a rule that blocks delivery slots for a combination of stores and times.
The unique identifier of the slot suspender.
When the suspender was created.
When the suspender was last modified.
A human-readable description of the suspender.
Whether the suspender is active. Only active suspenders are evaluated during slot generation.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
POST /api/v1/remote/1/slot_suspenders/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 306
{
"description": "Suspend morning slots for the Istanbul stores",
"retail_store_config": {
"rule": "retail_store_group",
"params": {
"retail_store_groups": [
"istanbul"
],
"exclude": false
}
},
"time_config": {
"rule": "day_and_time_range",
"params": {
"days": [
"2026-01-01"
],
"ranges": [
[
"09:00:00",
"12:00:00"
]
]
}
},
"is_active": true
}{
"pk": 1,
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z",
"description": "text",
"retail_store_config": {
"rule": "retail_store",
"params": {
"retail_stores": [
"STORE_1",
"STORE_2"
],
"exclude": false
}
},
"time_config": {
"rule": "date_time_range",
"params": {
"ranges": [
[
"2026-01-01T09:00:00+03:00",
"2026-01-01T12:00:00+03:00"
]
]
}
},
"is_active": true
}Last updated
Was this helpful?

