Attach a document to an order
shop.merchant.order_documentAttach an HTTPS invoice or receipt link to an order so the paying buyer can view it in the order documents. Requires orders:write permission.
Instructions
Attach an https:// link (invoice, receipt) to your order (needs orders:write); the paying buyer sees it in shop.order.get documents.
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": {
"order_id": "<order_id>",
"url": "<url>"
},
"name": "shop.merchant.order_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| order_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| order_id | Yes |