Aller au contenu

`GET /v1/invoices/{id}/sepa-mandate`

GET
/v1/invoices/{id}/sepa-mandate
curl --request GET \
--url https://api.asap.cool/v1/invoices/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/sepa-mandate \
--header 'Authorization: Bearer <token>'
id
required
string format: uuid

Document identifier.

Mandate status for the invoice’s buyer contact.

Media type application/json

Response of GET /v1/invoices/{id}/sepa-mandate.

object
active
required

true when the invoice’s buyer contact has an active SEPA mandate.

boolean
status

Mandate status token (active) when present; None when the contact has no active mandate. Never exposes the stored Stripe ids.

string | null
Example generated
{
"active": true,
"status": "example"
}

No active org.

Media type application/json

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
code
required

Stable machine token (e.g. invalid_credentials).

string
field

Offending request field for validation errors, when known.

string | null
message
required

Human-readable message.

string
Example generated
{
"code": "example",
"field": "example",
"message": "example"
}

Missing invoice:read scope.

Media type application/json

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
code
required

Stable machine token (e.g. invalid_credentials).

string
field

Offending request field for validation errors, when known.

string | null
message
required

Human-readable message.

string
Example generated
{
"code": "example",
"field": "example",
"message": "example"
}

Not found or cross-org.

Media type application/json

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
code
required

Stable machine token (e.g. invalid_credentials).

string
field

Offending request field for validation errors, when known.

string | null
message
required

Human-readable message.

string
Example generated
{
"code": "example",
"field": "example",
"message": "example"
}