Returns a single sell order executed by the user
Returns a single sell order executed by the user
Path parameters
-
single order ID
Query parameters
-
The wallet address supposedly associated with the order. This is used as a security measure preventing random order browsing.
GET /sell-orders/{orderId}
curl \
-X GET https://ramp-api.dev.stably.io/public/api/v1/sell-orders/{orderId}?walletAddress=string
Response examples (200)
{
"id": "cd7ad58d",
"userId": "user-52324447448",
"link": "https://www.crypto-provider-example.com/order/cd7ad58d-0fbb-4ed5-9fdd-832c1709ce85",
"crypto": {
"id": "eth",
"address": "0x000000000",
"network": "ethereum"
},
"fiatAmountOutUsd": "100",
"fiat": "USD",
"payment": "debit-credit-card",
"providerPayment": "Visa",
"cryptoAmountIn": "0.0001",
"fiatAmountOut": "100",
"exchangeRate": "0.0001",
"processingFees": [
{
"label": "fee label",
"fiatAmount:": "10"
}
],
"partnerFees": [
{
"label": "fee label",
"fiatAmount:": "10"
}
],
"createdAt": "2021-01-01T00:00:00Z",
"updatedAt": "2021-01-01T00:00:00Z",
"transactionHash": "0x000000000",
"walletAddress": "0x000000000",
"providerWalletAddress": "0x000000000",
"status": "PENDING",
"statusCode": "PROVIDER-PENDING-ORDER",
"statusReason": "The order is currently being processed.",
"partnerAccountId": "StablyRamp"
}
Response examples (500)
{
"error": "string",
"code": 42,
"message": "string"
}