Create order and payment link
create_mailingCreates an unpaid order for the ready recipients in a saved list and the selected saved card design. Returns a cards.onmax.me link for the user to review recipients and pay. Nothing is printed, mailed or charged until the user pays on that page. Rows needing fixes are excluded. Each call creates a separate order link. An optional US sender address is printed as the return address.
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": {
"list_id": "<list_id>",
"design_id": "<design_id>"
},
"name": "create_mailing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | No | Return address (US). | |
| list_id | Yes | ||
| arrive_by | No | ||
| design_id | Yes | ||
| send_date | No | Date to print and mail, YYYY-MM-DD. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| notes | Yes | ||
| total | Yes | ||
| list_id | Yes | ||
| on_time | No | ||
| quantity | Yes | ||
| design_id | Yes | ||
| send_date | Yes | ||
| mailing_id | Yes | ||
| unit_price | Yes | ||
| total_cents | Yes | ||
| checkout_url | Yes | ||
| needs_fixing | Yes | ||
| arrives_between | Yes | ||
| latest_send_date | No |