UCOS API

Programmatically manage order statuses, send notifications, and retrieve order data

Current and default version 1.6. Every endpoint accepts 1.0–1.6; send X-API-Version for 1.0–1.5.

Getting started

The UCOS API allows you to programmatically interact with your order management system. You can retrieve orders, update statuses, send customer notifications, and more.

Base URL

API base URL
https://api.ultimate-custom-order-status.apps.msmtech.ca/api

API versioning

The API uses a two-tier versioning system with major versions in the URL and minor versions specified via the X-API-Version header.

Current version

Versions 1.0–1.6 are accepted; 1.6 is current and default. A request without X-API-Version is served 1.6, and the X-API-Version response header reports which version served the request.

Using a specific version with the X-API-Version header
curl -X GET "https://api.ultimate-custom-order-status.apps.msmtech.ca/api/v1/orders?page=1&limit=25&use_shopify_order_id=false&sort_by=created_at&sort_order=desc&order_type=ALL" \
  -H "X-API-Key: ucos_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
  -H "X-API-Version: 1.6"

Default behavior

A request without X-API-Version is served by 1.6. X-API-Version-Current and X-API-Version-Default both report 1.6; sending X-API-Version: 1.5 still returns the unchanged 1.5 payload.

Response headers for a request without X-API-Version
X-API-Version: 1.6
X-API-Version-Current: 1.6
X-API-Version-Default: 1.6

View full changelog →

Available endpoints

GET/v1/orders

Retrieve a paginated list of orders with filtering, sorting, and search capabilities.

GET/v1/orders/:order_id

Retrieve detailed information about a specific order by its ID.

GET/v1/statuses

Retrieve a list of all custom order statuses configured in your system.

GET/v1/statuses/:status_id

Retrieve detailed information about a specific custom order status by its ID.

POST/v1/orders/:order_id/notify

Forcibly send customer notifications (email, SMS, WhatsApp) for a specific order.

POST/v1/orders/:order_id/status

Update the custom status of a specific order. Automatically sends notifications based on status configuration.

POST/v1/orders/notify-bulk

Send notifications to customers for multiple orders in a single request.

POST/v1/orders/status-bulk

Update the custom status for multiple orders in a single request.

GET/v1/workflows

Retrieve all configured workflows with their associated statuses and settings.

POST/v1/line-items/:lineItemId/status

Change the status of a single line item. Triggers notifications when configured on the target status.

POST/v1/line-items/status-bulk

Change the status of multiple line items to the same target status in a single batch. Maximum 100 line items per request.

POST/v1/line-items/clear-status

Remove the current status (and sub-status) from one or more line items. Maximum 100 line items per request.

POST/v1/orders/:order_id/workflow

Reassign an order to a different workflow. The move applies a starting status from the target workflow and carries the status change and the fulfilment it triggers.

Quick start

1. Generate an API key from your dashboard

Navigate to your app's Settings → API Keys section to generate a new API key. Make sure to save it securely as it will only be shown once.

Authentication header

Include your API key in the X-API-Key header with every request:

Required authentication header
X-API-Key: ucos_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

2. Make your first API request with proper authentication

Example API request
curl -X GET "https://api.ultimate-custom-order-status.apps.msmtech.ca/api/v1/orders?page=1&limit=25&use_shopify_order_id=false&sort_by=created_at&sort_order=desc&order_type=ALL" \
  -H "X-API-Key: ucos_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
  -H "X-API-Version: 1.5"

3. Handle the response

All responses use the same JSON envelope: { "success": true, "data": { ... } } on success, and { "success": false, "error": "..." } on failure. Check success before reading the payload.

Next steps