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
The blockchain address holding the stablecoins to redeem Example: stateset1qypqxpq9qcrsszg2pvxq6rs0zqg3yyc5lzv7xu
The amount and denomination of stablecoins to redeem The denomination of the stablecoin (e.g., “ssusd”)
The amount to redeem in the smallest unit (e.g., “1000000” for 1 ssUSD with 6 decimals)
Destination for the fiat funds Type of destination: “bank_wire”, “ach”, “swift”, “sepa”
Destination account number
Routing number (required for ACH)
SWIFT/BIC code (required for SWIFT transfers)
IBAN (required for SEPA transfers)
Name of the receiving bank
Name of the account holder
Unique reference ID for this redemption transaction
Compliance information Source of the stablecoins being redeemed
Additional metadata for the redemption
Response
Unique identifier for the redemption transaction
Object type, always “stablecoin_redemption”
The redeemed amount The denomination of the stablecoin
Human-readable amount (e.g., “1000.00 ssUSD”)
Fiat currency code (e.g., “USD”)
Blockchain transaction hash for the burn
Status: “pending”, “processing”, “completed”, “failed”, “cancelled”
Estimated arrival date for fiat funds
ISO 8601 timestamp of creation
ISO 8601 timestamp of completion
Example Request
Example Response
{
"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
Code Description 400
Invalid request parameters 401
Unauthorized - Invalid API key 403
Forbidden - Account not verified for redemptions 404
Sender address not found 409
Conflict - Duplicate reference_id 422
Insufficient balance or invalid amount 429
Rate limit exceeded 500
Internal 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
Method Estimated Time ACH 1-3 business days Wire Same day - 1 business day SWIFT 1-5 business days SEPA 1-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 );
}
}