POST

Send Notification

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

Endpoint

HTTP Request
POST /v1/orders/:order_id/notify

Authentication

This endpoint requires a valid API key with canSendNotifications permission. The API key must be passed in the X-API-Key header.
Required Header
X-API-Key: your_api_key_here

Path Parameters

ParameterTypeRequiredDefaultDescription
order_idstringYes-Order identifier (UUID by default, or Shopify order ID numeric portion if use_shopify_order_id is true in request body)

Request Body

ParameterTypeRequiredDefaultDescription
channelsstring[]Yes-Notification channels to use: "email", "sms", "whatsapp". At least one channel is required to prevent accidental notifications.
use_shopify_order_idbooleanNofalseSet to 'true' to look up order using Shopify order ID. Extract the number from Shopify's GID format (gid://shopify/Order/450789469 → 450789469) and use it in the URL path

Response

Returns detailed notification results:
200 OK - Success Response
{
  "message": "Notification request processed",
  "order_id": "550e8400-e29b-41d4-a716-446655440000",
  "notifications_sent": {
    "email": "sent",
    "sms": "sent",
    "whatsapp": "skipped"
  }
}

Response Fields

Root Response Object

FieldTypeDescription
messagestringConfirmation message
order_idstringUUID of the order
notifications_sentobjectObject containing notification status for each channel

Notifications Sent Object Fields

FieldTypeDescription
emailstringEmail notification status: "sent", "skipped", or "failed"
smsstringSMS notification status: "sent", "skipped", or "failed"
whatsappstringWhatsApp notification status: "sent", "skipped", or "failed"

Examples

Basic Request (UUID)

cURL Request
curl -X POST "https://api.ultimate-custom-order-status.apps.msmtech.ca/api/v1/orders/550e8400-e29b-41d4-a716-446655440000/notify" \
  -H "X-API-Key: your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "channels": ["email", "sms"]
  }'

Using Shopify Order ID

cURL Request
curl -X POST "https://api.ultimate-custom-order-status.apps.msmtech.ca/api/v1/orders/5460132438316/notify" \
  -H "X-API-Key: your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "channels": ["email"],
    "use_shopify_order_id": true
  }'

Rate Limiting

This endpoint is subject to per-minute and per-day rate limits based on your API key. Rate limit information is returned in the response headers:
  • X-RateLimit-Limit-Minute: Maximum requests per minute
  • X-RateLimit-Remaining-Minute: Remaining requests in current minute
  • X-RateLimit-Reset-Minute: Unix timestamp when minute window resets
  • X-RateLimit-Limit-Day: Maximum requests per day
  • X-RateLimit-Remaining-Day: Remaining requests in current day
  • X-RateLimit-Reset-Day: Unix timestamp when day window resets
  • Retry-After: Seconds to wait before retrying (when rate limited)

Error Responses

400 Bad Request

Invalid request body

400 Bad Request
{
  "error": "Validation failed",
  "details": {
    "errors": [...]
  }
}

401 Unauthorized

Missing or invalid API key

401 Unauthorized
{
  "error": "Unauthorized"
}

403 Forbidden

API key lacks required permissions

403 Forbidden
{
  "error": "Insufficient permissions"
}

404 Not Found

Order not found

404 Not Found
{
  "error": "Order not found",
  "details": {
    "orderId": "550e8400-e29b-41d4-a716-446655440000"
  }
}

500 Internal Server Error

Server error occurred

500 Internal Server Error
{
  "error": "Internal server error",
  "details": {
    "message": "Error description"
  }
}