---
title: "Quote a marketplace posting's x402 payment requirements"
method: POST
path: "/v1/payments/x402/quote"
tags: ["billing"]
---

# Quote a marketplace posting's x402 payment requirements

`POST /v1/payments/x402/quote`

## Request

- Base URL: `https://api.runx.ai`
- URL: `https://api.runx.ai/v1/payments/x402/quote`
- Auth: HTTP bearer

## Request body

- X402MarketplaceQuoteRequest
  - `resource` string, required
  - `description` string
  - `price_cents` integer, required
  - `fee_cents` integer, required
  - `funded_claim_slots` integer, required
  - `max_timeout_seconds` integer

## Response `200`

Canonical x402 payment requirements.

- X402QuoteEnvelope
  - `ok` unknown, required
  - `accepts` X402V2PaymentRequirements[], required
    - `amount` string, required
    - `asset` string, required
    - `extra` object, nullable
    - `maxTimeoutSeconds` number, required
    - `network` string, required
    - `payTo` string, required
    - `scheme` string, required
  - `payment_requirements` X402V2PaymentRequirements, required
    - `amount` string, required
    - `asset` string, required
    - `extra` object, nullable
    - `maxTimeoutSeconds` number, required
    - `network` string, required
    - `payTo` string, required
    - `scheme` string, required

## Other responses

- `400`: Validation error.
- `401`: Unauthorized.
- `503`: Tenant x402 marketplace rail is not configured.

---

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