---
title: "Replace tenant x402 settlement targets without rotating CDP secrets"
method: PUT
path: "/v1/payments/x402/targets"
tags: ["billing"]
---

# Replace tenant x402 settlement targets without rotating CDP secrets

`PUT /v1/payments/x402/targets`

## Request

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

## Request body

- X402SettlementTargetsRequest
  - `targets` X402SettlementTarget[], required
    - `network` 'base-sepolia' | 'base', required
    - `asset` string, required
    - `pay_to` string, required
    - `asset_decimals` integer, required
    - `eip712_domain` object: Present on readback: the asset's EIP-712 domain a buyer signs its transfer authorization against, derived from the asset and never configured. Ignored on write.
      - `name` string, required
      - `version` string, required
    - `recommended` boolean

## Response `200`

Configured x402 settlement targets.

- X402SettlementTargetsEnvelope
  - `ok` unknown, required
  - `grant_id` string
  - `outbound_configured` boolean, required
  - `targets` X402SettlementTarget[], required
    - `network` 'base-sepolia' | 'base', required
    - `asset` string, required
    - `pay_to` string, required
    - `asset_decimals` integer, required
    - `eip712_domain` object: Present on readback: the asset's EIP-712 domain a buyer signs its transfer authorization against, derived from the asset and never configured. Ignored on write.
      - `name` string, required
      - `version` string, required
    - `recommended` boolean

## Other responses

- `400`: Validation error.
- `401`: Unauthorized.
- `403`: Forbidden.
- `404`: Tenant x402 credential is not configured.
- `409`: Tenant credential is not BYO Coinbase CDP.
- `503`: x402 target management 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)
