Executes a payment using a Spending Delegate token.
| Name | Type | Required | Description |
|---|---|---|---|
X-Delegare-Merchant-Id | string | Yes | Your unique merchant identifier. |
X-Delegare-Api-Key | string | Yes | Your secret API key. |
| Name | Type | Required | Description |
|---|---|---|---|
delegateToken | string | Yes | The user-authorized delegate token (dtok_...). |
amountCents | number | Yes | Amount in cents (positive integer). |
currency | string | Yes | usd, usdc, or usdt. |
description | string | Yes | Max 500 characters. Shown on user statement. |
idempotencyKey | string | Yes | Unique key to prevent duplicate charges. |
metadata | object | No | Key-value pairs for your own tracking. |
completed, pending, or failed.fiat (Stripe) or crypto (Base).| Status | Code | Description |
|---|---|---|
| 400 | validation_error | Missing or malformed parameters. |
| 402 | per_tx | Amount exceeds the delegate’s per-transaction limit. |
| 402 | monthly | Charge would exceed the delegate’s monthly limit. |
| 402 | merchant_limit_exceeded | Amount exceeds merchant-specific limits. |
| 403 | merchant_inactive | Your merchant account is not active. |
| 429 | rate_limit_exceeded | Too many requests. |