Place or refund a test order
run_test_orderTry the store's checkout end to end without real money. action "place" places a real order through the store's own checkout, marked as a test, and returns the payment link plus the provider's test card: give both to the owner to finish paying (payment pages cannot be paid automatically). Refused while the store's payments are LIVE (it would take real money) or when it takes no online payment. Then check_test_order confirms it was marked paid, and action "refund" cancels and refunds the paid test order. Receipts go to the owner's email.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site_id": "<site_id>",
"action": "<action>"
},
"name": "run_test_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | refund: the test order's id or number | |
| action | Yes | place = place a test order through the store's own checkout (only while its payments are in test or demo mode); refund = cancel and refund a paid test order | |
| product | No | place: the product's slug or exact title; omit to use the first product that can be bought | |
| site_id | Yes | The site, from list_sites | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. |