Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Get an invoice

Gets an invoice.

This method is not served on the public API. api.sylphx.com does not route this call: its backend is not deployed behind the public API, or does not implement the call. This page documents the contract. It is kept out of the sidebar and of search engines.

Gets an invoice.

Not available yet. Sylphx Billing is declared in the registry but no backend serves it: every call answers 501 with the problem code UNIMPLEMENTED.

  • Path GET https://api.sylphx.com/v1/orgs/acme/invoices/invoice
  • Scope billing:read
  • Effect read — nothing is written.
  • Collection invoices

#Request

FieldTypeWhat it is
namestringThe name of the invoice to get. Required.

#Response

FieldTypeWhat it is
namestringorgs/{org}/invoices/{invoice}.
uidstringinv_<cell><ulid>. Output only.
metaResourceMetaResource metadata. Output only.
numberstringThe human-readable invoice number, unique per org. Output only.
stateInvoiceStateThe invoice's lifecycle state. Output only. One of draft, open, paid, void, uncollectible.
currency_codestringISO 4217 currency of every amount. Output only.
period_start_timetimestampThe start of the billed period. Output only.
period_end_timetimestampThe end of the billed period. Output only.
linesInvoiceLine[]The lines, grouped by service. Output only.
subtotalMoneyThe sum of the rounded lines before tax. Output only.
taxMoneyTax. Output only.
totalMoneySubtotal plus tax. Output only.
amount_dueMoneyWhat is still owed. Output only.
amount_paidMoneyWhat has been paid, confirmed by provider readback. Output only.
finalize_timetimestampWhen the invoice was finalized. Output only.
due_timetimestampWhen payment is due. Output only.
paid_timetimestampWhen the invoice was paid in full. Output only.
completenessdoubleThe share of the period's usage that had reached Billing when the invoice was finalized, from 0 to 1; below 1 the invoice carries a note. Output only.
credit_notesCreditNote[]Credit notes issued against this invoice, oldest first. 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.

#InvoiceLine

FieldTypeWhat it is
kindInvoiceLineKindWhat the line charges for. Output only. One of fee, usage, late_usage, credit, proration.
descriptionstringA customer-safe description. Output only.
servicestringThe service the line belongs to; empty for the plan fee. Output only.
meterstringThe meter id, for usage lines. Output only.
meter_versionint32The meter version, for usage lines. Output only.
dimensionsmap<string, string>The dimensions the price matched. Output only.
tierint32The price tier, from 1. Output only.
quantityint64The rated quantity, in the meter's base unit. Output only.
unit_amount_minorRationalThe price per base unit. Output only.
amountMoneyThe line amount, rounded half-even to minor units. Output only.

#Money

FieldTypeWhat it is
currency_codestringISO 4217 currency, for example USD. Required.
units_minorint64The amount in the currency's minor unit (cents for USD). Required.

#CreditNote

FieldTypeWhat it is
numberstringThe human-readable credit note number. Output only.
totalMoneyThe amount credited. Output only.
reasonstringA customer-safe reason. Output only.
issue_timetimestampWhen the credit note was issued. Output only.

#Rational

FieldTypeWhat it is
numeratorint64The numerator. Required.
denominatorint64The denominator; never zero. Required.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl "https://api.sylphx.com/v1/orgs/acme/invoices/invoice" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"