Skip to main content

Download Due-Date Calendar Event

GET 

/api/purchase-invoices/:purchaseInvoice/calendar.ics

Download a single-event iCalendar (.ics) file for the invoice's payment due date, suitable for importing into Outlook, Apple Calendar, or any calendar app.

Authentication: Requires Bearer token.

The response is a text/calendar file download (not JSON) containing one all-day VEVENT on the due date with a stable UID, so re-importing an updated file replaces the earlier event. The event carries popup reminders 7 days and 1 day before the deadline.

Returns 422 when the invoice has no payment due date.

Request

Responses

Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.