> ## Documentation Index
> Fetch the complete documentation index at: https://gcore.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a single Expense

> Retrieve a single `Expense` by ID.



## OpenAPI

````yaml /api-reference/services_documented/billing_reseller_api.yaml get /billing/org/v1/expenses/{id}
openapi: 3.1.0
info:
  title: Gcore OpenAPI – Billing Reseller API
  description: >-
    This OpenAPI is an aggregated OpenAPI specification that unifies all Gcore
    products into a single file. It covers Cloud, CDN, DNS, WAAP, DDoS
    Protection, Object Storage, Streaming, and FastEdge services.
  version: '2026-05-07T20:33:46.548242+00:00'
servers:
  - url: https://api.gcore.com
security:
  - APIKey: []
tags:
  - name: addendums
    description: Operations on client addendums
    x-displayName: addendums
  - name: calc_rules
    x-displayName: calc_rules
  - name: currencies
    x-displayName: currencies
  - name: erp-invoices
    x-displayName: erp-invoices
  - name: expenses
    description: Operations on expenses
    x-displayName: expenses
  - name: plans
    description: Operations on tariff plans and their contents
    x-displayName: plans
  - name: products
    x-displayName: products
  - name: reports
    description: >-
      Operations involving reports and the associated background tasks that
      handle their processing
    x-displayName: reports
  - name: trials
    x-displayName: trials
paths:
  /billing/org/v1/expenses/{id}:
    get:
      tags:
        - expenses
      summary: Get a single Expense
      description: Retrieve a single `Expense` by ID.
      operationId: v1_expenses_retrieve
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpenseForOrgSerializerV1'
          description: Request successful.
        '401':
          description: Authentication credentials were not provided or are invalid.
        '403':
          description: You do not have permission to perform this action.
        '404':
          description: The requested resource was not found.
components:
  schemas:
    ExpenseForOrgSerializerV1:
      type: object
      description: >-
        Resolve client/payer for expenses that may be linked via addendum or
        directly via client.
      properties:
        id:
          type: integer
          readOnly: true
        client_id:
          type: string
          readOnly: true
          description: The ID of the client associated with the expense.
        payer_id:
          type: string
          readOnly: true
          description: The ID of the payer associated with the expense.
        client:
          allOf:
            - $ref: '#/components/schemas/CustomerPayerCommonShort'
          readOnly: true
          description: The client associated with the expense.
        comment:
          type: string
          readOnly: true
          nullable: true
          description: Public comment
        for_date:
          type: string
          format: date-time
          readOnly: true
          description: Date of expense
        period_range:
          allOf:
            - $ref: '#/components/schemas/DateTimeTZRange'
          readOnly: true
          description: The time range for which the expense is calculated.
        calc_rule_type:
          type: string
          readOnly: true
          description: Type of the calculation rule applied to the expense.
        currency:
          allOf:
            - $ref: '#/components/schemas/CurrencyCommonShort'
          readOnly: true
          description: The currency used in the expense.
        money_value:
          description: The monetary value of the expense.
          type: string
          format: decimal
          pattern: ^\d{1,3}\.\d{12}$
          readOnly: true
        tax_value:
          description: The monetary value of the tax applied to the expense.
          type: string
          format: decimal
          pattern: ^\d{1,3}\.\d{12}$
          readOnly: true
        tax_rate:
          type: string
          format: decimal
          pattern: ^\d{1,2}\.\d{2}$
          readOnly: true
          description: The tax rate applied to the expense.
        usage:
          allOf:
            - $ref: '#/components/schemas/Usage'
          readOnly: true
          description: Usage details associated with the expense.
        metric_ext_name:
          type: string
          readOnly: true
          description: Metric code of the feature associated with the expense.
        region:
          allOf:
            - $ref: '#/components/schemas/StatisticRegionCommonShort'
          readOnly: true
          description: The region associated with the expense.
        discount_value:
          description: The monetary value of the discount applied to the expense.
          type: string
          format: decimal
          pattern: ^\d{1,3}\.\d{12}$
          readOnly: true
        discount:
          allOf:
            - $ref: '#/components/schemas/DiscountCommonShort'
          readOnly: true
          description: The discount applied to the expense, if any.
        deleted:
          type: boolean
          readOnly: true
          description: Indicates whether the expense has been deleted.
        description:
          type: string
          readOnly: true
          description: Description of the expense.
        product_category:
          allOf:
            - $ref: '#/components/schemas/ProductCategoryCommonShort'
          readOnly: true
          description: The product category associated with the feature of the expense.
        product:
          allOf:
            - $ref: '#/components/schemas/ProductCommonShort'
          readOnly: true
          description: The product associated with the expense.
        addendum:
          allOf:
            - $ref: '#/components/schemas/AddendumCommonShort'
          readOnly: true
          description: The addendum associated with the expense.
        plan:
          allOf:
            - $ref: '#/components/schemas/PlanCommonShort'
          readOnly: true
          description: The plan associated with the expense.
        feature:
          allOf:
            - $ref: '#/components/schemas/FeatureCommonShort'
          readOnly: true
          description: The feature associated with the expense.
        subscription:
          type: string
          readOnly: true
          description: The subscription associated with the expense.
        plan_item:
          allOf:
            - $ref: '#/components/schemas/AdminPlanItemCommonShort'
          readOnly: true
          description: The plan item associated with the expense.
        invoices:
          type: array
          items:
            $ref: '#/components/schemas/InvoiceItemIDsShort'
          readOnly: true
          description: List of invoice item IDs associated with the expense.
      required:
        - addendum
        - calc_rule_type
        - client
        - client_id
        - comment
        - currency
        - deleted
        - description
        - discount
        - discount_value
        - feature
        - for_date
        - id
        - invoices
        - metric_ext_name
        - money_value
        - payer_id
        - period_range
        - plan
        - plan_item
        - product
        - product_category
        - region
        - subscription
        - tax_rate
        - tax_value
        - usage
    CustomerPayerCommonShort:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        company_name:
          type: string
          readOnly: true
      required:
        - company_name
        - id
    DateTimeTZRange:
      type: object
      description: Date-time range with start and end fields.
      properties:
        start:
          type: string
          format: date-time
          nullable: true
        end:
          type: string
          format: date-time
          nullable: true
    CurrencyCommonShort:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        char_code:
          type: string
          description: Currency iso4217 char code
          pattern: ^[A-Z]{3}$
          maxLength: 3
        symbol:
          type: string
          nullable: true
          description: Currency symbol, for example '$'
          maxLength: 10
      required:
        - char_code
        - id
    Usage:
      type: object
      description: >-
        Resolve a Unit from an Expense via `plan_item` or
        subscription.`price_json`.
      properties:
        amount:
          type: string
          format: decimal
          pattern: ^\d{1,3}\.\d{12}$
          readOnly: true
          description: The amount of usage
        unit_name:
          type: string
          nullable: true
          readOnly: true
          description: The name of the unit of measurement for the usage
      required:
        - amount
        - unit_name
    StatisticRegionCommonShort:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        name:
          type: string
          readOnly: true
        external_name:
          type: string
          readOnly: true
      required:
        - external_name
        - id
        - name
    DiscountCommonShort:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        relative_value:
          type: string
          format: decimal
          pattern: ^-?\d{0,24}(?:\.\d{0,12})?$
        comment:
          type: string
          nullable: true
          description: Public comment
          maxLength: 1000
      required:
        - id
        - relative_value
    ProductCategoryCommonShort:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        name:
          type: string
          maxLength: 255
      required:
        - id
        - name
    ProductCommonShort:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        name:
          type: string
          readOnly: true
        internal_name:
          type: string
          maxLength: 25
      required:
        - id
        - internal_name
        - name
    AddendumCommonShort:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        active_range:
          allOf:
            - $ref: '#/components/schemas/DateTimeTZRange'
          readOnly: true
        status:
          enum:
            - upcoming
            - active
            - paused
            - stopped
          type: string
          x-spec-enum-id: a6691db649b8bdef
          description: |-
            Addendum status

            - `upcoming` - upcoming
            - `active` - active
            - `paused` - paused
            - `stopped` - stopped
      required:
        - active_range
        - id
    PlanCommonShort:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        name:
          type: string
          readOnly: true
      required:
        - id
        - name
    FeatureCommonShort:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        name:
          type: string
          readOnly: true
        erp_sku_id:
          type: string
          readOnly: true
          nullable: true
      required:
        - erp_sku_id
        - id
        - name
    AdminPlanItemCommonShort:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        default:
          type: boolean
          readOnly: true
        comment:
          type: string
          nullable: true
          description: Public comment
          maxLength: 1000
        description:
          type: string
          nullable: true
          description: Description for internal use
          maxLength: 1000
      required:
        - default
        - id
    InvoiceItemIDsShort:
      type: object
      properties:
        invoice_id:
          type: integer
          readOnly: true
        invoice_date:
          type: string
          format: date
          readOnly: true
        invoice_item_id:
          type: integer
          readOnly: true
      required:
        - invoice_date
        - invoice_id
        - invoice_item_id
  securitySchemes:
    APIKey:
      description: >-
        API key for authentication. Make sure to include the word `apikey`,
        followed by a single space and then your token.

        Example: `apikey 1234$abcdef`
      type: apiKey
      in: header
      name: Authorization

````