XP

XP Balance API

Account balance

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /api/v1/exchange/balance Get account balance #

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/xp-tickets:xp-tickets-balance-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

xp-tickets-balance-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: XP Exchange Balance API
  version: 0.1.0
  description: 'API for partners to bid on and list tickets.


    ### Authentication

    All requests are authenticated with an API key passed as a Bearer token

    in the `Authorization` header: `Authorization: Bearer xpk_`.

    The only exception is `GET /api/v1/exchange/health`, which is

    unauthenticated.


    ### Content type

    `POST` endpoints require a JSON request body with the

    `Content-Type: application/json` header.


    ### Date / time semantics

    The `start_datetime` field (and its `start_datetime_from` /

    `start_datetime_to` filters) and every `*_at` timestamp use UTC,

    ISO 8601, with a trailing `Z` (e.g. `2026-05-12T10:00:00Z`). Query

    filters accept the same format and treat an explicit timezone offset

    (e.g. `+05:00`) as equivalent; values without a timezone are

    interpreted as UTC.


    `start_datetime_local` (and its `start_datetime_local_from` /

    `start_datetime_local_to` filters) is wall-clock time at the venue

    with no offset (e.g. `2026-05-12T10:00:00`).


    ### Example IDs

    All `prf_*`, `vnu_*`, `evt_*`, `rfb_*`, and `bid_*` identifiers in

    this documentation (request paths, request bodies, response payloads,

    schema `example` fields) are illustrative placeholders. They are not

    guaranteed to resolve in production — substitute IDs returned from

    your own `/performers`, `/venues`, `/events`, `/request-for-bids`,

    and `/bids` calls.


    ### Listings by partner_ref

    Every `/listings/{id}` route also takes your own `partner_ref` in

    place of the `lst_` id: exact match, URL-encoded. A ref containing `/`

    cannot be addressed this way; use its `lst_` id.


    ### Request IDs

    Every response includes an `X-Request-Id` header (a UUID) that

    uniquely identifies the request in our logs. Error responses also

    echo the same value as `error.request_id` in the JSON body.


    ### Repeated query parameters

    A query parameter may appear at most once per request. Repeating any

    parameter — including multi-value filters — is rejected with

    `400 invalid_parameter`. Pass multi-value filters as a single

    comma-separated value: `?event_ids=evt_a,evt_b`, not

    `?event_ids=evt_a&event_ids=evt_b`.


    ### Multi-value ID filter size

    Each ID-list filter (`event_ids`, `venue_ids`, `performer_ids`,

    `request_for_bids_ids`, `ids`) is capped at **100 IDs per filter** per

    request; `partner_refs` at 50. Exceeding the cap is rejected with

    `400 invalid_parameter` — split into multiple requests if you need more.


    The total request URL is also bounded by upstream limits (~4 KB).

    Combining several ID filters at or near the per-filter cap in one

    request can exceed that ceiling and produce an HTML 400 from the

    application server instead of the usual JSON envelope. If you need

    to combine many filters, prefer issuing separate requests per

    filter dimension and intersecting the results client-side.'
servers:
- url: https://api.xp.tickets
  description: Production
security:
- bearer_auth: []
tags:
- name: Balance
  description: Account balance
paths:
  /api/v1/exchange/balance:
    get:
      tags:
      - Balance
      summary: Get account balance
      description: 'Your account''s current balance, in integer USD cents. This is

        the balance the 5x open-bid cap on `POST /bids` is computed

        against. Requires financial onboarding (see `POST /bids`).'
      operationId: getBalance
      responses:
        '200':
          description: Current account balance
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Balance'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          description: '`financial_onboarding_incomplete` — financial onboarding is not complete (see `POST /bids`).

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          description: '`account_balance_unavailable` — the balance could not be read; retry shortly.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  responses:
    Unauthorized:
      description: "Authentication failure. The `error.code` distinguishes:\n- `unauthenticated` — `Authorization` header is missing or not a\n  `Bearer xpk_...` token.\n- `invalid_api_key` — header was well-formed but the key is\n  unknown, revoked, or otherwise not accepted.\n"
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalServerError:
      description: Unexpected server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Rate limit exceeded (error code `rate_limited`)
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds to wait before retrying.
        RateLimit-Limit:
          schema:
            type: integer
          description: Requests allowed per rolling 60-second window.
        RateLimit-Remaining:
          schema:
            type: integer
          description: Requests remaining in the window.
        RateLimit-Reset:
          schema:
            type: integer
          description: Seconds until capacity frees.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Balance:
      type: object
      required:
      - balance
      - currency
      properties:
        balance:
          type: integer
          description: Current balance in integer USD cents.
          example: 250000
        currency:
          type: string
          enum:
          - usd
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - request_id
          properties:
            code:
              type: string
              description: Stable machine-readable error code.
              example: invalid_parameter
            message:
              type: string
              description: Human-readable error description.
              example: '`limit` must be between 1 and 100'
            param:
              type: string
              description: The offending parameter, if applicable.
              example: limit
            details:
              type: object
              description: 'Machine-readable context, documented per error code.

                Currently only on `bid_below_minimum_increment`: the lot''s

                `top_open_bid` and `min_bid_to_lead`, same shapes as on

                the `RequestForBids` object.

                '
            request_id:
              type: string
              format: uuid
              description: 'Same UUID as the `X-Request-Id` response header (see the

                **Request IDs** section of the API overview). Echoed in

                every error body so partners that only log the response

                JSON still capture it. Quote it when reporting issues —

                we can resolve to the exact request in our logs from a

                request ID alone.

                '
              example: 8e7c2f70-9c4f-4ae5-a4f0-d8a7e3a1c2b3
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: API key
x-tagGroups:
- name: Guides
  tags:
  - getting-started
  - getting-an-api-key
  - authentication
  - rate-limits
  - webhooks
- name: Recipes
  tags:
  - bid-on-performer-event
  - poll-venue-for-new-rfbs
  - map-your-catalog
  - create-listing-and-accept-bid
  - match-event-and-create-listing
  - create-test-listing-and-fulfill-order
- name: API Reference
  tags:
  - tickets
  - events
  - venues
  - performers
  - request-for-bids
  - bids
  - listings
  - balance
  - health