---
title: "Fund a marketplace posting through tenant Coinbase CDP x402"
method: POST
path: "/v1/payments/x402/fund"
tags: ["billing"]
---

# Fund a marketplace posting through tenant Coinbase CDP x402

`POST /v1/payments/x402/fund`

## Request

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

## Request body

- X402MarketplaceFundingRequest
  - `principal_id` string
  - `idempotency_key` string, required
  - `posting_id` string, required
  - `payer_ref` string, required
  - `payee_ref` string, required
  - `currency` string, required
  - `price_cents` integer, required
  - `fee_cents` integer, required
  - `claim_limit` integer, required
  - `funded_claim_slots` integer, required
  - `quote_digest` string
  - `quote_expires_at` string, date-time
  - `refund_policy_ref` string
  - `payment_payload` X402V2PaymentPayload, required
    - `accepted` object, required
      - `amount` string, required
      - `asset` string, required
      - `extra` object, nullable
      - `maxTimeoutSeconds` number, required
      - `network` string, required
      - `payTo` string, required
      - `scheme` string, required
    - `extensions` object, nullable
    - `payload` object, required
    - `resource` object, nullable
      - `description` string, nullable
      - `iconUrl` string, nullable
      - `mimeType` string, nullable
      - `serviceName` string, nullable
      - `tags` string[], nullable
      - `url` string, required
    - `x402Version` 2, 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

## Response `200`

Sealed marketplace funding receipt.

- MarketplaceReceiptEnvelope
  - `ok` unknown, required
  - `receipt` object, required
  - `idempotent_replay` boolean, required

## Other responses

- `400`: Validation error.
- `401`: Unauthorized.
- `402`: x402 payment verification failed.
- `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)
