Create crypto settlements

Register one or more crypto settlement destinations for the merchant. Each entry pairs a CAIP-19 asset with a CAIP-10 destination wallet on the same chain. Each (merchant, asset) pair must be unique — registering the same asset twice returns settlement_asset_conflict. Crypto and fiat settlements can coexist on the same merchant. Assets must be enabled for the merchant; if any is not, the whole request is rejected with token_not_enabled naming every offending asset. An asset on a chain where payments are not rolled out for this merchant yet is rejected the same way. Stellar destinations must be ready to receive their asset — the account must exist on the ledger and hold a trustline for the asset's issuer — otherwise the request is rejected with settlement_destination_not_ready.

POST
/v1/merchants/{merchantId}/settlements/crypto

Authorization

API Key
headerApi-Key<token>

Path Parameters

merchantId*string

Header Parameters

Idempotency-Key*string

Unique key to ensure idempotent request processing. Max 255 characters.

Lengthlength <= 255

Request Body

application/json
  1. body
settlements*array<>

List of asset/destination pairs to register. Up to 50 entries per request.

Items1 <= items <= 50

Response Body

Crypto settlements created

application/json
  1. response
settlements*array<>
curl -X POST 'https://api.pay.walletconnect.com/v1/merchants/string/settlements/crypto' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "settlements": [    {      "asset": "eip155:8453/erc20:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",      "destination": "eip155:8453:0x1234567890abcdef1234567890abcdef12345678"    },    {      "asset": "eip155:1/erc20:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",      "destination": "eip155:1:0x1234567890abcdef1234567890abcdef12345678"    }  ]}'
{  "settlements": [    {      "id": "crypto_Xk7nWp8XmQj2YrTv6",      "asset": "eip155:8453/erc20:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",      "destination": "eip155:8453:0x1234567890abcdef1234567890abcdef12345678"    }  ]}