API

BillingInvoice

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{organization_id}/billing/invoices list Invoices

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

billing_invoices, err := client.BillingInvoice(nil).List(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(billing_invoices)

Lua

Construct client as shown in the Lua setup, then call the operations:

local billing_invoices, err = client:BillingInvoice():list({ organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$billing_invoices = $client->BillingInvoice()->list(["organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

billing_invoices = client.BillingInvoice().list({"organization_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

billing_invoices = client.BillingInvoice.list({ "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const billing_invoices = await client.BillingInvoice().list({ organization_id: "example" })

Fields

Field Type Required Description
amount_due_cents integer Yes Amount Due Cents
created_at string Yes Created At
currency string Yes Currency
hosted_invoice_url one,string,null No Hosted Invoice Url
id string Yes Id
invoice_pdf one,string,null No Invoice Pdf
metronome_invoice_id one,string,null No Metronome's id for the invoice it pushed
number one,string,null No Number
period_ended_at one,string,null No Period Ended At
period_started_at one,string,null No Period Started At
status string Yes Status
total_cents integer Yes Total Cents

list

GET /api/v1/organizations/{organization_id}/billing/invoices

Operation ID: api_v1_organization_billing_invoices.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Responses

200: Invoices

application/json

Property Type Required Description
invoices array of object Yes
invoices[].amount_due_cents integer Yes
invoices[].created_at string Yes
invoices[].currency string Yes
invoices[].hosted_invoice_url string,null No
invoices[].id string Yes
invoices[].invoice_pdf string,null No
invoices[].metronome_invoice_id string,null No Metronome's id for the invoice it pushed
invoices[].number string,null No
invoices[].period_ended_at string,null No
invoices[].period_started_at string,null No
invoices[].status enum: draft, open, paid, uncollectible, void Yes
invoices[].total_cents integer Yes
organization_id string Yes
upcoming object or null Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway