---
title: "List pricing rule logs"
method: GET
path: "/invoice/{invoice_id}/pricing_rules_logs"
tags: ["Invoices"]
---

# List pricing rule logs

`GET /invoice/{invoice_id}/pricing_rules_logs`

## Request

- Base URL: `https://api.togai.com`
- URL: `https://api.togai.com/invoice/{invoice_id}/pricing_rules_logs`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/togaihq/apis/togai-apis/docs/invoice/:invoice_id/pricing_rules_logs/get.ts> (a function with typed inputs; its response is checked against the schema)

List pricing rule logs

## Path parameters

- `invoice_id` string, required

## Response `200`

Response for list Invoice Pricing Rules Logs Request

- PricingRulesLogsPaginatedResponse: Pricing Rules Logs response
  - `data` PricingRulesLog[], required
    - `id` string, required
    - `type` 'CONDITION_TRUE' | 'CONDITION_FALSE' | 'CONDITION_ERROR' | 'COMPUTATION_ERROR'
    - `order` integer, required
    - `changes` PricingRuleChangesLog, required: Pricing Rules Logs Changes
      - `key` string, required
      - `keyName` string
      - `oldRevenue` number, required
      - `newRevenue` number, required
      - `oldUsage` number
      - `newUsage` number
      - `errorMessage` string
    - `rule` PricingRuleInfo: Pricing Rule Info
      - `id` string, required
      - `name` string
      - `condition` string
      - `computation` string
    - `variablesValue` object, nullable

## Other responses

- `400`: Error response
- `401`: Error response
- `403`: Error response
- `404`: Error response
- `429`: Error response
- `default`: Error response

## Changes

- **2026-07-13** `442f5d8f4aa0`: 1 breaking, 1 warning, 4 info
  - removed the required property `data/items/ruleId` from the response with the `200` status
  - removed the optional property `data/items/ruleName` from the response with the `200` status
  - added the optional property `data/items/changes/keyName` to the response with the `200` status
  - added the optional property `data/items/rule` to the response with the `200` status
  - …2 more
- **2024-04-18** `f22fc08442b7`: 1 info
  - added the optional property `data/items/ruleName` to the response with the `200` status
- **2024-03-01** `6fb940b0dad9`: 1 info
  - endpoint added
- **2023-09-02** `6b13f6f47735`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/togaihq/apis/togai-apis/changes/invoice/:invoice_id/pricing_rules_logs/get.md)

---

[API](https://skmtc.dev/togaihq/apis/togai-apis.md) - [All operations](https://skmtc.dev/togaihq/apis/togai-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/togaihq/apis/togai-apis/revisions/442f5d8f4aa0?raw)
