POST
/
v1
/
stablecoin
/
redeem
Redeem Stablecoin
curl --request POST \
  --url https://api.stateset.com/v1/stablecoin/redeem \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sender": "<string>",
  "amount": {
    "denom": "<string>",
    "amount": "<string>"
  },
  "destination": {
    "type": "<string>",
    "account_number": "<string>",
    "routing_number": "<string>",
    "swift_code": "<string>",
    "iban": "<string>",
    "bank_name": "<string>",
    "beneficiary_name": "<string>"
  },
  "reference_id": "<string>",
  "compliance": {
    "purpose": "<string>",
    "source_of_funds": "<string>"
  },
  "metadata": {}
}'
{
  "sender": "stateset1qypqxpq9qcrsszg2pvxq6rs0zqg3yyc5lzv7xu",
  "amount": {
    "denom": "ssusd",
    "amount": "1000000000"
  },
  "destination": {
    "type": "ach",
    "account_number": "123456789",
    "routing_number": "021000021",
    "bank_name": "JPMorgan Chase",
    "beneficiary_name": "John Doe"
  },
  "reference_id": "RED-2024-001234",
  "compliance": {
    "purpose": "business_operations",
    "source_of_funds": "sales_revenue"
  }
}
This endpoint allows verified users to redeem their stablecoins for fiat currency. Redemptions are subject to KYC/AML verification and minimum/maximum limits.

Authentication

This endpoint requires a valid API key with stablecoin:redeem permissions.
Authorization: Bearer YOUR_API_KEY

Request Body

sender
string
required
The blockchain address holding the stablecoins to redeemExample: stateset1qypqxpq9qcrsszg2pvxq6rs0zqg3yyc5lzv7xu
amount
object
required
The amount and denomination of stablecoins to redeem
destination
object
required
Destination for the fiat funds
reference_id
string
required
Unique reference ID for this redemption transaction
compliance
object
Compliance information
metadata
object
Additional metadata for the redemption

Response

id
string
Unique identifier for the redemption transaction
object
string
Object type, always “stablecoin_redemption”
sender
string
The sender address
amount
object
The redeemed amount
transaction_hash
string
Blockchain transaction hash for the burn
status
string
Status: “pending”, “processing”, “completed”, “failed”, “cancelled”
estimated_arrival
string
Estimated arrival date for fiat funds
fees
object
Fee breakdown
created_at
string
ISO 8601 timestamp of creation
completed_at
string
ISO 8601 timestamp of completion
{
  "sender": "stateset1qypqxpq9qcrsszg2pvxq6rs0zqg3yyc5lzv7xu",
  "amount": {
    "denom": "ssusd",
    "amount": "1000000000"
  },
  "destination": {
    "type": "ach",
    "account_number": "123456789",
    "routing_number": "021000021",
    "bank_name": "JPMorgan Chase",
    "beneficiary_name": "John Doe"
  },
  "reference_id": "RED-2024-001234",
  "compliance": {
    "purpose": "business_operations",
    "source_of_funds": "sales_revenue"
  }
}

Error Codes

CodeDescription
400Invalid request parameters
401Unauthorized - Invalid API key
403Forbidden - Account not verified for redemptions
404Sender address not found
409Conflict - Duplicate reference_id
422Insufficient balance or invalid amount
429Rate limit exceeded
500Internal server error

Redemption Limits

  • Minimum: $100 USD equivalent
  • Maximum: $1,000,000 USD per transaction
  • Daily Limit: $5,000,000 USD per account
  • Monthly Limit: Based on account tier

Processing Times

MethodEstimated Time
ACH1-3 business days
WireSame day - 1 business day
SWIFT1-5 business days
SEPA1-2 business days

Webhooks

Configure webhooks to receive real-time updates:
{
  "event": "stablecoin.redeemed",
  "data": {
    "id": "red_9h8g7f6e5d4c3b2a",
    "status": "completed",
    "amount": {
      "denom": "ssusd",
      "amount": "1000000000"
    }
  }
}

Code Examples

const axios = require('axios');

async function redeemStablecoin() {
  try {
    const response = await axios.post(
      'https://api.stateset.com/v1/stablecoin/redeem',
      {
        sender: 'stateset1qypqxpq9qcrsszg2pvxq6rs0zqg3yyc5lzv7xu',
        amount: {
          denom: 'ssusd',
          amount: '1000000000'
        },
        destination: {
          type: 'ach',
          account_number: '123456789',
          routing_number: '021000021',
          bank_name: 'JPMorgan Chase',
          beneficiary_name: 'John Doe'
        },
        reference_id: 'RED-2024-001234',
        compliance: {
          purpose: 'business_operations',
          source_of_funds: 'sales_revenue'
        }
      },
      {
        headers: {
          'Authorization': 'Bearer YOUR_API_KEY',
          'Content-Type': 'application/json'
        }
      }
    );
    
    console.log('Redemption initiated:', response.data);
  } catch (error) {
    console.error('Redemption failed:', error.response.data);
  }
}