POST /v1/recurring-invoices/{id}/pause
const url = 'https://api.asap.cool/v1/recurring-invoices/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/pause';const options = {method: 'POST'};
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/recurring-invoices/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/pauseParameters
Section intitulée « Parameters »Path Parameters
Section intitulée « Path Parameters »Recurring template identifier.
Responses
Section intitulée « Responses »The paused template.
Public projection of a [RecurringInvoice].
object
Whether each auto-sent invoice is debited off-session via a stored SEPA
mandate (per-series opt-in; defaults to false).
Whether generated drafts are finalized and sent automatically.
Target contact.
RFC3339 creation timestamp.
Cadence (monthly/quarterly/yearly).
Stable identifier.
Line items snapshot (JSONB array).
object
Next generation date (YYYY-MM-DD).
Optional notes for generated documents.
Operation nature (biens/services/mixte) applied to generated
documents; null when unset.
RFC3339 pause timestamp, or null when active.
Lifecycle status derived from paused_at: "active" or "paused".
Optional title for generated documents.
RFC3339 last-update timestamp.
Example generated
{ "auto_collect_sepa": true, "auto_send": true, "contact_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "created_at": "example", "frequency": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "items": {}, "next_generation_date": "example", "notes": "example", "operation_nature": "example", "paused_at": "example", "status": "example", "title": "example", "updated_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"}