POST /v1/invoice/einvoicing/disconnect
const url = 'https://api.asap.cool/v1/invoice/einvoicing/disconnect';const options = {method: 'POST', headers: {cookie: 'asap_session=<asap_session>'}};
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/invoice/einvoicing/disconnect \ --cookie asap_session=<asap_session>Authorizations
Section intitulée « Authorizations »Responses
Section intitulée « Responses »Disconnected (idempotent); the org is no longer addressable.
Public projection of an org’s directory enrolment.
object
Whether inbound invoices for this SIREN can be routed to the org.
State of the OAuth connection to the platform: connected,
pending_review (the platform is still verifying the company) or
reauth_required (consent must be given again). Absent when the org
never connected.
Reason of the last failed attempt, when the status is error.
Recipient identifier assigned by the directory, set once active.
SIREN the org is (or would be) addressable by, when known.
not_enrolled | pending | active | error.
RFC3339 timestamp of the last enrolment change, when enrolled at all.
Example generated
{ "addressable": true, "connection": "example", "last_error": "example", "recipient_id": "example", "siren": "example", "status": "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"}Not a signed-in Owner or Admin of the 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"}