Create a payment
smartaccounts_create_paymentRecord a bank or cash payment against one or more invoices (purchasesales/payments:add): a client paying a sales invoice, or a payment to a vendor for a purchase invoice. Use smartaccounts_list_bank_accounts or _list_cash_accounts for account_name, and the invoice ids from the invoice lists. The currency must match the account's currency. Returns paymentId, number and amount. This creates a real accounting record in the company's books. This server cannot edit or delete it; correct it in SmartAccounts. It never retries: if a reply is unclear, look in SmartAccounts before calling again. The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Payment date, yyyy-mm-dd. | |
| rows | Yes | The invoices this payment settles. | |
| comment | No | Internal comment. | |
| currency | Yes | Currency code, for example EUR; must match the account's currency. | |
| document | No | Document number text. | |
| partner_id | Yes | The client id (partner_type CLIENT) or vendor id (VENDOR). | |
| account_name | Yes | The name of the bank or cash account. | |
| account_type | Yes | BANK or CASH. | |
| partner_type | Yes | CLIENT = money received from a client; VENDOR = money paid to a vendor. | |
| exchange_rate | No | Exchange rate; only for a currency without an ECB rate. |