WooCommerce
Get WooCommerce Order
Checks the status, total and items of one order by its ID.
Unverified
What the model is told
Look up a WooCommerce order by its order number. Ask the customer for the order number and the billing email on the order. Compare the email in the response (billing.email) with what the customer gave you. If it does not match, do not share any details and say you could not verify the order. If it matches, you can tell them the status, date, total and items. Never read out addresses or phone numbers.
Request
GEThttps://YOUR_STORE_DOMAIN/wp-json/wc/v3/orders/{{orderId}}?_fields=id,number,status,date_created,currency,total,line_items,billing
Headers
Acceptapplication/jsonAuthorizationBasic YOUR_BASE64_WOOCOMMERCE_KEY_AND_SECRET
Parameters
orderId stringThe WooCommerce order number.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "84e1bbad-9aed-4d8c-879a-3569c347d933",
"type": "HTTP_REQUEST",
"label": "Get WooCommerce Order",
"name": "get_woocommerce_order",
"customName": false,
"description": "Look up a WooCommerce order by its order number. Ask the customer for the order number and the billing email on the order. Compare the email in the response (billing.email) with what the customer gave you. If it does not match, do not share any details and say you could not verify the order. If it matches, you can tell them the status, date, total and items. Never read out addresses or phone numbers.",
"parameters": [
{
"name": "orderId",
"type": "string",
"description": "The WooCommerce order number."
}
],
"config": {
"endpoint": {
"method": "GET",
"url": "https://YOUR_STORE_DOMAIN/wp-json/wc/v3/orders/{{orderId}}?_fields=id,number,status,date_created,currency,total,line_items,billing"
},
"headers": [
{
"name": "Accept",
"value": "application/json"
},
{
"name": "Authorization",
"value": "Basic YOUR_BASE64_WOOCOMMERCE_KEY_AND_SECRET"
}
],
"body": null,
"timeout": null
}
}
}IDs are regenerated on every copy.