tochka_check_invoices
Check pending invoices for payment and automatically remove paid ones using exact API or fallback bank statement matching by buyer INN and amount.
Instructions
Check all pending invoices for payment. Automatically removes paid ones from tracking.
Two strategies:
With document_id: uses Tochka payment-status API (fast, exact)
Without document_id: searches bank statement by buyer INN + amount (fallback)
Fallback match criteria (all must be true):
Incoming (Credit) transaction
Debtor INN matches buyer_inn
Transaction date >= invoice created_at
abs(transaction amount - invoice amount) <= 1 ruble
Args: days: Statement depth in days for fallback (default 30)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |