Orders
Returns Order Information
To try these services, an Authorization token must be provided as a BearerToken header. The Autherization token can be obtained in the /auth service.
GET
/rest/orders/{orderId}
Authorization*
curl --request GET \
--url https://api-test.koywe.com/rest/orders/{orderId} \
--header 'Authorization: <authorization>'
{
"amountIn": "25000",
"amountOut": 32.171150520770496,
"date": {
"confirmationDate": "2023-01-17T16:37:22.626Z",
"deliveryDate": "string",
"executionDate": "string",
"paymentDate": "string"
},
"destinationAddress": "0x40f9bf922c23c43acede50Ab4425280C0ffBD697",
"email": "example@gmail.com",
"exchangeRate": 746.01,
"koyweFee": "1000",
"logoIn": "urlExample.com/currencies/CLP.svg",
"logoOut": "urlExmaple.com/currencies/MATIC.svg",
"metadata": "string",
"networkFee": "1000",
"orderId": "b88f4ed0-10a2-412f-be3e-b5e47abe9b50",
"outReceipt": "98abd8a6dbdba6d4b",
"paymentMethodId": "6294d815d2b5f912da43e699",
"quoteId": "string",
"status": "REJECTED",
"symbolIn": "CLP",
"symbolOut": "MATIC"
}
Authorizations
Authorizationheaderrequired
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
orderIdrequired
string
Order's identifier.
Response
200 - application/json
amountIn
number
amountOut
number
date
object
destinationAddress
string
email
string
exchangeRate
number
koyweFee
number
logoIn
string
logoOut
string
metadata
string
networkFee
number
orderId
string
outReceipt
string
paymentMethodId
string
quoteId
string
status
string
symbolIn
string
symbolOut
string
curl --request GET \
--url https://api-test.koywe.com/rest/orders/{orderId} \
--header 'Authorization: <authorization>'
{
"amountIn": "25000",
"amountOut": 32.171150520770496,
"date": {
"confirmationDate": "2023-01-17T16:37:22.626Z",
"deliveryDate": "string",
"executionDate": "string",
"paymentDate": "string"
},
"destinationAddress": "0x40f9bf922c23c43acede50Ab4425280C0ffBD697",
"email": "example@gmail.com",
"exchangeRate": 746.01,
"koyweFee": "1000",
"logoIn": "urlExample.com/currencies/CLP.svg",
"logoOut": "urlExmaple.com/currencies/MATIC.svg",
"metadata": "string",
"networkFee": "1000",
"orderId": "b88f4ed0-10a2-412f-be3e-b5e47abe9b50",
"outReceipt": "98abd8a6dbdba6d4b",
"paymentMethodId": "6294d815d2b5f912da43e699",
"quoteId": "string",
"status": "REJECTED",
"symbolIn": "CLP",
"symbolOut": "MATIC"
}