GET /v1/invoices/{id}/flow
const url = 'https://api.asap.cool/v1/invoices/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/flow';const options = {method: 'GET', 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 GET \ --url https://api.asap.cool/v1/invoices/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/flow \ --header 'Authorization: Bearer <token>'Authorizations
Section intitulée « Authorizations »Parameters
Section intitulée « Parameters »Path Parameters
Section intitulée « Path Parameters »Quote (devis) identifier.
Responses
Section intitulée « Responses »The quote-to-cash flow.
Response body of GET /v1/invoices/{id}/flow.
object
Deposit invoices (acompte) derived from this quote.
One numbered document in the flow, with how much of it is paid.
object
Document number, None while still a draft.
Sum of recorded payments against it (centimes).
Document total including VAT (centimes).
Final invoice converted from this quote, None when not yet converted.
object
Document number, None while still a draft.
Sum of recorded payments against it (centimes).
Document total including VAT (centimes).
fully_paid/partially_paid/unpaid.
Quote number, None while still a draft.
Cash collected across the deposits and the final invoice (centimes).
Quote total including VAT (centimes).
quote_total - paid_total, floored at 0 (centimes).
Example generated
{ "deposits": [ { "number": "example", "paid_cents": 1, "total_ttc_cents": 1 } ], "final_invoice": { "number": "example", "paid_cents": 1, "total_ttc_cents": 1 }, "flow_status": "example", "number": "example", "paid_total_cents": 1, "quote_total_cents": 1, "remaining_cents": 1}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:read 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, cross-org, or not a quote.
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"}