Send payment reminder
Email a Ponaglenie, Monit or Wezwanie do zapłaty for an unpaid invoice.
POST https://cotlet.dev/api/v1/ifirma/invoices/{invoice_id}/payment-reminders
write Confirm
Creates the reminder from the invoice and emails it to the buyer with a PDF. reminder is before the due date, monit is after it, and demand is the formal Wezwanie do zapłaty, which iFirma recommends sending by registered letter. The seller gets a copy unless send_copy_to_me is false. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_id integer required | integer | Invoice ID from list_invoices. |
| type string required | string | reminder, monit or demand. |
| send_copy_to_me boolean | boolean | Copy to the seller email. Default: true. |
Request
curl -X POST https://cotlet.dev/api/v1/ifirma/invoices/7020104/payment-reminders \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"monit","send_copy_to_me":true}' result = client.call("ifirma", "send_payment_reminder", {"invoice_id":7020104,"type":"monit","send_copy_to_me":True}) const result = await cotlet.call('ifirma', 'send_payment_reminder', {"invoice_id":7020104,"type":"monit","send_copy_to_me":true}); cotlet call ifirma send_payment_reminder --data '{"invoice_id":7020104,"type":"monit","send_copy_to_me":true}' Example response
{
"invoice_id": 7020104,
"type": "monit",
"sent_to": "office@harborprint.example",
"copy_sent_to_me": true
}