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",
"type": "swap",
"payload": {
"expectedDstAmount": "1667766525695385",
"actualDstAmount": null
},
"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,
"type": "swap",
"payload": {
"expectedDstAmount": "10000",
"actualDstAmount": null
},
"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",
"type": "swap",
"payload": {
"expectedDstAmount": "1667766525695385",
"actualDstAmount": null
},
"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,
"type": "swap",
"payload": {
"expectedDstAmount": "10000",
"actualDstAmount": null
},
"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
}
Optional address of the order creator (if not provided, returns all orders)
Maximum number of orders to return
Number of orders to skip
Orders retrieved successfully
The response is of type object
.