---
updatedAt: 2026-05-27T16:52:24.000Z
agentTools:
  projectIndex: https://developer.bill.com/llms.txt
---

# Get billing statement details

Get details about a billing statement for the organization. BILL generates a monthly billing invoice statement for all the billing activities in the organization.

From the response, use `downloadLink` in a GET request to download a billing statement.

```
curl '{downloadLink}' --header 'sessionId: {session_id}' --output {statement_name}
```

# OpenAPI definition

````json
{
  "openapi": "3.0.1",
  "info": {
    "title": "BILL v3 API",
    "description": "BILL is a cloud-based financial operations platform for an organization's accounts payable (AP), accounts receivable (AR), and spend & expense (S&E) automation.\n\nThe BILL v3 API gives you access to the same infrastructure that powers the AP, AR, and S&E products. In addition, you can receive real-time event notifications with webhooks.\n\nThe BILL Developer Documentation is available at [developer.bill.com](https://developer.bill.com/docs/home).\n\n## Quickstart\nSign-up and generate a developer key for working with the BILL v3 API. With this key, you can build with the AP, AR, BILL network, and webhook workflows. See [Sandbox API sign up](https://developer.bill.com/docs/api-sandbox-sign-up) for more information.\n\n### Spend & Expense API\nAn API token is required for working with the Spend & Expense API. See [Authentication with Spend & Expense API token](https://developer.bill.com/docs/authentication-with-api-token) for more information.\n\n### BILL v3 API in Postman\nWith this collection, you have access to the BILL v3 API in Postman. When you save your sandbox API credentials as environment variables in Postman, you can simply refer to the variables when you are testing with the BILL v3 API. See [BILL v3 API in Postman](https://developer.bill.com/docs/bill-v3-api-in-postman) for more information.",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://gateway.stage.bill.com/connect",
      "description": "sandbox"
    }
  ],
  "paths": {
    "/v3/organizations/{organizationId}/billing-statements/{billingStatementId}": {
      "get": {
        "tags": [
          "organizations"
        ],
        "summary": "Get billing statement details",
        "description": "Get details about a billing statement for the organization. BILL generates a monthly billing invoice statement for all the billing activities in the organization.\n\nFrom the response, use `downloadLink` in a GET request to download a billing statement.\n\n```\ncurl '{downloadLink}' --header 'sessionId: {session_id}' --output {statement_name}\n```",
        "operationId": "getBillingStatementDetail",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "type": "string",
              "description": "BILL-generated ID of the organization. The value begins with `008`.",
              "example": "{{organization_id}}"
            }
          },
          {
            "name": "billingStatementId",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "type": "string",
              "description": "BILL-generated ID of the billing statement. The value begins with `0S0`.",
              "example": "{{billing_statement_id}}"
            }
          },
          {
            "name": "sessionId",
            "in": "header",
            "schema": {
              "type": "string",
              "description": "API session ID generated with `/v3/login`",
              "nullable": true,
              "example": "{{session_id}}"
            }
          },
          {
            "name": "devKey",
            "in": "header",
            "schema": {
              "type": "string",
              "description": "Developer key generated with your BILL developer account",
              "nullable": true,
              "example": "{{developer_key}}"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get billing statement details response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingStatementDetailResponseDto"
                }
              }
            }
          },
          "4XX": {
            "description": "List of errors.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BdcError"
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "List of errors.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BdcError"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BdcError": {
        "required": [
          "category",
          "code",
          "severity",
          "timestamp"
        ],
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "code": {
            "type": "string"
          },
          "severity": {
            "$ref": "#/components/schemas/Severity"
          },
          "category": {
            "$ref": "#/components/schemas/Category"
          },
          "message": {
            "type": "string"
          },
          "params": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Param"
            }
          },
          "detail": {
            "type": "string"
          },
          "help": {
            "type": "string"
          }
        }
      },
      "BillingPeriodDto": {
        "type": "object",
        "properties": {
          "startDate": {
            "type": "string",
            "description": "Billing period start date",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "description": "Billing period end date",
            "format": "date"
          }
        },
        "description": "BillingPeriod response Dto."
      },
      "BillingStatementDetailLineItemDto": {
        "type": "object",
        "properties": {
          "quantity": {
            "type": "integer",
            "description": "Billing invoice line item quantity",
            "format": "int32"
          },
          "description": {
            "type": "string",
            "description": "Billing invoice line item description"
          },
          "type": {
            "type": "string",
            "description": "Billing invoice line item type"
          },
          "amount": {
            "type": "number",
            "description": "Billing invoice line item amount"
          }
        },
        "description": "BillingStatementDetailLineItem response Dto."
      },
      "BillingStatementDetailResponseDto": {
        "required": [
          "amount",
          "billingPeriod",
          "description",
          "downloadLink",
          "id",
          "invoiceDate",
          "invoiceNumber",
          "paymentStatus"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "BILL-generated ID of the billing statement. The value begins with `0S0`."
          },
          "invoiceNumber": {
            "type": "string",
            "description": "Billing invoice number"
          },
          "invoiceDate": {
            "type": "string",
            "description": "Billing invoice date",
            "format": "date"
          },
          "description": {
            "type": "string",
            "description": "Billing invoice description"
          },
          "billingPeriod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillingPeriodDto"
              },
              {
                "description": "Billing period information"
              }
            ]
          },
          "paymentStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillingStatementPaymentStatus"
              },
              {
                "description": "Billing invoice payment status"
              }
            ]
          },
          "paymentDate": {
            "type": "string",
            "description": "Billing invoice payment date",
            "format": "date"
          },
          "amount": {
            "type": "number",
            "description": "Billing invoice amount"
          },
          "statementDetails": {
            "type": "array",
            "description": "Statement details. This includes billing invoice line item information.",
            "items": {
              "$ref": "#/components/schemas/BillingStatementDetailLineItemDto"
            }
          },
          "downloadLink": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DownloadLinkDto"
              },
              {
                "description": "Billing statement download link information"
              }
            ]
          }
        },
        "description": "BillingStatementDetail response Dto."
      },
      "BillingStatementPaymentStatus": {
        "type": "string",
        "description": "Enum representing the payment status of a billing statement.",
        "enum": [
          "UNPAID",
          "PAID",
          "PENDING",
          "FAILED",
          "VOIDED",
          "UNDEFINED"
        ]
      },
      "Category": {
        "type": "string",
        "enum": [
          "REQUEST",
          "APPLICATION",
          "SERVER",
          "DOWNSTREAM"
        ]
      },
      "DownloadLinkDto": {
        "required": [
          "csv",
          "pdf"
        ],
        "type": "object",
        "properties": {
          "csv": {
            "type": "string",
            "description": "CSV format"
          },
          "pdf": {
            "type": "string",
            "description": "PDF format"
          }
        },
        "description": "DownloadLink response Dto."
      },
      "Param": {
        "required": [
          "name",
          "value"
        ],
        "type": "object",
        "properties": {
          "additional": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "value": {
            "minLength": 1,
            "type": "string"
          }
        }
      },
      "Severity": {
        "type": "string",
        "enum": [
          "ERROR",
          "WARNING",
          "INFORMATION"
        ]
      }
    }
  }
}
````