GET
/
v1
/
customers
/
{customer_id}
/
invoices
/
{invoice_id}
Get an invoice
curl --request GET \
  --url https://api.metronome.com/v1/customers/{customer_id}/invoices/{invoice_id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "id": "6a37bb88-8538-48c5-b37b-a41c836328bd",
    "customer_id": "617e39d8-68f4-4592-b8d2-c2bf26a76989",
    "type": "USAGE",
    "start_timestamp": "2021-01-01T00:00:00Z",
    "end_timestamp": "2021-02-01T00:00:00Z",
    "credit_type": {
      "id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
      "name": "USD (cents)"
    },
    "contract_id": "9de042a1-b955-43ce-9ab4-e3c2004570d1",
    "line_items": [
      {
        "credit_type": {
          "id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
          "name": "USD (cents)"
        },
        "name": "CPU hours",
        "type": "usage",
        "quantity": 1488,
        "total": 14392,
        "product_id": "5c1f40cd-9ff8-4e90-ae53-5f81b0e9d1e8"
      }
    ],
    "total": 14392,
    "status": "FINALIZED"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customer_id
string<uuid>
required
invoice_id
string<uuid>
required

Query Parameters

skip_zero_qty_line_items
boolean

If set, all zero quantity line items will be filtered out of the response

Response

Success

The response is of type object.