Skip to content

Send shipping update emails to multiple orders

LegacyAPI v1 is the older API. It still works and is supported, but new integrations should use API v2. Migrating from v1 to v2

POST
/external/preorders/send_shipping_update
curl --request POST \
--url https://app.stoqapp.com/api/v1/external/preorders/send_shipping_update \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <X-Auth-Token>' \
--data '{ "shopify_order_ids": [ 5012345678901, 5012345678902 ], "subject": "Your preorder has shipped", "header": "Good news!", "description": "Your Summer Preorder items are on the way and should arrive within 5–7 business days." }'

Send shipping update emails to multiple preorders. You can specify orders using either:

  • STOQ internal order IDs (UUIDs) via order_ids
  • Shopify order IDs via shopify_order_ids

You must provide one or the other, but not both.

X-Auth-Token
required
string

API key for authentication

Media typeapplication/json
object
order_ids

Array of STOQ internal order UUIDs to send shipping updates to (mutually exclusive with shopify_order_ids)

Array<string>
shopify_order_ids

Array of Shopify order IDs to send shipping updates to (mutually exclusive with order_ids)

Array<integer>
subject
required

Email subject line

string
header
required

Email header text

string
description
required

Email body description

string

Example

{
"shopify_order_ids": [
5012345678901,
5012345678902
],
"subject": "Your preorder has shipped",
"header": "Good news!",
"description": "Your Summer Preorder items are on the way and should arrive within 5–7 business days."
}

Shipping update emails queued successfully

Media typeapplication/json
object
success
boolean
message
string
orders_count

Number of orders that will receive the shipping update

integer

Example

{
"success": true,
"message": "Shipping updates queued",
"orders_count": 2
}

Bad request - missing required parameters or invalid input

Media typeapplication/json
object
error
string

Example generated

{
"error": "example"
}

Unauthorized

No valid orders found

Media typeapplication/json
object
error
string

Example generated

{
"error": "example"
}
Was this page helpful?

Still stuck? Ask Quinn or chat with support