Order Query API
You provide an order lookup endpoint; when customers ask about orders, we call it with a signature, and order data is not stored on our side.
In the admin panel, under “Bot Settings,” enter the order query URL. When a customer asks about an order, we will send the following request:
POST {你的订单接口}
Content-Type: application/json
X-AICS-Timestamp: 1761120000
X-AICS-Signature: v1=<hex>
{"user_id": "u_123", "order_no": "A1001"}
order_nomay benull, which means querying this customer's most recent order.- Signature verification:
hex(HMAC-SHA256(签名密钥, "{X-AICS-Timestamp}.{原始请求体}"))must match the value afterv1=, and the timestamp must be within 5 minutes. You must verify the signature using the raw request body bytes; do not parse the JSON and then re-serialize it. - Only return orders that belong to this
user_id. The timeout is 8 seconds.
Response format (only the following fields are passed to the AI; other fields will be discarded):
{
"orders": [
{
"order_no": "A1001",
"status": "shipped",
"total": "59.00",
"currency": "USD",
"items": [{"name": "潜水自动机械表", "quantity": 1}],
"tracking": {"carrier": "DHL", "number": "JD0146...", "url": "https://..."},
"created_at": "2026-10-01T08:00:00Z",
"note": "预计 10 月 25 日送达"
}
]
}
Was this page helpful?
Last updated:
