Queues

Every operation below is generated from the OpenAPI v2 specification and includes parameters, request fields, response fields, errors, and examples.

What queue settings control

A queue defines how a worktable receives orders. The API creates and edits these settings. Saving settings does not start picking, change orders or print documents; normal warehouse workflows use the saved configuration.

assembly — single-order picking; packing — packing; marking — marking.

Access and prerequisites

Use a Bearer token with permissions for soa_queues, packing_queues or marking_queues. User domain and warehouse boundaries apply. New queues belong to the actor domain; assembly and packing ownership is assigned to the actor. A warehouse-scoped employee cannot broaden a queue to all physical warehouses. Replace sample IDs with accessible enabled physical and client warehouse IDs.

IDs are unique within each kind: retain type + id together. A remote server exposes the new methods after the corresponding release is installed.

Create and verify

POST /api/v2/queues/{type} requires a nonempty name up to 150 characters. Defaults: priority=100 and status_id=1 (enabled). Send a data object, not a batch array. Selected client warehouses must belong to the physical warehouse. Success is 201 with data and meta.api_version=v2. Save the ID, GET the same kind/id, and verify warehouses, services and filters before operator use.

POST /api/v2/queues/assembly
{
  "data": {
    "name": "Учебная сборка",
    "visible_warehouse_id": 38,
    "warehouse_ids": [
      759
    ],
    "delivery_service_ids": [
      1
    ],
    "picking_type": 1,
    "finish_place_type": 105
  }
}
POST /api/v2/queues/packing
{
  "data": {
    "name": "Учебная упаковка",
    "visible_warehouse_id": 38,
    "warehouse_ids": [
      759
    ],
    "packing_type": 2,
    "print_label": 3
  }
}
POST /api/v2/queues/marking
{
  "data": {
    "name": "Учебная маркировка",
    "visible_warehouse_id": 38,
    "delivery_service_ids": [
      1
    ]
  }
}

Edit, disable and clear

PUT and PATCH change supplied fields only. Use status_id=2 to disable and 1 to enable; do not use zero. Omitted fields stay unchanged; null clears nullable fields and [] clears an array filter. Clear user_id and send_document_id with null, not zero. IDs, kind, domain, owner and counters are read-only. Cross-domain ownership transfer remains a separate UI operation.

PATCH /api/v2/queues/assembly/123
{
  "data": {
    "priority": 50,
    "status_id": 2
  }
}

A 200 response contains saved settings. Legacy multi-warehouse visible_warehouse_ids are preserved unless visible_warehouse_id is explicitly supplied, which replaces the list with one warehouse or clears the restriction when authorized.

Setting values and constraints

all_offerstrue requires full picking; false allows partial picking.
picking_type / packing_type0: SKU and quantity; 1: every item; packing also supports 2: marking-code scan.
type_orders_selection0: automatic selection; 1: operator chooses the order.
expiration_strategy / pick_expiredStrategy: 0 ignore expiry, 1 FIFO, 2 LIFO. Expired goods: 0 all, 1 exclude expired, 2 expired only. expiration_months_before: 0–60.
finish_place_type / start_place_typePicking destination: 104 sorting shelf, 105 packing, 106 marking, 107 completion. Packing source: 102 self-picking, 104 sorting shelf, 105 packing table. 0/null clears the choice.
print_label0 internal label, 1 external, 2 both, 3 do not display.
type_print_blank / print_blank_id / printer_id0 no document, 1 external document, 2 WMS template. Mode 2 requires an accessible order template; other modes clear it. Printer and template must match domain and warehouse access.
item_label_* / auto_markingItem labels: enabled boolean, sanitized HTML template up to 100000 characters, size 58x40 or 40x30. auto_marking controls the transition to marking.
send_document_idAn accessible open shipment document admitted for marking and compatible with the services/physical warehouse. Changing services or warehouse revalidates compatibility.
date_from / date_toYYYY-MM-DD; the upper bound cannot precede the lower bound. The same rule covers item-count and order-ID ranges on partial updates.
delivery_service_ids[]/null clears the filter. New disabled, deleted or foreign services are rejected; an already assigned disabled service may be retained.

List, retries and errors

List GET supports filter[id], filter[name], filter[status_id], filter[priority], filter[user_id], sort, page and per_page (default 50, capped at 250). Default sort is priority,id. URL-encode query values and inspect data, links and meta.total.

Use a fresh Idempotency-Key per logical write. Within one day an identical method/path/body replays success with Idempotency-Replayed: true; a changed body returns 409. Without a key repeated POST creates another queue. 401: authentication/blocked user; 403: permissions; 404: unknown/inaccessible kind or queue; 422: correct errors fields; 429: retry after Retry-After. Refetch settings before retrying after a failure.

Create fields: assembly

Field Required Type Flags Constraints Description Example
name yes string minLength: 1
maxLength: 150
priority no integer min: 1
max: 1000
Default 100. Lower values are listed first.
status_id no enum enum: 1, 2
visible_warehouse_id no integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
user_id no integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
delivery_service_ids no array<integer> | null maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
delivery_service_ids[] no integer min: 1
date_from no string:date | null
date_to no string:date | null
warehouse_ids no array<integer> | null maxItems: 1000
warehouse_ids[] no integer min: 1
type_orders_selection no enum enum: 0, 1
offers_count_from no integer | null min: 0
max: 4294967295
offers_count_to no integer | null min: 0
max: 4294967295
order_from no integer | null min: 0
max: 4294967295
order_to no integer | null min: 0
max: 4294967295
finish_place_type no enum | null enum: 0, 104, 105, 106, 107, null
all_offers no boolean True requires complete picking; false permits partial picking. Default true.
picking_type no enum enum: 0, 1
expiration_strategy no enum enum: 0, 1, 2 0: ignore expiry; 1: FIFO; 2: LIFO.
expiration_months_before no integer min: 0
max: 60
pick_expired no enum enum: 0, 1, 2 0: all goods; 1: ignore expired goods; 2: expired goods only.

Create fields: packing

Field Required Type Flags Constraints Description Example
name yes string minLength: 1
maxLength: 150
priority no integer min: 1
max: 1000
Default 100. Lower values are listed first.
status_id no enum enum: 1, 2
visible_warehouse_id no integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
user_id no integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
delivery_service_ids no array<integer> | null maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
delivery_service_ids[] no integer min: 1
date_from no string:date | null
date_to no string:date | null
warehouse_ids no array<integer> | null maxItems: 1000
warehouse_ids[] no integer min: 1
type_orders_selection no enum enum: 0, 1
start_place_type no enum | null enum: 0, 102, 104, 105, null
packing_type no enum enum: 0, 1, 2
print_label no enum enum: 0, 1, 2, 3
type_print_blank no enum enum: 0, 1, 2 0: none; 1: external order document; 2: WMS template. Mode 2 requires a visible order template; switching away clears print_blank_id.
print_blank_id no integer | null min: 1
printer_id no integer | null min: 1
auto_marking no boolean
item_label_enabled no boolean
item_label_template no string | null maxLength: 100000
item_label_size no enum enum: 58x40, 40x30

Create fields: marking

Field Required Type Flags Constraints Description Example
name yes string minLength: 1
maxLength: 150
priority no integer min: 1
max: 1000
Default 100. Lower values are listed first.
status_id no enum enum: 1, 2
visible_warehouse_id no integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
user_id no integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
delivery_service_ids no array<integer> | null maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
delivery_service_ids[] no integer min: 1
date_from no string:date | null
date_to no string:date | null
send_document_id no integer | null min: 1 Accessible open shipment document admitted for marking, compatible with queue services and physical warehouse. Null clears the binding.

Queues

GET /api/v2/queues/{type}

List queues

operationIdlistQueues
TagQueues
SecuritybearerAuth

Uses the same queue ACL, domain and warehouse scope as the Orchid interface. Domain/owner IDs and counters are read-only. Settings writes do not process orders or dispatch print jobs. Fields for another queue kind and unknown fields return 422.

HTTP request example (cURL)

Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.

curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/queues/REPLACE_TYPE" \
  --header "Accept: application/json" \
  --header "Authorization: Bearer ${NWMS_TOKEN}"

Parameters

Name In Required Type Style Explode Constraints Description Example
type path yes enum enum: assembly, packing, marking Queue kind. IDs are unique within each kind.
filter[id] query no integer Exact match.
filter[status_id] query no integer Exact match.
filter[priority] query no integer Exact match.
filter[user_id] query no integer Exact match.
filter[name] query no string Partial name match.
sort query no string Comma-separated id,name,priority,status_id,created_at,updated_at; minus prefix means descending. Default priority,id. "priority,-id"
page query no integer min: 1
per_page query no integer min: 1
max: 250
Default 50, capped at 250.

Request body

No request body.

Responses

200 Success.

Success.

Field Required Type Flags Constraints Description Example
data yes array<Queue>
data[] no Queue
data[] no AssemblyQueue
data[].name yes string minLength: 1
maxLength: 150
data[].priority yes integer min: 1
max: 1000
Default 100. Lower values are listed first.
data[].status_id yes enum enum: 1, 2
data[].visible_warehouse_id yes integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
data[].user_id yes integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
data[].delivery_service_ids yes array<integer> maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
data[].delivery_service_ids[] no integer min: 1
data[].date_from yes string:date | null
data[].date_to yes string:date | null
data[].warehouse_ids yes array<integer> maxItems: 1000
data[].warehouse_ids[] no integer min: 1
data[].type_orders_selection yes enum | null enum: 0, 1, null
data[].offers_count_from yes integer | null min: 0
max: 4294967295
data[].offers_count_to yes integer | null min: 0
max: 4294967295
data[].order_from yes integer | null min: 0
max: 4294967295
data[].order_to yes integer | null min: 0
max: 4294967295
data[].finish_place_type yes enum | null enum: 0, 104, 105, 106, 107, null
data[].all_offers yes boolean True requires complete picking; false permits partial picking. Default true.
data[].picking_type yes enum | null enum: 0, 1, null
data[].expiration_strategy yes enum | null enum: 0, 1, 2, null 0: ignore expiry; 1: FIFO; 2: LIFO.
data[].expiration_months_before yes integer | null min: 0
max: 60
data[].pick_expired yes enum | null enum: 0, 1, 2, null 0: all goods; 1: ignore expired goods; 2: expired goods only.
data[].id yes integer min: 1
data[].type yes enum enum: assembly
data[].domain_id yes integer min: 1
data[].owner_user_id yes integer | null min: 1
data[].visible_warehouse_ids yes array<integer>
data[].visible_warehouse_ids[] no integer min: 1
data[].created_at yes string:date-time | null
data[].updated_at yes string:date-time | null
data[] no PackingQueue
data[].name yes string minLength: 1
maxLength: 150
data[].priority yes integer min: 1
max: 1000
Default 100. Lower values are listed first.
data[].status_id yes enum enum: 1, 2
data[].visible_warehouse_id yes integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
data[].user_id yes integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
data[].delivery_service_ids yes array<integer> maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
data[].delivery_service_ids[] no integer min: 1
data[].date_from yes string:date | null
data[].date_to yes string:date | null
data[].warehouse_ids yes array<integer> maxItems: 1000
data[].warehouse_ids[] no integer min: 1
data[].type_orders_selection yes enum | null enum: 0, 1, null
data[].start_place_type yes enum | null enum: 0, 102, 104, 105, null
data[].packing_type yes enum | null enum: 0, 1, 2, null
data[].print_label yes enum | null enum: 0, 1, 2, 3, null
data[].type_print_blank yes enum | null enum: 0, 1, 2, null 0: none; 1: external order document; 2: WMS template. Mode 2 requires a visible order template; switching away clears print_blank_id.
data[].print_blank_id yes integer | null min: 1
data[].printer_id yes integer | null min: 1
data[].auto_marking yes boolean
data[].item_label_enabled yes boolean
data[].item_label_template yes string | null maxLength: 100000
data[].item_label_size yes enum enum: 58x40, 40x30
data[].id yes integer min: 1
data[].type yes enum enum: packing
data[].domain_id yes integer min: 1
data[].owner_user_id yes integer | null min: 1
data[].visible_warehouse_ids yes array<integer>
data[].visible_warehouse_ids[] no integer min: 1
data[].created_at yes string:date-time | null
data[].updated_at yes string:date-time | null
data[] no MarkingQueue
data[].name yes string minLength: 1
maxLength: 150
data[].priority yes integer min: 1
max: 1000
Default 100. Lower values are listed first.
data[].status_id yes enum enum: 1, 2
data[].visible_warehouse_id yes integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
data[].user_id yes integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
data[].delivery_service_ids yes array<integer> maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
data[].delivery_service_ids[] no integer min: 1
data[].date_from yes string:date | null
data[].date_to yes string:date | null
data[].send_document_id yes integer | null min: 1 Accessible open shipment document admitted for marking, compatible with queue services and physical warehouse. Null clears the binding.
data[].id yes integer min: 1
data[].type yes enum enum: marking
data[].domain_id yes integer min: 1
data[].owner_user_id yes integer | null min: 1
data[].visible_warehouse_ids yes array<integer>
data[].visible_warehouse_ids[] no integer min: 1
data[].created_at yes string:date-time | null
data[].updated_at yes string:date-time | null
links yes object
links.first no string:uri | null
links.last no string:uri | null
links.prev no string:uri | null
links.next no string:uri | null
meta yes object
meta.api_version no enum enum: v2
meta.total no integer min: 0
meta.current_page no integer min: 1
meta.per_page no integer min: 1
max: 250

401 Authentication required

Unauthorized

Authentication is required.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

AUTH_REQUIRED

{
  "message": "Authentication is required.",
  "error": "AUTH_REQUIRED"
}

403 Forbidden

Forbidden

The authenticated account is not allowed to perform this action.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

FORBIDDEN

{
  "message": "The authenticated account is not allowed to perform this action.",
  "error": "FORBIDDEN"
}

404 Not found

NotFound

The requested resource was not found or is outside the authenticated account scope.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

NOT_FOUND

{
  "message": "The requested resource was not found or is outside the authenticated account scope.",
  "error": "NOT_FOUND"
}

422 Validation error

ValidationError

Validation failed.

Field Required Type Flags Constraints Description Example
message yes string "The given data was invalid."
error no string "VALIDATION_ERROR"
errors yes object {"warehouse_id":["The selected warehouse is invalid."]}

Response examples

validationError

{
  "message": "The given data was invalid.",
  "error": "VALIDATION_ERROR",
  "errors": {
    "warehouse_id": [
      "The selected warehouse is invalid."
    ]
  }
}

429 Rate limit exceeded

TooManyRequests

Rate limit exceeded. Inspect limit_type and honor Retry-After.

Field Required Type Flags Constraints Description Example
message yes string "API write request limit exceeded for this user."
error yes string "RATE_LIMITED"
limit_type yes enum enum: general, write, batch The quota that rejected the request. "write"
limit yes integer min: 1 Allowed requests per minute for this quota. 120
retry_after yes integer min: 0 Seconds to wait before retrying. 30
POST /api/v2/queues/{type}

Create queue

operationIdcreateQueue
TagQueues
SecuritybearerAuth

Uses the same queue ACL, domain and warehouse scope as the Orchid interface. Domain/owner IDs and counters are read-only. Settings writes do not process orders or dispatch print jobs. Fields for another queue kind and unknown fields return 422. PUT/PATCH preserve omitted fields. Send a nonempty settings object in data; an unwrapped object is also accepted. Null clears only nullable fields. Date/count/order upper bounds must not be below the effective lower bounds.

HTTP request example (cURL)

Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.

curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/queues/REPLACE_TYPE" \
  --header "Accept: application/json" \
  --header "Authorization: Bearer ${NWMS_TOKEN}" \
  --header "Idempotency-Key: ${NWMS_REQUEST_KEY}" \
  --header "Content-Type: application/json" \
  --data-binary @request.json

Parameters

Name In Required Type Style Explode Constraints Description Example
type path yes enum enum: assembly, packing, marking Queue kind. IDs are unique within each kind.
Idempotency-Key header no string maxLength: 191 Optional idempotency key for API v2 write requests. Successful 2xx/3xx responses are replayed for the same key and identical payload for one day. The same key with a different payload returns 409. "ord-create-20260714-001"

Request body

Inline request body required

Field Required Type Flags Constraints Description Example
(root) no CreateQueueRequest
name yes string minLength: 1
maxLength: 150
priority no integer min: 1
max: 1000
Default 100. Lower values are listed first.
status_id no enum enum: 1, 2
visible_warehouse_id no integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
user_id no integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
delivery_service_ids no array<integer> | null maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
delivery_service_ids[] no integer min: 1
date_from no string:date | null
date_to no string:date | null
warehouse_ids no array<integer> | null maxItems: 1000
warehouse_ids[] no integer min: 1
type_orders_selection no enum enum: 0, 1
offers_count_from no integer | null min: 0
max: 4294967295
offers_count_to no integer | null min: 0
max: 4294967295
order_from no integer | null min: 0
max: 4294967295
order_to no integer | null min: 0
max: 4294967295
finish_place_type no enum | null enum: 0, 104, 105, 106, 107, null
all_offers no boolean True requires complete picking; false permits partial picking. Default true.
picking_type no enum enum: 0, 1
expiration_strategy no enum enum: 0, 1, 2 0: ignore expiry; 1: FIFO; 2: LIFO.
expiration_months_before no integer min: 0
max: 60
pick_expired no enum enum: 0, 1, 2 0: all goods; 1: ignore expired goods; 2: expired goods only.
name yes string minLength: 1
maxLength: 150
priority no integer min: 1
max: 1000
Default 100. Lower values are listed first.
status_id no enum enum: 1, 2
visible_warehouse_id no integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
user_id no integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
delivery_service_ids no array<integer> | null maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
delivery_service_ids[] no integer min: 1
date_from no string:date | null
date_to no string:date | null
warehouse_ids no array<integer> | null maxItems: 1000
warehouse_ids[] no integer min: 1
type_orders_selection no enum enum: 0, 1
start_place_type no enum | null enum: 0, 102, 104, 105, null
packing_type no enum enum: 0, 1, 2
print_label no enum enum: 0, 1, 2, 3
type_print_blank no enum enum: 0, 1, 2 0: none; 1: external order document; 2: WMS template. Mode 2 requires a visible order template; switching away clears print_blank_id.
print_blank_id no integer | null min: 1
printer_id no integer | null min: 1
auto_marking no boolean
item_label_enabled no boolean
item_label_template no string | null maxLength: 100000
item_label_size no enum enum: 58x40, 40x30
name yes string minLength: 1
maxLength: 150
priority no integer min: 1
max: 1000
Default 100. Lower values are listed first.
status_id no enum enum: 1, 2
visible_warehouse_id no integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
user_id no integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
delivery_service_ids no array<integer> | null maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
delivery_service_ids[] no integer min: 1
date_from no string:date | null
date_to no string:date | null
send_document_id no integer | null min: 1 Accessible open shipment document admitted for marking, compatible with queue services and physical warehouse. Null clears the binding.

Request examples

Example

{
  "data": {
    "name": "Учебная очередь",
    "priority": 100,
    "visible_warehouse_id": 38,
    "delivery_service_ids": [
      1
    ]
  }
}

Responses

201 Created.

Created.

Field Required Type Flags Constraints Description Example
data yes Queue
data yes AssemblyQueue
data.name yes string minLength: 1
maxLength: 150
data.priority yes integer min: 1
max: 1000
Default 100. Lower values are listed first.
data.status_id yes enum enum: 1, 2
data.visible_warehouse_id yes integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
data.user_id yes integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
data.delivery_service_ids yes array<integer> maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
data.delivery_service_ids[] no integer min: 1
data.date_from yes string:date | null
data.date_to yes string:date | null
data.warehouse_ids yes array<integer> maxItems: 1000
data.warehouse_ids[] no integer min: 1
data.type_orders_selection yes enum | null enum: 0, 1, null
data.offers_count_from yes integer | null min: 0
max: 4294967295
data.offers_count_to yes integer | null min: 0
max: 4294967295
data.order_from yes integer | null min: 0
max: 4294967295
data.order_to yes integer | null min: 0
max: 4294967295
data.finish_place_type yes enum | null enum: 0, 104, 105, 106, 107, null
data.all_offers yes boolean True requires complete picking; false permits partial picking. Default true.
data.picking_type yes enum | null enum: 0, 1, null
data.expiration_strategy yes enum | null enum: 0, 1, 2, null 0: ignore expiry; 1: FIFO; 2: LIFO.
data.expiration_months_before yes integer | null min: 0
max: 60
data.pick_expired yes enum | null enum: 0, 1, 2, null 0: all goods; 1: ignore expired goods; 2: expired goods only.
data.id yes integer min: 1
data.type yes enum enum: assembly
data.domain_id yes integer min: 1
data.owner_user_id yes integer | null min: 1
data.visible_warehouse_ids yes array<integer>
data.visible_warehouse_ids[] no integer min: 1
data.created_at yes string:date-time | null
data.updated_at yes string:date-time | null
data yes PackingQueue
data.name yes string minLength: 1
maxLength: 150
data.priority yes integer min: 1
max: 1000
Default 100. Lower values are listed first.
data.status_id yes enum enum: 1, 2
data.visible_warehouse_id yes integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
data.user_id yes integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
data.delivery_service_ids yes array<integer> maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
data.delivery_service_ids[] no integer min: 1
data.date_from yes string:date | null
data.date_to yes string:date | null
data.warehouse_ids yes array<integer> maxItems: 1000
data.warehouse_ids[] no integer min: 1
data.type_orders_selection yes enum | null enum: 0, 1, null
data.start_place_type yes enum | null enum: 0, 102, 104, 105, null
data.packing_type yes enum | null enum: 0, 1, 2, null
data.print_label yes enum | null enum: 0, 1, 2, 3, null
data.type_print_blank yes enum | null enum: 0, 1, 2, null 0: none; 1: external order document; 2: WMS template. Mode 2 requires a visible order template; switching away clears print_blank_id.
data.print_blank_id yes integer | null min: 1
data.printer_id yes integer | null min: 1
data.auto_marking yes boolean
data.item_label_enabled yes boolean
data.item_label_template yes string | null maxLength: 100000
data.item_label_size yes enum enum: 58x40, 40x30
data.id yes integer min: 1
data.type yes enum enum: packing
data.domain_id yes integer min: 1
data.owner_user_id yes integer | null min: 1
data.visible_warehouse_ids yes array<integer>
data.visible_warehouse_ids[] no integer min: 1
data.created_at yes string:date-time | null
data.updated_at yes string:date-time | null
data yes MarkingQueue
data.name yes string minLength: 1
maxLength: 150
data.priority yes integer min: 1
max: 1000
Default 100. Lower values are listed first.
data.status_id yes enum enum: 1, 2
data.visible_warehouse_id yes integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
data.user_id yes integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
data.delivery_service_ids yes array<integer> maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
data.delivery_service_ids[] no integer min: 1
data.date_from yes string:date | null
data.date_to yes string:date | null
data.send_document_id yes integer | null min: 1 Accessible open shipment document admitted for marking, compatible with queue services and physical warehouse. Null clears the binding.
data.id yes integer min: 1
data.type yes enum enum: marking
data.domain_id yes integer min: 1
data.owner_user_id yes integer | null min: 1
data.visible_warehouse_ids yes array<integer>
data.visible_warehouse_ids[] no integer min: 1
data.created_at yes string:date-time | null
data.updated_at yes string:date-time | null
meta yes object
meta.api_version yes enum enum: v2

401 Authentication required

Unauthorized

Authentication is required.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

AUTH_REQUIRED

{
  "message": "Authentication is required.",
  "error": "AUTH_REQUIRED"
}

403 Forbidden

Forbidden

The authenticated account is not allowed to perform this action.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

FORBIDDEN

{
  "message": "The authenticated account is not allowed to perform this action.",
  "error": "FORBIDDEN"
}

404 Not found

NotFound

The requested resource was not found or is outside the authenticated account scope.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

NOT_FOUND

{
  "message": "The requested resource was not found or is outside the authenticated account scope.",
  "error": "NOT_FOUND"
}

422 Validation error

ValidationError

Validation failed.

Field Required Type Flags Constraints Description Example
message yes string "The given data was invalid."
error no string "VALIDATION_ERROR"
errors yes object {"warehouse_id":["The selected warehouse is invalid."]}

Response examples

validationError

{
  "message": "The given data was invalid.",
  "error": "VALIDATION_ERROR",
  "errors": {
    "warehouse_id": [
      "The selected warehouse is invalid."
    ]
  }
}

429 Rate limit exceeded

TooManyRequests

Rate limit exceeded. Inspect limit_type and honor Retry-After.

Field Required Type Flags Constraints Description Example
message yes string "API write request limit exceeded for this user."
error yes string "RATE_LIMITED"
limit_type yes enum enum: general, write, batch The quota that rejected the request. "write"
limit yes integer min: 1 Allowed requests per minute for this quota. 120
retry_after yes integer min: 0 Seconds to wait before retrying. 30

409 Conflict

Conflict

The request conflicts with the current resource state or idempotency key state.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

idempotencyConflict

{
  "message": "The idempotency key is already used with a different payload.",
  "error": "IDEMPOTENCY_KEY_CONFLICT"
}
GET /api/v2/queues/{type}/{id}

Get queue

operationIdgetQueue
TagQueues
SecuritybearerAuth

Uses the same queue ACL, domain and warehouse scope as the Orchid interface. Domain/owner IDs and counters are read-only. Settings writes do not process orders or dispatch print jobs. Fields for another queue kind and unknown fields return 422.

HTTP request example (cURL)

Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.

curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/queues/REPLACE_TYPE/REPLACE_ID" \
  --header "Accept: application/json" \
  --header "Authorization: Bearer ${NWMS_TOKEN}"

Parameters

Name In Required Type Style Explode Constraints Description Example
type path yes enum enum: assembly, packing, marking Queue kind. IDs are unique within each kind.
id path yes integer min: 1 Queue ID within the selected kind.

Request body

No request body.

Responses

200 Success.

Success.

Field Required Type Flags Constraints Description Example
data yes Queue
data yes AssemblyQueue
data.name yes string minLength: 1
maxLength: 150
data.priority yes integer min: 1
max: 1000
Default 100. Lower values are listed first.
data.status_id yes enum enum: 1, 2
data.visible_warehouse_id yes integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
data.user_id yes integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
data.delivery_service_ids yes array<integer> maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
data.delivery_service_ids[] no integer min: 1
data.date_from yes string:date | null
data.date_to yes string:date | null
data.warehouse_ids yes array<integer> maxItems: 1000
data.warehouse_ids[] no integer min: 1
data.type_orders_selection yes enum | null enum: 0, 1, null
data.offers_count_from yes integer | null min: 0
max: 4294967295
data.offers_count_to yes integer | null min: 0
max: 4294967295
data.order_from yes integer | null min: 0
max: 4294967295
data.order_to yes integer | null min: 0
max: 4294967295
data.finish_place_type yes enum | null enum: 0, 104, 105, 106, 107, null
data.all_offers yes boolean True requires complete picking; false permits partial picking. Default true.
data.picking_type yes enum | null enum: 0, 1, null
data.expiration_strategy yes enum | null enum: 0, 1, 2, null 0: ignore expiry; 1: FIFO; 2: LIFO.
data.expiration_months_before yes integer | null min: 0
max: 60
data.pick_expired yes enum | null enum: 0, 1, 2, null 0: all goods; 1: ignore expired goods; 2: expired goods only.
data.id yes integer min: 1
data.type yes enum enum: assembly
data.domain_id yes integer min: 1
data.owner_user_id yes integer | null min: 1
data.visible_warehouse_ids yes array<integer>
data.visible_warehouse_ids[] no integer min: 1
data.created_at yes string:date-time | null
data.updated_at yes string:date-time | null
data yes PackingQueue
data.name yes string minLength: 1
maxLength: 150
data.priority yes integer min: 1
max: 1000
Default 100. Lower values are listed first.
data.status_id yes enum enum: 1, 2
data.visible_warehouse_id yes integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
data.user_id yes integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
data.delivery_service_ids yes array<integer> maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
data.delivery_service_ids[] no integer min: 1
data.date_from yes string:date | null
data.date_to yes string:date | null
data.warehouse_ids yes array<integer> maxItems: 1000
data.warehouse_ids[] no integer min: 1
data.type_orders_selection yes enum | null enum: 0, 1, null
data.start_place_type yes enum | null enum: 0, 102, 104, 105, null
data.packing_type yes enum | null enum: 0, 1, 2, null
data.print_label yes enum | null enum: 0, 1, 2, 3, null
data.type_print_blank yes enum | null enum: 0, 1, 2, null 0: none; 1: external order document; 2: WMS template. Mode 2 requires a visible order template; switching away clears print_blank_id.
data.print_blank_id yes integer | null min: 1
data.printer_id yes integer | null min: 1
data.auto_marking yes boolean
data.item_label_enabled yes boolean
data.item_label_template yes string | null maxLength: 100000
data.item_label_size yes enum enum: 58x40, 40x30
data.id yes integer min: 1
data.type yes enum enum: packing
data.domain_id yes integer min: 1
data.owner_user_id yes integer | null min: 1
data.visible_warehouse_ids yes array<integer>
data.visible_warehouse_ids[] no integer min: 1
data.created_at yes string:date-time | null
data.updated_at yes string:date-time | null
data yes MarkingQueue
data.name yes string minLength: 1
maxLength: 150
data.priority yes integer min: 1
max: 1000
Default 100. Lower values are listed first.
data.status_id yes enum enum: 1, 2
data.visible_warehouse_id yes integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
data.user_id yes integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
data.delivery_service_ids yes array<integer> maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
data.delivery_service_ids[] no integer min: 1
data.date_from yes string:date | null
data.date_to yes string:date | null
data.send_document_id yes integer | null min: 1 Accessible open shipment document admitted for marking, compatible with queue services and physical warehouse. Null clears the binding.
data.id yes integer min: 1
data.type yes enum enum: marking
data.domain_id yes integer min: 1
data.owner_user_id yes integer | null min: 1
data.visible_warehouse_ids yes array<integer>
data.visible_warehouse_ids[] no integer min: 1
data.created_at yes string:date-time | null
data.updated_at yes string:date-time | null
meta yes object
meta.api_version yes enum enum: v2

401 Authentication required

Unauthorized

Authentication is required.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

AUTH_REQUIRED

{
  "message": "Authentication is required.",
  "error": "AUTH_REQUIRED"
}

403 Forbidden

Forbidden

The authenticated account is not allowed to perform this action.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

FORBIDDEN

{
  "message": "The authenticated account is not allowed to perform this action.",
  "error": "FORBIDDEN"
}

404 Not found

NotFound

The requested resource was not found or is outside the authenticated account scope.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

NOT_FOUND

{
  "message": "The requested resource was not found or is outside the authenticated account scope.",
  "error": "NOT_FOUND"
}

422 Validation error

ValidationError

Validation failed.

Field Required Type Flags Constraints Description Example
message yes string "The given data was invalid."
error no string "VALIDATION_ERROR"
errors yes object {"warehouse_id":["The selected warehouse is invalid."]}

Response examples

validationError

{
  "message": "The given data was invalid.",
  "error": "VALIDATION_ERROR",
  "errors": {
    "warehouse_id": [
      "The selected warehouse is invalid."
    ]
  }
}

429 Rate limit exceeded

TooManyRequests

Rate limit exceeded. Inspect limit_type and honor Retry-After.

Field Required Type Flags Constraints Description Example
message yes string "API write request limit exceeded for this user."
error yes string "RATE_LIMITED"
limit_type yes enum enum: general, write, batch The quota that rejected the request. "write"
limit yes integer min: 1 Allowed requests per minute for this quota. 120
retry_after yes integer min: 0 Seconds to wait before retrying. 30
PUT /api/v2/queues/{type}/{id}

Update queue (partial)

operationIdputQueue
TagQueues
SecuritybearerAuth

Uses the same queue ACL, domain and warehouse scope as the Orchid interface. Domain/owner IDs and counters are read-only. Settings writes do not process orders or dispatch print jobs. Fields for another queue kind and unknown fields return 422. PUT/PATCH preserve omitted fields. Send a nonempty settings object in data; an unwrapped object is also accepted. Null clears only nullable fields. Date/count/order upper bounds must not be below the effective lower bounds.

HTTP request example (cURL)

Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.

curl --globoff --request PUT "${NWMS_BASE_URL}/api/v2/queues/REPLACE_TYPE/REPLACE_ID" \
  --header "Accept: application/json" \
  --header "Authorization: Bearer ${NWMS_TOKEN}" \
  --header "Idempotency-Key: ${NWMS_REQUEST_KEY}" \
  --header "Content-Type: application/json" \
  --data-binary @request.json

Parameters

Name In Required Type Style Explode Constraints Description Example
type path yes enum enum: assembly, packing, marking Queue kind. IDs are unique within each kind.
id path yes integer min: 1 Queue ID within the selected kind.
Idempotency-Key header no string maxLength: 191 Optional idempotency key for API v2 write requests. Successful 2xx/3xx responses are replayed for the same key and identical payload for one day. The same key with a different payload returns 409. "ord-create-20260714-001"

Request body

Inline request body required

Field Required Type Flags Constraints Description Example
(root) no UpdateQueueRequest
name no string minLength: 1
maxLength: 150
priority no integer min: 1
max: 1000
Default 100. Lower values are listed first.
status_id no enum enum: 1, 2
visible_warehouse_id no integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
user_id no integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
delivery_service_ids no array<integer> | null maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
delivery_service_ids[] no integer min: 1
date_from no string:date | null
date_to no string:date | null
warehouse_ids no array<integer> | null maxItems: 1000
warehouse_ids[] no integer min: 1
type_orders_selection no enum enum: 0, 1
offers_count_from no integer | null min: 0
max: 4294967295
offers_count_to no integer | null min: 0
max: 4294967295
order_from no integer | null min: 0
max: 4294967295
order_to no integer | null min: 0
max: 4294967295
finish_place_type no enum | null enum: 0, 104, 105, 106, 107, null
all_offers no boolean True requires complete picking; false permits partial picking. Default true.
picking_type no enum enum: 0, 1
expiration_strategy no enum enum: 0, 1, 2 0: ignore expiry; 1: FIFO; 2: LIFO.
expiration_months_before no integer min: 0
max: 60
pick_expired no enum enum: 0, 1, 2 0: all goods; 1: ignore expired goods; 2: expired goods only.
name no string minLength: 1
maxLength: 150
priority no integer min: 1
max: 1000
Default 100. Lower values are listed first.
status_id no enum enum: 1, 2
visible_warehouse_id no integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
user_id no integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
delivery_service_ids no array<integer> | null maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
delivery_service_ids[] no integer min: 1
date_from no string:date | null
date_to no string:date | null
warehouse_ids no array<integer> | null maxItems: 1000
warehouse_ids[] no integer min: 1
type_orders_selection no enum enum: 0, 1
start_place_type no enum | null enum: 0, 102, 104, 105, null
packing_type no enum enum: 0, 1, 2
print_label no enum enum: 0, 1, 2, 3
type_print_blank no enum enum: 0, 1, 2 0: none; 1: external order document; 2: WMS template. Mode 2 requires a visible order template; switching away clears print_blank_id.
print_blank_id no integer | null min: 1
printer_id no integer | null min: 1
auto_marking no boolean
item_label_enabled no boolean
item_label_template no string | null maxLength: 100000
item_label_size no enum enum: 58x40, 40x30
name no string minLength: 1
maxLength: 150
priority no integer min: 1
max: 1000
Default 100. Lower values are listed first.
status_id no enum enum: 1, 2
visible_warehouse_id no integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
user_id no integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
delivery_service_ids no array<integer> | null maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
delivery_service_ids[] no integer min: 1
date_from no string:date | null
date_to no string:date | null
send_document_id no integer | null min: 1 Accessible open shipment document admitted for marking, compatible with queue services and physical warehouse. Null clears the binding.

Request examples

Example

{
  "data": {
    "name": "Учебная очередь",
    "priority": 100,
    "visible_warehouse_id": 38,
    "delivery_service_ids": [
      1
    ]
  }
}

Responses

200 Success.

Success.

Field Required Type Flags Constraints Description Example
data yes Queue
data yes AssemblyQueue
data.name yes string minLength: 1
maxLength: 150
data.priority yes integer min: 1
max: 1000
Default 100. Lower values are listed first.
data.status_id yes enum enum: 1, 2
data.visible_warehouse_id yes integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
data.user_id yes integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
data.delivery_service_ids yes array<integer> maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
data.delivery_service_ids[] no integer min: 1
data.date_from yes string:date | null
data.date_to yes string:date | null
data.warehouse_ids yes array<integer> maxItems: 1000
data.warehouse_ids[] no integer min: 1
data.type_orders_selection yes enum | null enum: 0, 1, null
data.offers_count_from yes integer | null min: 0
max: 4294967295
data.offers_count_to yes integer | null min: 0
max: 4294967295
data.order_from yes integer | null min: 0
max: 4294967295
data.order_to yes integer | null min: 0
max: 4294967295
data.finish_place_type yes enum | null enum: 0, 104, 105, 106, 107, null
data.all_offers yes boolean True requires complete picking; false permits partial picking. Default true.
data.picking_type yes enum | null enum: 0, 1, null
data.expiration_strategy yes enum | null enum: 0, 1, 2, null 0: ignore expiry; 1: FIFO; 2: LIFO.
data.expiration_months_before yes integer | null min: 0
max: 60
data.pick_expired yes enum | null enum: 0, 1, 2, null 0: all goods; 1: ignore expired goods; 2: expired goods only.
data.id yes integer min: 1
data.type yes enum enum: assembly
data.domain_id yes integer min: 1
data.owner_user_id yes integer | null min: 1
data.visible_warehouse_ids yes array<integer>
data.visible_warehouse_ids[] no integer min: 1
data.created_at yes string:date-time | null
data.updated_at yes string:date-time | null
data yes PackingQueue
data.name yes string minLength: 1
maxLength: 150
data.priority yes integer min: 1
max: 1000
Default 100. Lower values are listed first.
data.status_id yes enum enum: 1, 2
data.visible_warehouse_id yes integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
data.user_id yes integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
data.delivery_service_ids yes array<integer> maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
data.delivery_service_ids[] no integer min: 1
data.date_from yes string:date | null
data.date_to yes string:date | null
data.warehouse_ids yes array<integer> maxItems: 1000
data.warehouse_ids[] no integer min: 1
data.type_orders_selection yes enum | null enum: 0, 1, null
data.start_place_type yes enum | null enum: 0, 102, 104, 105, null
data.packing_type yes enum | null enum: 0, 1, 2, null
data.print_label yes enum | null enum: 0, 1, 2, 3, null
data.type_print_blank yes enum | null enum: 0, 1, 2, null 0: none; 1: external order document; 2: WMS template. Mode 2 requires a visible order template; switching away clears print_blank_id.
data.print_blank_id yes integer | null min: 1
data.printer_id yes integer | null min: 1
data.auto_marking yes boolean
data.item_label_enabled yes boolean
data.item_label_template yes string | null maxLength: 100000
data.item_label_size yes enum enum: 58x40, 40x30
data.id yes integer min: 1
data.type yes enum enum: packing
data.domain_id yes integer min: 1
data.owner_user_id yes integer | null min: 1
data.visible_warehouse_ids yes array<integer>
data.visible_warehouse_ids[] no integer min: 1
data.created_at yes string:date-time | null
data.updated_at yes string:date-time | null
data yes MarkingQueue
data.name yes string minLength: 1
maxLength: 150
data.priority yes integer min: 1
max: 1000
Default 100. Lower values are listed first.
data.status_id yes enum enum: 1, 2
data.visible_warehouse_id yes integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
data.user_id yes integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
data.delivery_service_ids yes array<integer> maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
data.delivery_service_ids[] no integer min: 1
data.date_from yes string:date | null
data.date_to yes string:date | null
data.send_document_id yes integer | null min: 1 Accessible open shipment document admitted for marking, compatible with queue services and physical warehouse. Null clears the binding.
data.id yes integer min: 1
data.type yes enum enum: marking
data.domain_id yes integer min: 1
data.owner_user_id yes integer | null min: 1
data.visible_warehouse_ids yes array<integer>
data.visible_warehouse_ids[] no integer min: 1
data.created_at yes string:date-time | null
data.updated_at yes string:date-time | null
meta yes object
meta.api_version yes enum enum: v2

401 Authentication required

Unauthorized

Authentication is required.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

AUTH_REQUIRED

{
  "message": "Authentication is required.",
  "error": "AUTH_REQUIRED"
}

403 Forbidden

Forbidden

The authenticated account is not allowed to perform this action.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

FORBIDDEN

{
  "message": "The authenticated account is not allowed to perform this action.",
  "error": "FORBIDDEN"
}

404 Not found

NotFound

The requested resource was not found or is outside the authenticated account scope.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

NOT_FOUND

{
  "message": "The requested resource was not found or is outside the authenticated account scope.",
  "error": "NOT_FOUND"
}

422 Validation error

ValidationError

Validation failed.

Field Required Type Flags Constraints Description Example
message yes string "The given data was invalid."
error no string "VALIDATION_ERROR"
errors yes object {"warehouse_id":["The selected warehouse is invalid."]}

Response examples

validationError

{
  "message": "The given data was invalid.",
  "error": "VALIDATION_ERROR",
  "errors": {
    "warehouse_id": [
      "The selected warehouse is invalid."
    ]
  }
}

429 Rate limit exceeded

TooManyRequests

Rate limit exceeded. Inspect limit_type and honor Retry-After.

Field Required Type Flags Constraints Description Example
message yes string "API write request limit exceeded for this user."
error yes string "RATE_LIMITED"
limit_type yes enum enum: general, write, batch The quota that rejected the request. "write"
limit yes integer min: 1 Allowed requests per minute for this quota. 120
retry_after yes integer min: 0 Seconds to wait before retrying. 30

409 Conflict

Conflict

The request conflicts with the current resource state or idempotency key state.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

idempotencyConflict

{
  "message": "The idempotency key is already used with a different payload.",
  "error": "IDEMPOTENCY_KEY_CONFLICT"
}
PATCH /api/v2/queues/{type}/{id}

Update queue (partial)

operationIdpatchQueue
TagQueues
SecuritybearerAuth

Uses the same queue ACL, domain and warehouse scope as the Orchid interface. Domain/owner IDs and counters are read-only. Settings writes do not process orders or dispatch print jobs. Fields for another queue kind and unknown fields return 422. PUT/PATCH preserve omitted fields. Send a nonempty settings object in data; an unwrapped object is also accepted. Null clears only nullable fields. Date/count/order upper bounds must not be below the effective lower bounds.

HTTP request example (cURL)

Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.

curl --globoff --request PATCH "${NWMS_BASE_URL}/api/v2/queues/REPLACE_TYPE/REPLACE_ID" \
  --header "Accept: application/json" \
  --header "Authorization: Bearer ${NWMS_TOKEN}" \
  --header "Idempotency-Key: ${NWMS_REQUEST_KEY}" \
  --header "Content-Type: application/json" \
  --data-binary @request.json

Parameters

Name In Required Type Style Explode Constraints Description Example
type path yes enum enum: assembly, packing, marking Queue kind. IDs are unique within each kind.
id path yes integer min: 1 Queue ID within the selected kind.
Idempotency-Key header no string maxLength: 191 Optional idempotency key for API v2 write requests. Successful 2xx/3xx responses are replayed for the same key and identical payload for one day. The same key with a different payload returns 409. "ord-create-20260714-001"

Request body

Inline request body required

Field Required Type Flags Constraints Description Example
(root) no UpdateQueueRequest
name no string minLength: 1
maxLength: 150
priority no integer min: 1
max: 1000
Default 100. Lower values are listed first.
status_id no enum enum: 1, 2
visible_warehouse_id no integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
user_id no integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
delivery_service_ids no array<integer> | null maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
delivery_service_ids[] no integer min: 1
date_from no string:date | null
date_to no string:date | null
warehouse_ids no array<integer> | null maxItems: 1000
warehouse_ids[] no integer min: 1
type_orders_selection no enum enum: 0, 1
offers_count_from no integer | null min: 0
max: 4294967295
offers_count_to no integer | null min: 0
max: 4294967295
order_from no integer | null min: 0
max: 4294967295
order_to no integer | null min: 0
max: 4294967295
finish_place_type no enum | null enum: 0, 104, 105, 106, 107, null
all_offers no boolean True requires complete picking; false permits partial picking. Default true.
picking_type no enum enum: 0, 1
expiration_strategy no enum enum: 0, 1, 2 0: ignore expiry; 1: FIFO; 2: LIFO.
expiration_months_before no integer min: 0
max: 60
pick_expired no enum enum: 0, 1, 2 0: all goods; 1: ignore expired goods; 2: expired goods only.
name no string minLength: 1
maxLength: 150
priority no integer min: 1
max: 1000
Default 100. Lower values are listed first.
status_id no enum enum: 1, 2
visible_warehouse_id no integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
user_id no integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
delivery_service_ids no array<integer> | null maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
delivery_service_ids[] no integer min: 1
date_from no string:date | null
date_to no string:date | null
warehouse_ids no array<integer> | null maxItems: 1000
warehouse_ids[] no integer min: 1
type_orders_selection no enum enum: 0, 1
start_place_type no enum | null enum: 0, 102, 104, 105, null
packing_type no enum enum: 0, 1, 2
print_label no enum enum: 0, 1, 2, 3
type_print_blank no enum enum: 0, 1, 2 0: none; 1: external order document; 2: WMS template. Mode 2 requires a visible order template; switching away clears print_blank_id.
print_blank_id no integer | null min: 1
printer_id no integer | null min: 1
auto_marking no boolean
item_label_enabled no boolean
item_label_template no string | null maxLength: 100000
item_label_size no enum enum: 58x40, 40x30
name no string minLength: 1
maxLength: 150
priority no integer min: 1
max: 1000
Default 100. Lower values are listed first.
status_id no enum enum: 1, 2
visible_warehouse_id no integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
user_id no integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
delivery_service_ids no array<integer> | null maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
delivery_service_ids[] no integer min: 1
date_from no string:date | null
date_to no string:date | null
send_document_id no integer | null min: 1 Accessible open shipment document admitted for marking, compatible with queue services and physical warehouse. Null clears the binding.

Request examples

Example

{
  "data": {
    "name": "Учебная очередь",
    "priority": 100,
    "visible_warehouse_id": 38,
    "delivery_service_ids": [
      1
    ]
  }
}

Responses

200 Success.

Success.

Field Required Type Flags Constraints Description Example
data yes Queue
data yes AssemblyQueue
data.name yes string minLength: 1
maxLength: 150
data.priority yes integer min: 1
max: 1000
Default 100. Lower values are listed first.
data.status_id yes enum enum: 1, 2
data.visible_warehouse_id yes integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
data.user_id yes integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
data.delivery_service_ids yes array<integer> maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
data.delivery_service_ids[] no integer min: 1
data.date_from yes string:date | null
data.date_to yes string:date | null
data.warehouse_ids yes array<integer> maxItems: 1000
data.warehouse_ids[] no integer min: 1
data.type_orders_selection yes enum | null enum: 0, 1, null
data.offers_count_from yes integer | null min: 0
max: 4294967295
data.offers_count_to yes integer | null min: 0
max: 4294967295
data.order_from yes integer | null min: 0
max: 4294967295
data.order_to yes integer | null min: 0
max: 4294967295
data.finish_place_type yes enum | null enum: 0, 104, 105, 106, 107, null
data.all_offers yes boolean True requires complete picking; false permits partial picking. Default true.
data.picking_type yes enum | null enum: 0, 1, null
data.expiration_strategy yes enum | null enum: 0, 1, 2, null 0: ignore expiry; 1: FIFO; 2: LIFO.
data.expiration_months_before yes integer | null min: 0
max: 60
data.pick_expired yes enum | null enum: 0, 1, 2, null 0: all goods; 1: ignore expired goods; 2: expired goods only.
data.id yes integer min: 1
data.type yes enum enum: assembly
data.domain_id yes integer min: 1
data.owner_user_id yes integer | null min: 1
data.visible_warehouse_ids yes array<integer>
data.visible_warehouse_ids[] no integer min: 1
data.created_at yes string:date-time | null
data.updated_at yes string:date-time | null
data yes PackingQueue
data.name yes string minLength: 1
maxLength: 150
data.priority yes integer min: 1
max: 1000
Default 100. Lower values are listed first.
data.status_id yes enum enum: 1, 2
data.visible_warehouse_id yes integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
data.user_id yes integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
data.delivery_service_ids yes array<integer> maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
data.delivery_service_ids[] no integer min: 1
data.date_from yes string:date | null
data.date_to yes string:date | null
data.warehouse_ids yes array<integer> maxItems: 1000
data.warehouse_ids[] no integer min: 1
data.type_orders_selection yes enum | null enum: 0, 1, null
data.start_place_type yes enum | null enum: 0, 102, 104, 105, null
data.packing_type yes enum | null enum: 0, 1, 2, null
data.print_label yes enum | null enum: 0, 1, 2, 3, null
data.type_print_blank yes enum | null enum: 0, 1, 2, null 0: none; 1: external order document; 2: WMS template. Mode 2 requires a visible order template; switching away clears print_blank_id.
data.print_blank_id yes integer | null min: 1
data.printer_id yes integer | null min: 1
data.auto_marking yes boolean
data.item_label_enabled yes boolean
data.item_label_template yes string | null maxLength: 100000
data.item_label_size yes enum enum: 58x40, 40x30
data.id yes integer min: 1
data.type yes enum enum: packing
data.domain_id yes integer min: 1
data.owner_user_id yes integer | null min: 1
data.visible_warehouse_ids yes array<integer>
data.visible_warehouse_ids[] no integer min: 1
data.created_at yes string:date-time | null
data.updated_at yes string:date-time | null
data yes MarkingQueue
data.name yes string minLength: 1
maxLength: 150
data.priority yes integer min: 1
max: 1000
Default 100. Lower values are listed first.
data.status_id yes enum enum: 1, 2
data.visible_warehouse_id yes integer | null min: 1 Accessible enabled physical warehouse in the queue domain. Null means all physical warehouses in the domain and requires domain/global scope.
data.user_id yes integer | null min: 1 Accessible unblocked user in the queue domain; null clears the restriction.
data.delivery_service_ids yes array<integer> maxItems: 500 Available global/current-domain services. Empty/null clears the filter. A disabled service already assigned to this queue may be retained.
data.delivery_service_ids[] no integer min: 1
data.date_from yes string:date | null
data.date_to yes string:date | null
data.send_document_id yes integer | null min: 1 Accessible open shipment document admitted for marking, compatible with queue services and physical warehouse. Null clears the binding.
data.id yes integer min: 1
data.type yes enum enum: marking
data.domain_id yes integer min: 1
data.owner_user_id yes integer | null min: 1
data.visible_warehouse_ids yes array<integer>
data.visible_warehouse_ids[] no integer min: 1
data.created_at yes string:date-time | null
data.updated_at yes string:date-time | null
meta yes object
meta.api_version yes enum enum: v2

401 Authentication required

Unauthorized

Authentication is required.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

AUTH_REQUIRED

{
  "message": "Authentication is required.",
  "error": "AUTH_REQUIRED"
}

403 Forbidden

Forbidden

The authenticated account is not allowed to perform this action.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

FORBIDDEN

{
  "message": "The authenticated account is not allowed to perform this action.",
  "error": "FORBIDDEN"
}

404 Not found

NotFound

The requested resource was not found or is outside the authenticated account scope.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

NOT_FOUND

{
  "message": "The requested resource was not found or is outside the authenticated account scope.",
  "error": "NOT_FOUND"
}

422 Validation error

ValidationError

Validation failed.

Field Required Type Flags Constraints Description Example
message yes string "The given data was invalid."
error no string "VALIDATION_ERROR"
errors yes object {"warehouse_id":["The selected warehouse is invalid."]}

Response examples

validationError

{
  "message": "The given data was invalid.",
  "error": "VALIDATION_ERROR",
  "errors": {
    "warehouse_id": [
      "The selected warehouse is invalid."
    ]
  }
}

429 Rate limit exceeded

TooManyRequests

Rate limit exceeded. Inspect limit_type and honor Retry-After.

Field Required Type Flags Constraints Description Example
message yes string "API write request limit exceeded for this user."
error yes string "RATE_LIMITED"
limit_type yes enum enum: general, write, batch The quota that rejected the request. "write"
limit yes integer min: 1 Allowed requests per minute for this quota. 120
retry_after yes integer min: 0 Seconds to wait before retrying. 30

409 Conflict

Conflict

The request conflicts with the current resource state or idempotency key state.

Field Required Type Flags Constraints Description Example
message yes string "The request could not be processed."
error yes string "BAD_REQUEST"

Response examples

idempotencyConflict

{
  "message": "The idempotency key is already used with a different payload.",
  "error": "IDEMPOTENCY_KEY_CONFLICT"
}