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

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.

post
/slot_suspenders/
Authorizations
AuthorizationstringRequired

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

Body

The body of a slot suspender create or full update request.

descriptionstring · max: 255Required

A human-readable description of the suspender.

is_activebooleanOptional

Whether the suspender is active. Defaults to true when omitted.

Default: true
Responses
201

The created slot suspender.

application/json

A slot suspender — a rule that blocks delivery slots for a combination of stores and times.

pkintegerRead-onlyOptional

The unique identifier of the slot suspender.

created_datestring · date-timeRead-onlyOptional

When the suspender was created.

modified_datestring · date-timeRead-onlyOptional

When the suspender was last modified.

descriptionstring · max: 255Optional

A human-readable description of the suspender.

is_activebooleanOptional

Whether the suspender is active. Only active suspenders are evaluated during slot generation.

post/slot_suspenders/
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?