v4

latestOpenAPI 3.0.22026-08-02109239415.7 KB
manage

Retrieve invoices for a specific organization

get/manage/api/organization/list_invoices

Query parameters

organization_idstring required

Base64 encoded organization ID to retrieve invoices for

Response

Invoices retrieved successfully

Example response

{
  "invoices": [
    {
      "total_spend": {
        "amount": 1050,
        "currency_code": "USD"
      },
      "start_time": "2024-01-01T00:00:00+00:00",
      "end_time": "2024-01-31T23:59:59+00:00",
      "invoice_id": "invoice_123",
      "line_items": [
        {
          "charge_name": "Image Generation - V3",
          "total": {
            "amount": 1050,
            "currency_code": "USD"
          },
          "quantity": 1000,
          "unit_price": {
            "amount": 1050,
            "currency_code": "USD"
          },
          "api_key_id": "api_key_id"
        },
        {
          "charge_name": "Image Generation - V3",
          "total": {
            "amount": 1050,
            "currency_code": "USD"
          },
          "quantity": 1000,
          "unit_price": {
            "amount": 1050,
            "currency_code": "USD"
          },
          "api_key_id": "api_key_id"
        }
      ],
      "issued_time": "2024-01-01T00:00:00+00:00",
      "paid_date": "2024-02-01T00:00:00+00:00",
      "invoice_status": "PAID"
    },
    {
      "total_spend": {
        "amount": 1050,
        "currency_code": "USD"
      },
      "start_time": "2024-01-01T00:00:00+00:00",
      "end_time": "2024-01-31T23:59:59+00:00",
      "invoice_id": "invoice_123",
      "line_items": [
        {
          "charge_name": "Image Generation - V3",
          "total": {
            "amount": 1050,
            "currency_code": "USD"
          },
          "quantity": 1000,
          "unit_price": {
            "amount": 1050,
            "currency_code": "USD"
          },
          "api_key_id": "api_key_id"
        },
        {
          "charge_name": "Image Generation - V3",
          "total": {
            "amount": 1050,
            "currency_code": "USD"
          },
          "quantity": 1000,
          "unit_price": {
            "amount": 1050,
            "currency_code": "USD"
          },
          "api_key_id": "api_key_id"
        }
      ],
      "issued_time": "2024-01-01T00:00:00+00:00",
      "paid_date": "2024-02-01T00:00:00+00:00",
      "invoice_status": "PAID"
    }
  ]
}