---
title: "How to buy a session by x402 (Q+Pay format)"
method: GET
path: "/v1/x402"
---

# How to buy a session by x402 (Q+Pay format)

`GET /v1/x402`

## Request

- Base URL: `https://qmax.exchange/api`
- URL: `https://qmax.exchange/api/v1/x402`
- Auth: none declared

Describes the x402 offer: scheme exact, network qubic:mainnet, asset QUBIC, the QPayhub address to pay, the seller id, and the session's price and length. Nothing here costs anything. Absent (404) when the operator has turned x402 off.

## Response `200`

{ x402Version, kinds, asset, payTo, sellerId, session: { priceQu, seconds, resourceId }, how }

## Other responses

- `404`: x402 is not enabled on this server

---

[API](https://skmtc.dev/qmax/apis/qmax-api.md) · [All operations](https://skmtc.dev/qmax/apis/qmax-api/llms.txt) · [OpenAPI document](https://skmtc.dev/qmax/apis/qmax-api/revisions/af70e2813a7a?raw)
