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}.
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) |