curl --request GET \
--url https://mainnet.anyspend.com/orders{
"success": true,
"message": "Get orders by creator successfully",
"data": [
{
"id": "41fa39bf-1722-4735-9f36-58813b592854",
"recipientAddress": "0x55c71fca5e01cf246718748ae540473e608d0282",
"globalAddress": "0xcc524c104c2d52f9712db96b4e34cd85d20a4348",
"srcChain": 8453,
"dstChain": 8453,
"srcTokenAddress": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"dstTokenAddress": "0x0000000000000000000000000000000000000000",
"srcAmount": "4430000",
"status": "expired",
"errorDetails": null,
"createdAt": 1752244063160,
"expiredAt": 1752244963160,
"onrampMetadata": {
"country": "SG",
"vendor": "stripe-web2",
"paymentMethod": "",
"redirectUrl": "https://www.anyspend.com",
"stripeAmountInCents": 500
},
"creatorAddress": "0x55c71fca5e01cf246718748ae540473e608d0282",
"partnerId": null,
"oneClickBuyUrl": null,
"stripePaymentIntentId": "pi_3RjhvPJnoDg53PsP0yKq1gWq",
"settlement": null,
"type": "swap",
"payload": {
"expectedDstAmount": "1667766525695385"
},
"metadata": {
"srcToken": {
"chainId": 8453,
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 6,
"metadata": {
"logoURI": "https://polygonscan.com/token/images/usdc_32.png"
}
},
"dstToken": {
"chainId": 8453,
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"name": "Ether",
"decimals": 18,
"metadata": {
"logoURI": "https://assets.relay.link/icons/1/light.png"
}
}
}
},
{
"id": "53f6901a-e840-446c-b2ee-0d8a606cfa4c",
"recipientAddress": "0x55c71fca5e01cf246718748ae540473e608d0282",
"globalAddress": "0x27ca6194e092bd8e316c4a6bfba0466189a0ac51",
"srcChain": 8453,
"dstChain": 8453,
"srcTokenAddress": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"dstTokenAddress": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"srcAmount": "10000",
"status": "refunding",
"errorDetails": "Error execute: Failed to receive a successful response for solver status check with hash '0xb01d2f97ad57182d7c6ad24dc048f035b97813bd974b6cc968c8d7f8bfa01623' after 300 attempt(s).",
"createdAt": 1752230834066,
"expiredAt": 1752231734066,
"onrampMetadata": null,
"creatorAddress": "0x55c71fca5e01cf246718748ae540473e608d0282",
"partnerId": null,
"oneClickBuyUrl": null,
"stripePaymentIntentId": null,
"settlement": null,
"type": "swap",
"payload": {
"expectedDstAmount": "10000"
},
"metadata": {
"srcToken": {
"chainId": 8453,
"address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 6,
"metadata": {
"logoURI": "https://coin-images.coingecko.com/coins/images/6319/large/usdc.png?1696506694"
}
},
"dstToken": {
"chainId": 8453,
"address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 6,
"metadata": {
"logoURI": "https://coin-images.coingecko.com/coins/images/6319/large/usdc.png?1696506694"
}
}
}
}
],
"statusCode": 200
}Retrieves all orders created by a specific address
curl --request GET \
--url https://mainnet.anyspend.com/orders{
"success": true,
"message": "Get orders by creator successfully",
"data": [
{
"id": "41fa39bf-1722-4735-9f36-58813b592854",
"recipientAddress": "0x55c71fca5e01cf246718748ae540473e608d0282",
"globalAddress": "0xcc524c104c2d52f9712db96b4e34cd85d20a4348",
"srcChain": 8453,
"dstChain": 8453,
"srcTokenAddress": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"dstTokenAddress": "0x0000000000000000000000000000000000000000",
"srcAmount": "4430000",
"status": "expired",
"errorDetails": null,
"createdAt": 1752244063160,
"expiredAt": 1752244963160,
"onrampMetadata": {
"country": "SG",
"vendor": "stripe-web2",
"paymentMethod": "",
"redirectUrl": "https://www.anyspend.com",
"stripeAmountInCents": 500
},
"creatorAddress": "0x55c71fca5e01cf246718748ae540473e608d0282",
"partnerId": null,
"oneClickBuyUrl": null,
"stripePaymentIntentId": "pi_3RjhvPJnoDg53PsP0yKq1gWq",
"settlement": null,
"type": "swap",
"payload": {
"expectedDstAmount": "1667766525695385"
},
"metadata": {
"srcToken": {
"chainId": 8453,
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 6,
"metadata": {
"logoURI": "https://polygonscan.com/token/images/usdc_32.png"
}
},
"dstToken": {
"chainId": 8453,
"address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"name": "Ether",
"decimals": 18,
"metadata": {
"logoURI": "https://assets.relay.link/icons/1/light.png"
}
}
}
},
{
"id": "53f6901a-e840-446c-b2ee-0d8a606cfa4c",
"recipientAddress": "0x55c71fca5e01cf246718748ae540473e608d0282",
"globalAddress": "0x27ca6194e092bd8e316c4a6bfba0466189a0ac51",
"srcChain": 8453,
"dstChain": 8453,
"srcTokenAddress": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"dstTokenAddress": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"srcAmount": "10000",
"status": "refunding",
"errorDetails": "Error execute: Failed to receive a successful response for solver status check with hash '0xb01d2f97ad57182d7c6ad24dc048f035b97813bd974b6cc968c8d7f8bfa01623' after 300 attempt(s).",
"createdAt": 1752230834066,
"expiredAt": 1752231734066,
"onrampMetadata": null,
"creatorAddress": "0x55c71fca5e01cf246718748ae540473e608d0282",
"partnerId": null,
"oneClickBuyUrl": null,
"stripePaymentIntentId": null,
"settlement": null,
"type": "swap",
"payload": {
"expectedDstAmount": "10000"
},
"metadata": {
"srcToken": {
"chainId": 8453,
"address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 6,
"metadata": {
"logoURI": "https://coin-images.coingecko.com/coins/images/6319/large/usdc.png?1696506694"
}
},
"dstToken": {
"chainId": 8453,
"address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 6,
"metadata": {
"logoURI": "https://coin-images.coingecko.com/coins/images/6319/large/usdc.png?1696506694"
}
}
}
}
],
"statusCode": 200
}Address of the order creator
Maximum number of orders to return
Number of orders to skip
Orders retrieved successfully
true
"Get orders by creator successfully"
Array of orders
Base order fields
Show child attributes
Unique order identifier
"5392f7a7-d472-4d6b-9848-bd07117fb82d"
Address to receive tokens/NFT/etc
"0xb34facb90a200251318e8841c05102366f2158cf"
Global wallet address handling the order
"0xa640beaa78eeb64bb269f2baf8202b9a7316e123"
Source chain ID
8453
Destination chain ID
8453
Source token contract address
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
Destination token contract address
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
Source amount
"93354000"
Current order status
scanning_deposit_transaction, waiting_stripe_payment, expired, sending_token_from_vault, relay, executing, executed, refunding, refunded, failure "executed"
Error details if order failed
Creation timestamp
1752505794679
Expiration timestamp
1752506694679
Timestamp when the order was filled/executed
Timestamp when the deposit was received
Optional creator address
"0xb34facb90a200251318e8841c05102366f2158cf"
Optional partner identifier
Onramp configuration if used
Show child attributes
Country code
"US"
Onramp vendor used
coinbase, stripe, stripe-web2 "stripe-web2"
Payment method used
""
Redirect URL after payment
"https://www.anyspend.com"
Stripe payment amount in cents
9900
Optional IP address for location detection. Required for Stripe onramp requests in production and omitted from standard order responses.
"192.168.1.1"
Quick purchase URL if available
Stripe payment intent ID if using Stripe
"pi_3Rko0sJnoDg53PsP0PDLsHkR"
Settlement information for executed orders
Show child attributes
Actual received amount after execution (only for swap/hypeduel orders). Optional - only present for swap/hypeduel orders.
"990000"
Complete relay API response data. Contains transaction details, state changes, fees, and execution status. Optional - can be backfilled by querying Relay API /requests/v2 endpoint.
{
"status": "success",
"metadata": { "currencyOut": { "amount": "990000" } }
}Order type
swap Swap metadata for display purposes
Show child attributes
Token details
Show child attributes
Token chain ID
8453
Token contract address
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
Token symbol
"USDC"
Token name
"USD Coin"
Token decimals
6
Token details
Show child attributes
Token chain ID
8453
Token contract address
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
Token symbol
"USDC"
Token name
"USD Coin"
Token decimals
6
Optional client reference identifier for tracking purposes (alphanumeric, hyphens, and underscores only, max 255 chars)
255Fee structure for the order including Stripe and AnySpend fees
Show child attributes
Fee type identifier
standard_fee Fee version number
1
Token contract address used to check balance for whale discount (B3 token)
"0xb3b32f9f8827d4634fe7d973fa1034ec9fddb3b3"
Recipient's B3 token balance
"302843673392800000000000"
AnySpend base fee in basis points before discounts
80
Whale discount in basis points based on B3 balance
5000
Partner discount in basis points
0
Final fee in basis points after all discounts applied
40
200