order_payment_create
Record a payment against an order by specifying amount, payment type, status, and timestamp. Returns success confirmation and payment ID.
Instructions
Record a payment against an order (amount, type, status, paid_at). Returns {success, id}.
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>",
"type": "<type>"
},
"name": "order_payment_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site (store) symbolic code. Required on create/edit when the API key is scoped to multiple sites (see list_sites). | |
| type | Yes | Payment type code (see list_payment_types) | |
| amount | Yes | Payment amount | |
| status | No | Payment status code (e.g. 'paid') | |
| paid_at | No | Paid timestamp 'YYYY-MM-DD HH:MM:SS' | |
| order_id | No | Order RetailCRM ID the payment belongs to | |
| order_external_id | No | Order externalId (alternative to order_id) |