跳转到内容

Queue

此内容尚不支持你的语言。

Queue is like a folder that orders are organized into. A queue uniquely map to one warehouse, and has a default shipping profile.

https://api.teapplix.com/api2/Queue Explorer

GET Request

Query parameters

PropertyTypeDescriptionConstraints
QueueId integer Filter by queue ID (exact match). Use to look up a specific queue by its numeric ID.
QueueName string Case-insensitive substring search on queue name. Returns all queues whose name contains this string.
WarehouseId integer Filter by warehouse ID (exact match). Returns all queues assigned to that warehouse (FK to /Warehouse).
WarehouseName string Filter by warehouse name (exact match). Alternative to WarehouseId: returns all queues assigned to the warehouse with this name.
ProfileId integer Filter by shipping profile ID (exact match). Returns all queues using that shipping profile (FK to /ShippingProfile).
ProfileName string Filter by shipping profile name (exact match). Alternative to ProfileId: returns all queues using the profile with this name.

GET Response - 200

Queue Get Response

Response to GET /Queue. Contains a list of order queues matching the query filters, ordered by QueueSeq then QueueId.

PropertyTypeDescriptionConstraints
Queues Order Queue[] List of order queues matching the query filters. Empty array if none match. Required

Order Queue

Order queue — groups orders by warehouse and shipping profile. Each queue has a WarehouseId (FK: warehouse.warehouse_id) and a ProfileId (FK: shipping_profile.id). The shipping table references queue_id.

PropertyTypeDescriptionConstraints
QueueId integer Unique queue identifier. QueueIds 1-4 are built-in and cannot be deleted. QueueIds 1-2 also have immutable names. On create, omit to auto-assign (must be > 4 if provided). On update/delete, provide to identify the queue (alternative to QueueName). Minimum: 1
QueueType string Purpose for the Queue. Controls how the queue is handled in the UI and workflow. Allowed values: DISPLAY, HOLD, PRINT, RETURN, 3PL and AGENT. DISPLAY QUEUE is the default and for every day use. HOLD queue are for orders not to be printed for now and we may block label print or submit to 3pl until orders are moved out. PRINT and 3PL are for orders ready to print shipping label or submit to external warehouses. RETURN are for return shipments from customers back. AGENT is desiged to hold orders where AI Agent will run automated processes based on Agent.md to further route and distribute the orders. One of: DISPLAY, HOLD, AGENT, PRINT, RETURN, 3PL
QueueName string Display name for the order queue. Must be unique. Required on create. Immutable for QueueIds 1-2. On update/delete, may be used instead of QueueId to identify the queue (exact match).
WarehouseId integer Warehouse assigned to orders in this queue (FK to /Warehouse). Provide either WarehouseId or WarehouseName (not both). Defaults to 1 (default warehouse) if both are omitted on create. Minimum: 1
WarehouseName string Warehouse name (exact match). Alternative to WarehouseId: provide either WarehouseId or WarehouseName (not both). Use GET /Warehouse to find valid warehouse names. Input-only field — not returned in GET responses.
ProfileId integer Shipping profile used for label printing in this queue (FK to /ShippingProfile). Provide either ProfileId or ProfileName (not both). Defaults to 1 (default profile) if both are omitted on create. Minimum: 1
ProfileName string Shipping profile name (exact match). Alternative to ProfileId: provide either ProfileId or ProfileName (not both). Use GET /ShippingProfile to find valid profile names. Input-only field — not returned in GET responses.
AgentInstructions string Markdown instructions / Agent.md for the AGENT queue on how to process the orders. Ignored and not returned for all other queue types.
AdditionalProfiles integer[] Additional shipping profile IDs for this queue (stored in queue_profile table). Each profile ID must exist in shipping_profile table. Returns empty array if no additional profiles.

GET Response - 400

Message

PropertyTypeDescriptionConstraints
Success boolean Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. Required
Code integer Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115
Message string Message typically associated with errors
Description string[] Detailed description

GET Response - 401

Message

PropertyTypeDescriptionConstraints
Success boolean Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. Required
Code integer Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115
Message string Message typically associated with errors
Description string[] Detailed description

GET Response - 500

Message

PropertyTypeDescriptionConstraints
Success boolean Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. Required
Code integer Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115
Message string Message typically associated with errors
Description string[] Detailed description
Test Request