German: "Mahnung / Zahlungserinnerung"
- Attributes
- GET /invoice_reminders
- GET /invoice_reminders/{id}
- POST /invoice_reminders
- DELETE /invoice_reminders/{id}
- POST /invoice_reminders/{id}/send_email
The invoice reminder representation contains among standard fields also shortened invoice information.
{
"id": 1,
"title": "Zahlungserinnerung",
"text": "Bei der Bearbeitung unserer Buchhaltung ist uns aufgefallen, dass wir für folgende Rechnung noch keinen Zahlungseingang verbuchen konnten. Sicherlich handelt es sich hierbei um ein Versehen. Wir bitten Sie höflich, uns den Betrag in den nächsten Tagen zu überweisen. Sollte sich Ihre Zahlung mit diesem Schreiben gekreuzt haben, betrachten Sie diese Erinnerung als gegenstandslos.",
"fee": 0.0,
"date": "2019-10-16",
"due_date": "2019-10-30",
"invoice": {
"id": 1489,
"identifier": "1409-019",
"title": "Rechnung - Android Prototype"
},
"created_at": "2019-10-30T07:20:40Z",
"updated_at": "2020-03-19T09:13:44Z"
}
Retrieve all invoice reminders:
curl -X GET \
'https://{domain}.mocoapp.com/api/v1/invoice_reminders' \
-H 'Authorization: Token token=YOUR_API_KEY'
Additionally, these parameters can be used to filter the results set:
- invoice_id – 123
- date_from – "2018-01-01"
- date_to – "2018-01-31"
Retrieve a single invoice reminder:
curl -X GET \
'https://{domain}.mocoapp.com/api/v1/invoice_reminders/{id}' \
-H 'Authorization: Token token=YOUR_API_KEY'
Create an invoice reminder:
curl -X POST \
'https://{domain}.mocoapp.com/api/v1/invoice_reminders' \
-H 'Authorization: Token token=YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"invoice_id": 546046,
"title": "Mahnung",
"text": "Hallo",
"date": "2020-08-04",
"due_date": "2020-09-12"
}'
Mandatory fields are marked with a star (*):
- invoice_id* – 546046
- title – "Mahnung",
- text – "Sehr geehrte Damen und Herren..."
- fee – 50
- date – "2020-08-04"
- due_date – "2020-09-12"
Fields title
and text
are optional. If these fields are obmitted the configured default values are taken.
Delete an invoice reminder:
curl -X DELETE \
'https://{domain}.mocoapp.com/api/v1/invoices_reminders/{id}' \
-H 'Authorization: Token token=YOUR_API_KEY'
Send the reminder by email:
curl -X POST \
'https://{domain}.mocoapp.com/api/v1/invoice_reminders/{id}/send_email' \
-H 'Authorization: Token token=YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"emails_to": "[email protected]",
"subject": "reminder",
"text": "pending invoice"
}'
Mandatory fields are marked with a star (*):
- emails_to* – "[email protected];[email protected]" (list of addresses separated by ;). To use default recipients, see information below.
- subject* – "reminder",
- text* – "pending invoice"
- emails_cc – "[email protected]" (list of addresses separated by ;)
- emails_bcc – "[email protected]" (list of addresses separated by ;)
🛈 If you want to send emails to the default recipient configured in the project or on the customer, leave emails_to
and emails_cc
empty. In the response, the recipients selected are returned.