OmniDimension Reseller credits API

Fund your clients with credits at a rate you set, take unused minutes back, and read every move. Reseller accounts only.

GitHub OpenAPI

Operations 4

POST /reseller/credits/calculate Calculate credit operation #
POST /reseller/credits/transfer Transfer credits to a child #
POST /reseller/credits/revert Revert credits #
GET /reseller/credits/logs Credit transfer logs #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/omnidim-io:omnidim-io-reseller-credits-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

omnidim-io-reseller-credits-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OmniDimension Reseller credits API
  version: '1.0'
  description: 'Public REST API for the OmniDimension voice-agent platform. Use it

    to manage agents, dispatch calls, run bulk-call campaigns, manage

    knowledge bases, attach phone numbers, run agent simulations, and

    administer reseller accounts.'
  contact:
    name: OmniDimension
    url: https://omnidim.io
servers:
- url: https://omnidim.io/api/v1
  description: Production. `https://backend.omnidim.io/api/v1` also works and serves the same API.
security:
- BearerAuth: []
tags:
- name: Reseller credits
  description: 'Fund your clients with credits at a rate you set, take unused minutes

    back, and read every move. Reseller accounts only.'
paths:
  /reseller/credits/calculate:
    post:
      tags:
      - Reseller credits
      operationId: calculateCreditOperation
      summary: Calculate credit operation
      description: 'Preview the cost of a transfer or revert without moving any

        credits. Use this to confirm amounts before calling the

        transfer or revert endpoints. The response shape differs

        between forward transfers and reverts. See the examples.'
      x-codeSamples:
      - lang: python
        label: Python SDK
        source: "from omnidimension import Client\nclient = Client(api_key)\n\n# Nothing moves on this call. Preview before you commit.\nresponse = client.reseller.calculate_credits(minutes=100, cost_per_min=0.20)\n\n# A revert needs no rate: the client is deducted at theirs.\nresponse = client.reseller.calculate_credits(\n    minutes=40, is_revert=True, child_organization_id=5678\n)\n"
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - minutes
              properties:
                minutes:
                  type: integer
                  description: Number of minutes to calculate for.
                cost_per_min:
                  type: number
                  description: Rate per minute for a forward transfer (e.g. `0.20`). Not required when `is_revert` is `true`.
                  example: 0.2
                is_revert:
                  type: boolean
                  description: Set to `true` to calculate a revert instead of a forward transfer.
                  default: false
                child_organization_id:
                  type: integer
                  description: ID of the child organization to revert credits from. Required when `is_revert` is `true`.
            example:
              minutes: 100
              cost_per_min: 0.2
      responses:
        '200':
          description: Calculated outcome.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  my_cost:
                    type: number
                    description: Forward only. Amount deducted from the reseller balance.
                  user_credit:
                    type: number
                    description: Forward only. Credit value the child receives at `cost_per_min`.
                  profit:
                    type: number
                    description: Forward only. `user_credit - my_cost`.
                  margin:
                    type: number
                    description: Forward only. Per-minute margin.
                  reseller_balance:
                    type: number
                    description: Forward only. Current reseller balance before the transfer.
                  reseller_available_minutes:
                    type: integer
                    description: Forward only. Minutes the reseller could still transfer at its own rate.
                  new_reseller_balance:
                    type: number
                    description: Forward only. Reseller balance after the proposed transfer.
                  refund_amount:
                    type: number
                    description: Revert only. Credits added back to the reseller.
                  deduction_amount:
                    type: number
                    description: Revert only. Credits removed from the child at its current rate.
                  child_balance:
                    type: number
                    description: Revert only. Child balance before the revert.
                  child_available_minutes:
                    type: integer
                    description: Revert only. Minutes available in the child's balance.
                  new_child_balance:
                    type: number
                    description: Revert only. Child balance after the proposed revert.
                  reseller_rate:
                    type: number
                    description: Reseller's wholesale rate (cost per minute).
                  currency_symbol:
                    type: string
              examples:
                forward:
                  summary: Forward transfer (500 min at $0.20/min)
                  value:
                    success: true
                    my_cost: 45
                    user_credit: 50
                    profit: 5
                    margin: 0.01
                    reseller_rate: 0.09
                    reseller_balance: 66.113
                    reseller_available_minutes: 734
                    new_reseller_balance: 21.113
                    currency_symbol: $
                revert:
                  summary: Revert (10 min from a child)
                  value:
                    success: true
                    refund_amount: 0.9
                    deduction_amount: 2
                    reseller_rate: 0.09
                    child_balance: 10
                    child_available_minutes: 50
                    new_child_balance: 8
                    currency_symbol: $
  /reseller/credits/transfer:
    post:
      tags:
      - Reseller credits
      operationId: transferCreditsToChild
      summary: Transfer credits to a child
      description: 'Transfer minutes from your balance to a client, at the rate you set.


        Two different amounts move: your balance is debited at your own rate,

        and the client is credited at `cost_per_min`. The gap between them is

        your margin, so a `cost_per_min` below your own rate is refused as a

        loss rather than silently costing you money on every call.


        The target organization must be a direct child of your reseller. Use

        the calculate endpoint first to preview both amounts.'
      x-codeSamples:
      - lang: python
        label: Python SDK
        source: "from omnidimension import Client\nclient = Client(api_key)\n\n# Your balance is debited at your rate, the client is credited at\n# the rate you set here. The gap is your margin.\nresponse = client.reseller.transfer_credits(\n    to_organization_id=5678, minutes=100, cost_per_min=0.20\n)\nprint(response)\n"
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - to_organization_id
              - minutes
              - cost_per_min
              properties:
                to_organization_id:
                  type: integer
                  description: ID of the child organization to transfer credits to.
                minutes:
                  type: integer
                  description: Number of minutes to transfer.
                cost_per_min:
                  type: number
                  description: Rate per minute to charge the child organization (e.g. `0.20`).
                  example: 0.2
            example:
              to_organization_id: 4002
              minutes: 20
              cost_per_min: 0.2
      responses:
        '200':
          description: Transfer succeeded.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  new_from_balance:
                    type: number
                    description: Reseller balance after the transfer.
                  new_to_balance:
                    type: number
                    description: Child balance after the transfer.
                example:
                  success: true
                  message: Credits allocated successfully
                  new_from_balance: 59.813
                  new_to_balance: 14
  /reseller/credits/revert:
    post:
      tags:
      - Reseller credits
      operationId: revertCreditsFromChild
      summary: Revert credits
      description: 'Take unused minutes back from a client. The exact mirror of a

        transfer, so you do not pass a rate.


        The client is deducted at their own current rate, which is what they

        were charged, and you are refunded at your rate, which is what it cost

        you. Use the calculate endpoint first to preview both amounts.'
      x-codeSamples:
      - lang: python
        label: Python SDK
        source: 'from omnidimension import Client

          client = Client(api_key)


          # No rate: the client is deducted at their current one and you are

          # refunded at yours.

          response = client.reseller.revert_credits(from_organization_id=5678, minutes=40)

          print(response)

          '
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - from_organization_id
              - minutes
              properties:
                from_organization_id:
                  type: integer
                  description: ID of the child organization to revert credits from.
                minutes:
                  type: integer
                  description: Number of minutes to revert.
            example:
              from_organization_id: 4002
              minutes: 5
      responses:
        '200':
          description: Credits reverted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  new_from_balance:
                    type: number
                    description: Child balance after the revert.
                  new_to_balance:
                    type: number
                    description: Reseller balance after the revert.
                example:
                  success: true
                  message: Credits reverted successfully
                  new_from_balance: 13
                  new_to_balance: 60.263
  /reseller/credits/logs:
    get:
      tags:
      - Reseller credits
      operationId: getResellerCreditLogs
      summary: Credit transfer logs
      description: 'Paginated history of all credit transfers and reverts for the

        reseller account. Returns reverse-chronological order by

        default. Date filters are inclusive.'
      x-codeSamples:
      - lang: python
        label: Python SDK
        source: 'from omnidimension import Client

          client = Client(api_key)


          response = client.reseller.credit_logs(page=1, page_size=30)

          print(response)

          '
      parameters:
      - name: page
        in: query
        description: Page number for pagination.
        schema:
          type: integer
          default: 1
      - name: page_size
        in: query
        description: Number of records per page (max 100).
        schema:
          type: integer
          default: 20
      - name: date_from
        in: query
        description: Filter logs from this date in `YYYY-MM-DD` format (e.g. `2026-01-01`).
        schema:
          type: string
          format: date
      - name: date_to
        in: query
        description: Filter logs up to and including this date in `YYYY-MM-DD` format (e.g. `2026-03-31`).
        schema:
          type: string
          format: date
      responses:
        '200':
          description: Credit logs.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      logs:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: integer
                            transfer_reference:
                              type: string
                            reseller_organization:
                              type: object
                              properties:
                                id:
                                  type: integer
                                name:
                                  type: string
                            from_organization:
                              type: object
                              properties:
                                id:
                                  type: integer
                                name:
                                  type: string
                            to_organization:
                              type: object
                              properties:
                                id:
                                  type: integer
                                name:
                                  type: string
                            credit_amount:
                              type: number
                            cost_amount:
                              type: number
                            from_balance_before:
                              type: number
                            from_balance_after:
                              type: number
                            to_balance_before:
                              type: number
                            to_balance_after:
                              type: number
                            transfer_date:
                              type: string
                              format: date-time
                            performed_by:
                              type: object
                              properties:
                                id:
                                  type: integer
                                name:
                                  type: string
                                email:
                                  type: string
                                  format: email
                            status:
                              type: string
                            transaction_type:
                              type: string
                              description: One of `credit_transfer`, `credit_revert`, `channel_allocation`, or `channel_revert`.
                            channels_count:
                              type: integer
                            previous_channels:
                              type: integer
                            new_channels:
                              type: integer
                            notes:
                              type: string
                      total_records:
                        type: integer
                      page:
                        type: integer
                      page_size:
                        type: integer
                      total_pages:
                        type: integer
                example:
                  success: true
                  data:
                    logs:
                    - id: 4
                      transfer_reference: CT-20260115110440-5678-4002
                      reseller_organization:
                        id: 5678
                        name: Demo Reseller
                      from_organization:
                        id: 5678
                        name: Demo Reseller
                      to_organization:
                        id: 4002
                        name: Beta Co
                      credit_amount: 4
                      cost_amount: -1.8
                      from_balance_before: 61.613
                      from_balance_after: 59.813
                      to_balance_before: 10
                      to_balance_after: 14
                      transfer_date: '2026-01-15T16:34:40+05:30'
                      performed_by:
                        id: 1000
                        name: Demo Reseller Admin
                        email: admin@example.com
                      status: success
                      transaction_type: credit_transfer
                      channels_count: 0
                      previous_channels: 0
                      new_channels: 0
                      notes: Transfer of 20 minutes at 0.20/min
                    - id: 3
                      transfer_reference: CH-20260115110440-5678-4002
                      reseller_organization:
                        id: 5678
                        name: Demo Reseller
                      from_organization:
                        id: 5678
                        name: Demo Reseller
                      to_organization:
                        id: 4002
                        name: Beta Co
                      credit_amount: 0
                      cost_amount: 0
                      from_balance_before: 0
                      from_balance_after: 0
                      to_balance_before: 0
                      to_balance_after: 0
                      transfer_date: '2026-01-15T16:34:40+05:30'
                      performed_by:
                        id: 1000
                        name: Demo Reseller Admin
                        email: admin@example.com
                      status: success
                      transaction_type: channel_allocation
                      channels_count: 1
                      previous_channels: 4
                      new_channels: 5
                      notes: 'Concurrency limit changed from 4 to 5 (Delta: 1)'
                    total_records: 2
                    page: 1
                    page_size: 20
                    total_pages: 1
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Bearer token authentication. Obtain your API key from the

        OmniDimension dashboard.

        '