Send invoice reminder API

How is it possible to send invoice reminders via API.
Havent found endpoints related to reminders in the specification.
Please, advise.


Regards, AK

Hi,

I believe when using the /email route you can set template to reminder1 to manually send the reminder.

curl --request POST \
  --url 'https://invoicing.co/api/v1/emails?=' \
  --data '{
	"entity": "invoice",
	"entity_id": "xbo2J2V3ag",
	"template": "reminder1",
	"body": " ",
	"subject": "Test subject"
}'

when I use above data I get error:

{
"message": "The given data was invalid.",
"errors": {
	"template": [
		"The template field is required."
	]
}
}

Try adding: -H "Content-Type:application/json"

Thank you @hillel
No, the issue was incorrect template name “reminder1”

Here I’ve found correct namings and for the reminder 1 I had to use “email_template_reminder1”

Not it works.

Glad to hear it’s working, thanks for sharing the solution!

1 Like