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

Parameters: send_payment_reminder
NameTypeDescription
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
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}'
Python
result = client.call("ifirma", "send_payment_reminder", {"invoice_id":7020104,"type":"monit","send_copy_to_me":True})
Node.js
const result = await cotlet.call('ifirma', 'send_payment_reminder', {"invoice_id":7020104,"type":"monit","send_copy_to_me":true});
CLI
cotlet call ifirma send_payment_reminder --data '{"invoice_id":7020104,"type":"monit","send_copy_to_me":true}'

Example response

JSON

{
  "invoice_id": 7020104,
  "type": "monit",
  "sent_to": "office@harborprint.example",
  "copy_sent_to_me": true
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.