---
title: "Retrieve a settlement"
url: "https://real-estate-agency.apim.eu/apis/chargeback-settlement/versions/109ed889-6e58-4a7d-be59-d2717eab4852/operations/getSettlement"
---

> Full API specification: https://real-estate-agency.apim.eu/apis/chargeback-settlement/versions/109ed889-6e58-4a7d-be59-d2717eab4852.md

# Retrieve a settlement

`GET` `/settlements/{settlementId}`

Operation ID: `getSettlement`

## Path parameters

- `settlementId` (string, required)

## Responses

- `200` - Settlement
- `404` - Record not found

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Usage Chargeback & Settlement
  version: 1.0.0
servers:
  - url: https://api.nexora.example/v1
    description: Production
  - url: https://sandbox.api.nexora.example/v1
    description: Sandbox
paths:
  /settlements/{settlementId}:
    parameters:
      - name: settlementId
        in: path
        required: true
        schema:
          type: string
          example: stl_7c53
    get:
      tags:
        - Settlements
      summary: Retrieve a settlement
      operationId: getSettlement
      responses:
        "200":
          description: Settlement
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Settlement"
        "404":
          $ref: "#/components/responses/NotFound"
security:
  - apiKey: []
components:
  schemas:
    Settlement:
      type: object
      properties:
        id:
          type: string
          example: stl_7c53
        agent_id:
          type: string
          example: agt_8f2c1a
        status:
          $ref: "#/components/schemas/SettlementStatus"
        usage_type:
          $ref: "#/components/schemas/UsageType"
        billing_basis_usd:
          type: number
          format: float
          example: 6380
        line_items:
          type: array
          items:
            $ref: "#/components/schemas/LineItem"
        invoice_id:
          type: string
          example: inv_a920
        due_date:
          type: string
          format: date
          example: 2026-09-14
        paid_usd:
          type: number
          format: float
          example: 0
        created_at:
          type: string
          format: date-time
          example: 2026-08-15T07:30:00Z
    SettlementStatus:
      type: string
      enum:
        - draft
        - open
        - partially_paid
        - paid
        - canceled
      example: open
    UsageType:
      type: string
      enum:
        - standard
        - burst
        - reserved
      example: standard
    LineItem:
      type: object
      properties:
        payer:
          type: string
          enum:
            - consuming_team
            - platform_subsidy
            - partner_cost_center
            - shared_services
        rate_percent:
          type: number
          format: float
          example: 12
        net_usd:
          type: number
          format: float
          example: 765.6
        overhead_usd:
          type: number
          format: float
          example: 61.25
        total_usd:
          type: number
          format: float
          example: 826.85
    Error:
      type: object
      description: Uniform error format across all Nexora AI APIs.
      required:
        - code
        - message
      properties:
        code:
          type: string
          example: validation_failed
        message:
          type: string
          example: The billing basis is required to calculate the chargeback.
        details:
          type: array
          items:
            $ref: "#/components/schemas/ErrorDetail"
    ErrorDetail:
      type: object
      properties:
        field:
          type: string
          example: chargeback_rate_percent
        reason:
          type: string
          example: missing
  responses:
    NotFound:
      description: Record not found
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/Error"
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: |
        Every call carries an API key in the `apikey` header. You generate the
        key in the Nexora AI portal under "My Apps"; it's shown exactly once.

        Each key has the scopes it's allowed to use attached to it. If one is
        missing, the API responds with `403` and `code: "scope_missing"`; the
        missing scope is in `details[].field`.
```
