Pre-release: the public API is not live yet and has no base URL. Routes and fields are in the OpenAPI contract, at /openapi.yaml.

Skip to Content
xaseDocumentation

Introduction

What the API does, the conventions it follows, and how to read these docs.

Xase is a payments platform for people who sell online. The first version accepts PIX only: you create a charge, the payer pays the QR code, and the platform tells your server when the money arrives. When you need to give the money back, you refund the charge. To sell without building a payment page, you create an offer and share the address of its checkout.

What the first version covers

ResourceWhat it doesPage
ChargesCreate, read and list PIX chargesCharges
RefundsSend the amount of a paid charge back to the payerRefunds
DisputesFollow a payment that the payer disputed at their bankDisputes
OffersPut something on sale at a fixed price, with a checkout page that creates the chargesOffers
BalanceRead what the sales left: available, pending, held by a dispute and on its way outBalance
WebhooksNotify your server of every state changeWebhooks
Test modeRun the whole integration without real moneyTest mode

The statement and the payouts are in the dashboard, under Saldo. They are not part of the API, and have no page here.

The contract

The API is described by an OpenAPI 3.1 document, served at /openapi.yaml. It is the source of truth for routes, fields and limits. These pages explain behavior and point to it.

  • A request with a field, a query parameter or a route that is not in the contract is refused.
  • A response may gain fields over time. Ignore the ones you do not know.

Conventions

  • HTTP and JSON, under the /v1 prefix. No SDK is required.
  • Money is an integer number of cents. BRL 10.00 is 1000. Never a floating-point number.
  • Time is UTC, in the RFC 3339 format.
  • Identifiers carry a type prefix, such as chg_… for a charge. See Identifiers.
  • Every response carries the request id in the X-Request-Id header. Quote it when asking for support.
  • Errors use application/problem+json (RFC 9457), and your code reads the code member. See Errors.
  • Creating a charge and asking for a refund are idempotent: both require the Idempotency-Key header. See Idempotency.

For AI agents

Everything in the HTML pages is also served as plain text:

FileContent
/llms.txtIndex with a link to the Markdown of every page
/llms-full.txtEvery page in a single file
<page>.mdThe Markdown of one page, such as /docs/charges.md
/openapi.yamlThe OpenAPI contract

A request to any page with the header Accept: text/markdown gets the Markdown instead of the HTML.

An agent can also call the API itself, through the MCP server: every operation of the contract is a tool.

On this page