> ## Documentation Index
> Fetch the complete documentation index at: https://devdraft.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Stablecoin Payment Intent

> Transfer stablecoins across networks.

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

## Endpoint

<ParamField path="POST /payment-intents/stablecoin" type="endpoint">
  Create a new payment intent.
</ParamField>

### Headers

<ParamField header="x-client-key" type="string" required>
  Your application's client key.
</ParamField>

<ParamField header="x-client-secret" type="string" required>
  Your application's client secret.
</ParamField>

<ParamField header="idempotency-key" type="string">
  Unique UUID v4 to prevent duplicate payments. Keys expire after 24 hours.
</ParamField>

### Body

<ParamField body="sourceCurrency" type="enum" required>
  Source currency (`usdc`, `eurc`).
</ParamField>

<ParamField body="sourceNetwork" type="enum" required>
  Source blockchain network (e.g., `ethereum`, `polygon`).
</ParamField>

<ParamField body="destinationCurrency" type="enum">
  Target currency. Defaults to `sourceCurrency` if omitted.
</ParamField>

<ParamField body="amount" type="string">
  Payment amount. Omit for flexible amounts.
</ParamField>

<ParamField body="customer_email" type="string">
  Customer email for notifications.
</ParamField>

## Examples

<CodeGroup>
  ```bash Cross-Chain theme={null}
  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"
    }'
  ```
</CodeGroup>
