POST /v1/invoices/{id}/reminders
const url = 'https://api.asap.cool/v1/invoices/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/reminders';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.asap.cool/v1/invoices/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/reminders \ --header 'Authorization: Bearer <token>'(Re)generates the reminder ladder from the document’s due_date: arms the
missing occurrences (re-arming a cancelled one), leaves already-scheduled or
sent ones untouched, and enqueues a delayed job per newly-armed occurrence.
An empty future schedule (a long-overdue invoice) is a benign 200.
Authorizations
Section intitulée « Authorizations »Parameters
Section intitulée « Parameters »Path Parameters
Section intitulée « Path Parameters »Document identifier.
Responses
Section intitulée « Responses »Reminder ladder after (re)scheduling.
The reminder ladder for a document.
object
Reminders ordered by scheduled send time.
Public projection of a [Reminder].
object
RFC3339 creation timestamp.
Document the reminder targets.
Stable identifier.
Reminder kind (before_due/overdue_7/overdue_14/overdue_30).
RFC3339 scheduled send time.
RFC3339 actual send time; absent while pending.
Example generated
{ "reminders": [ { "created_at": "example", "document_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "kind": "example", "scheduled_at": "example", "sent_at": "example" } ]}No active org.
Generic error body returned by API handlers when they fail. code is a
stable machine-readable token; message is human-friendly and meant for
surfacing to end users.
object
Stable machine token (e.g. invalid_credentials).
Offending request field for validation errors, when known.
Human-readable message.
Example generated
{ "code": "example", "field": "example", "message": "example"}Missing invoice:write scope.
Generic error body returned by API handlers when they fail. code is a
stable machine-readable token; message is human-friendly and meant for
surfacing to end users.
object
Stable machine token (e.g. invalid_credentials).
Offending request field for validation errors, when known.
Human-readable message.
Example generated
{ "code": "example", "field": "example", "message": "example"}Not found or cross-org.
Generic error body returned by API handlers when they fail. code is a
stable machine-readable token; message is human-friendly and meant for
surfacing to end users.
object
Stable machine token (e.g. invalid_credentials).
Offending request field for validation errors, when known.
Human-readable message.
Example generated
{ "code": "example", "field": "example", "message": "example"}Document is not an invoice/deposit, or has no due date.
Generic error body returned by API handlers when they fail. code is a
stable machine-readable token; message is human-friendly and meant for
surfacing to end users.
object
Stable machine token (e.g. invalid_credentials).
Offending request field for validation errors, when known.
Human-readable message.
Example generated
{ "code": "example", "field": "example", "message": "example"}