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

# Read billing state for private or pooled-sync work.

` GET /v1/api/billing/jobs/{job_id} `

Read billing state for private or pooled-sync work.

## Servers

- ` https://b3iq.org ` — Public hosted gateway facade.

## Authentication

The operation accepts these alternatives. Schemes within one alternative are required together.

### Alternative 1

- ` CustomerIDHeader `: ` apiKey `

  - Credential: ` X-B3IQ-Customer-ID ` in ` header `

- ` CustomerTokenHeader `: ` apiKey `

  - Credential: ` X-B3IQ-Customer-Token ` in ` header `

## Parameters

### ` job_id ` (path, required)

- ` value `: type ` string `

  - minLength: ` 1 `

  - maxLength: ` 128 `

## Responses

### ` 200 ` — Authenticated billing status without encrypted request/response bodies.

Content type: ` application/json `

- ` value `: type ` object `

  - ` job_id `: type ` string `

  - ` work_type `: type ` string `

  - ` node_id `: type ` string `

  - ` model_id `: type ` string `

  - ` status `: type ` string `

  - ` error `: type ` unknown ` — A string value or null.

    - ` anyOf alternative 1 `: type ` string `

    - ` anyOf alternative 2 `: type ` null `

  - ` receipt_hash `: type ` unknown ` — A string value or null.

    - ` anyOf alternative 1 `: type ` string `

    - ` anyOf alternative 2 `: type ` null `

  - ` billing `: type ` unknown ` — Metering record for the job, or null when the row carries no customer.

    - ` oneOf alternative 1 `: type ` object `

      - ` customer_id `: type ` string `

      - ` policy_version `: type ` string `

      - ` quoted_price_wei `: type ` string `

      - ` reserved_price_wei `: type ` string `

      - ` payout_price_wei `: type ` string `

      - ` status `: type ` string `

    - ` oneOf alternative 2 `: type ` null `

  - ` webhook `: type ` unknown `

    - ` oneOf alternative 1 `: type ` object `

      - ` url `: type ` string `; format ` uri `

      - ` status `: type ` unknown ` — A string value or null.

        - ` anyOf alternative 1 `: type ` string `

        - ` anyOf alternative 2 `: type ` null `

      - ` attempts `: type ` integer `

      - ` last_error `: type ` unknown ` — A string value or null.

        - ` anyOf alternative 1 `: type ` string `

        - ` anyOf alternative 2 `: type ` null `

      - ` next_attempt_at `: type ` unknown `; format ` date-time ` — A string value or null.

        - ` anyOf alternative 1 `: type ` string `

        - ` anyOf alternative 2 `: type ` null `

      - ` last_attempt_at `: type ` unknown `; format ` date-time ` — A string value or null.

        - ` anyOf alternative 1 `: type ` string `

        - ` anyOf alternative 2 `: type ` null `

      - ` delivered_at `: type ` unknown `; format ` date-time ` — A string value or null.

        - ` anyOf alternative 1 `: type ` string `

        - ` anyOf alternative 2 `: type ` null `

    - ` oneOf alternative 2 `: type ` null `

  - ` created_at `: type ` string `; format ` date-time `

  - ` claimed_at `: type ` unknown `; format ` date-time ` — A string value or null.

    - ` anyOf alternative 1 `: type ` string `

    - ` anyOf alternative 2 `: type ` null `

  - ` completed_at `: type ` unknown `; format ` date-time ` — A string value or null.

    - ` anyOf alternative 1 `: type ` string `

    - ` anyOf alternative 2 `: type ` null `

### ` default ` — B3IQ-native problem response.

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` error `

  - ` error `: type ` object `

    - Required fields: ` status `, ` title `, ` detail `

    - ` status `: type ` integer `

    - ` title `: type ` string `

    - ` detail `: type ` string `

    - ` code `: type ` string ` — Stable B3IQ code when present. See docs/error-codes.md.

## Request examples

### cURL

```curl
curl -X GET 'https://b3iq.org/v1/api/billing/jobs/string' \
  -H 'X-B3IQ-Customer-ID: YOUR_API_KEY'
```

### JavaScript

```javascript
const response = await fetch('https://b3iq.org/v1/api/billing/jobs/string', {
  method: 'GET',
  headers: {
      "X-B3IQ-Customer-ID": "YOUR_API_KEY"
  }
});

const data = await response.json();
console.log(data);
```