Skip to content
Console
On this page

Get an invoice settlement

Reads collected invoice principal and its committed reversal movements.

Reads collected invoice principal and its committed reversal movements.

  • Path GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/invoice_settlements/invoice-settlement
  • Scope billing:read
  • Effect read — nothing is written.
  • Collection invoice_settlements

Request

FieldTypeWhat it is
namestringSettlement resource name, ending in the processor invoice ID. Required.

Response

FieldTypeWhat it is
namestringCanonical settlement resource name.
uidstringStable identifier of the settlement's original journal entry. Output only.
metaResourceMetaResource metadata.
processor_invoice_idstringStable processor invoice identifier. Output only.
livemodeboolProduction when true, sandbox when false. Output only.
subjectSubjectThe billed customer subject. Output only.
currency_codestringCurrency of the original invoice. Output only.
paid_timetimestampOriginal processor collection time. Output only.
gross_collected_minoruint32Original cash collected, including tax. Output only.
tax_minoruint32Tax included in the original collection. Output only.
net_principal_minoruint32Original cash collected less tax, before reversals. Output only.
list_principal_minoruint32Pre-discount, tax-exclusive subtotal, only when proven. Output only.
movementsInvoiceSettlementMovement[]Apply each movement ID once for this invoice. Order is not significant. Output only.

ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

Subject

FieldTypeWhat it is
end_userstringAn end user's id (Sylphx Auth, or the app's own OIDC issuer). One of the kind group.
customer_organizationstringA customer organization's id. One of the kind group.

InvoiceSettlementMovement

FieldTypeWhat it is
movement_idstringStable movement identity within the invoice. Output only.
kindstringrefund, dispute_withdrawn, or dispute_reinstated. Actual debits and credits are recognized independently of dispute lifecycle status. Output only.
currency_codestringCurrency of this movement, which may differ from invoice currency. Output only.
principal_minoruint32Positive magnitude. Refunds exclude returned tax. Dispute debits and credits exclude fees and do not reverse the original tax liability. Output only.
occurred_timetimestampEffective time of the committed journal entry (wire JSON: occurred_time). Output only.
list_principal_minoruint32Tax-exclusive, pre-discount reversal principal in this movement's currency. Omitted without explicit journal evidence; not derived from cash. Do not net movements in a different currency against the original invoice. Output only.

Errors

  • UNAUTHENTICATED — No valid key or token was presented.
  • PERMISSION_DENIED — The key lacks the method's permission.
  • RESOURCE_NOT_FOUND — The named Resource does not exist or is not visible.
  • INVALID_FIELD — A field failed validation.
  • INVALID_STATE — The Resource is in a state that forbids the call.
  • UNAVAILABLE — The Resource store, the owning service's backend, or the key verifier's snapshot is unavailable; retry after Retry-After.

Every error arrives in the body Errors describes.

Examples

curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/invoice_settlements/invoice-settlement" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"