Tạo link thu tiền
monapay_create_checkoutCreate a hosted checkout link for an order, share or redirect it to the customer, and fulfil only after the CHECKOUT_PAID webhook is received.
Instructions
Tạo link thu tiền, đưa link cho khách hoặc chuyển hướng checkout; đợi webhook CHECKOUT_PAID trước khi giao hàng. / Create a hosted checkout link; wait for CHECKOUT_PAID before fulfilment.
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": {
"amount": "<amount>",
"order_code": "<order_code>",
"return_url": "<return_url>"
},
"name": "monapay_create_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Số tiền nguyên VND | |
| sandbox | No | true = phiên THỬ với VA sandbox, không tiền thật; dùng được khi chưa nối ngân hàng | |
| metadata | No | ||
| cancel_url | No | ||
| expires_in | No | ||
| order_code | Yes | ||
| payer_name | No | ||
| return_url | Yes | ||
| description | No | ||
| payer_email | No | ||
| idempotency_key | No | Khoá chống tạo trùng; bỏ trống để MCP tự sinh UUID | |
| virtual_account_id | No |