Introduction
About Koywe
- 🌳 What is Koywe
- ✨ Use Cases
Documentation
API Documentation
- 🛠 Overview
- Basic API flow
- Testing API Limitations
- GraphQL API
- RESTful API
- Overview
- Authentication
- Accounts
- Currency
- Token
- Payment Provider
- Payout Provider
- Quotes
- Orders
- Banks
- Deals
- Clients
Retrieve order information by txHash
To try these services, an Authorization token must be provided as a BearerToken header. The Authorization token can be obtained in the /auth service.
curl --request GET \
--url https://api-sandbox.koywe.com/rest/orders/tx-hash/{txHash} \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"orderId": "b88f4ed0-10a2-412f-be3e-b5e47abe9b50",
"quoteId": "<string>",
"orderType": "currency-crypto",
"symbolIn": "CLP",
"symbolOut": "MATIC",
"amountIn": 25000,
"amountOut": 32.171150520770496,
"email": "example@gmail.com",
"exchangeRate": 746.01,
"koyweFee": 1000,
"partnerFee": 500,
"networkFee": 1000,
"status": "REJECTED",
"outReceipt": "98abd8a6dbdba6d4b",
"bankAccountId": "6294d815d2b5f912da43e699",
"metaData": "<string>",
"externalId": "A1d2t3456",
"feesInFiat": {
"koyweFee": 10,
"netFee": 1,
"partnerFee": 0.5
},
"feesInUSD": {
"koyweFee": 10,
"netFee": 1,
"partnerFee": 0.5
},
"dates": {
"confirmationDate": "2023-01-01T10:00:00Z",
"paymentDate": "2023-01-01T12:00:00Z",
"executionDate": "2023-01-01T14:00:00Z",
"deliveryDate": "2023-01-01T16:00:00Z"
},
"destinationAddress": "0x40f9bf922c23c43acede50Ab4425280C0ffBD697",
"paymentMethodId": "6294d815d2b5f912da43e699",
"logoIn": "urlExample.com/currencies/CLP.svg",
"logoOut": "urlExample.com/currencies/MATIC.svg",
"refund": {
"dates": {
"startDate": "2023-01-01T18:00:00Z",
"processDate": "2023-01-01T20:00:00Z",
"deliveredDate": "2023-01-01T22:00:00Z"
},
"destinationAddress": "0x40f9bf922c23c43acede50Ab4425280C0ffBD697",
"transactionReceipt": "98abd8a6dbdba6d4b"
},
"errors": {
"invalidWithdrawalsDetails": {
"_id": "6234f5d4d9f4",
"name": "John Doe",
"bankCode": "001",
"countryCode": "CL",
"currencySymbol": "CLP",
"accountNumber": "1234567890",
"account": "Savings",
"accountType": "Savings",
"entityName": "Banco de Chile"
}
}
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Transaction Hash of an order(s)
Response
"b88f4ed0-10a2-412f-be3e-b5e47abe9b50"
"currency-crypto"
"CLP"
"MATIC"
25000
32.171150520770496
"example@gmail.com"
746.01
1000
500
1000
"REJECTED"
"98abd8a6dbdba6d4b"
"6294d815d2b5f912da43e699"
"A1d2t3456"
"0x40f9bf922c23c43acede50Ab4425280C0ffBD697"
"6294d815d2b5f912da43e699"
"urlExample.com/currencies/CLP.svg"
"urlExample.com/currencies/MATIC.svg"
"0x40f9bf922c23c43acede50Ab4425280C0ffBD697"
"98abd8a6dbdba6d4b"
"6234f5d4d9f4"
"John Doe"
"001"
"CL"
"CLP"
"1234567890"
"Savings"
"Savings"
"Banco de Chile"
curl --request GET \
--url https://api-sandbox.koywe.com/rest/orders/tx-hash/{txHash} \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"orderId": "b88f4ed0-10a2-412f-be3e-b5e47abe9b50",
"quoteId": "<string>",
"orderType": "currency-crypto",
"symbolIn": "CLP",
"symbolOut": "MATIC",
"amountIn": 25000,
"amountOut": 32.171150520770496,
"email": "example@gmail.com",
"exchangeRate": 746.01,
"koyweFee": 1000,
"partnerFee": 500,
"networkFee": 1000,
"status": "REJECTED",
"outReceipt": "98abd8a6dbdba6d4b",
"bankAccountId": "6294d815d2b5f912da43e699",
"metaData": "<string>",
"externalId": "A1d2t3456",
"feesInFiat": {
"koyweFee": 10,
"netFee": 1,
"partnerFee": 0.5
},
"feesInUSD": {
"koyweFee": 10,
"netFee": 1,
"partnerFee": 0.5
},
"dates": {
"confirmationDate": "2023-01-01T10:00:00Z",
"paymentDate": "2023-01-01T12:00:00Z",
"executionDate": "2023-01-01T14:00:00Z",
"deliveryDate": "2023-01-01T16:00:00Z"
},
"destinationAddress": "0x40f9bf922c23c43acede50Ab4425280C0ffBD697",
"paymentMethodId": "6294d815d2b5f912da43e699",
"logoIn": "urlExample.com/currencies/CLP.svg",
"logoOut": "urlExample.com/currencies/MATIC.svg",
"refund": {
"dates": {
"startDate": "2023-01-01T18:00:00Z",
"processDate": "2023-01-01T20:00:00Z",
"deliveredDate": "2023-01-01T22:00:00Z"
},
"destinationAddress": "0x40f9bf922c23c43acede50Ab4425280C0ffBD697",
"transactionReceipt": "98abd8a6dbdba6d4b"
},
"errors": {
"invalidWithdrawalsDetails": {
"_id": "6234f5d4d9f4",
"name": "John Doe",
"bankCode": "001",
"countryCode": "CL",
"currencySymbol": "CLP",
"accountNumber": "1234567890",
"account": "Savings",
"accountType": "Savings",
"entityName": "Banco de Chile"
}
}
}
]
}