Skip to main content
Enable stablecoin-to-stablecoin transfers, cross-chain swaps, and currency conversions (e.g., USDC to EURC).

Endpoint

POST /payment-intents/stablecoin
endpoint
Create a new payment intent.

Headers

x-client-key
string
required
Your application’s client key.
x-client-secret
string
required
Your application’s client secret.
idempotency-key
string
Unique UUID v4 to prevent duplicate payments. Keys expire after 24 hours.

Body

sourceCurrency
enum
required
Source currency (usdc, eurc).
sourceNetwork
enum
required
Source blockchain network (e.g., ethereum, polygon).
destinationCurrency
enum
Target currency. Defaults to sourceCurrency if omitted.
amount
string
Payment amount. Omit for flexible amounts.
customer_email
string
Customer email for notifications.

Examples

curl -X POST https://api.devdraft.ai/api/v0/payment-intents/stablecoin \
  -H "x-client-key: <KEY>" \
  -H "x-client-secret: <SECRET>" \
  -H "idempotency-key: <UUID>" \
  -d '{
    "sourceCurrency": "usdc",
    "sourceNetwork": "ethereum",
    "destinationCurrency": "eurc",
    "amount": "100.00",
    "customer_email": "user@example.com"
  }'