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 movements and balance
Returns the registered movements and balance of the user.
curl --request GET \
--url https://api-sandbox.koywe.com/rest/accounts/movements-balance/{accountID} \
--header 'Authorization: Bearer <token>'
{
"allMovements": [
{
"orderId": "d219960c-6244-41ea-9db1-0655fa724c6f",
"transactionStatus": "DELIVERED",
"amount": 82185,
"currencySymbol": "CLP",
"cryptoSymbol": "USDC Polygon",
"exchangeRate": 803,
"localCurrencyConversion": 101.347063,
"dates": {
"orderedDate": "2023-07-06T13:52:35.134Z",
"payedDate": "2023-07-06T14:00:11.943Z",
"transactionDate": "2023-07-06T14:00:20.754Z",
"deliveredDate": "2023-07-06T14:11:29.719Z",
"_id": "64a6c723b67c262341bc705d"
},
"paymentMethod": "KHIPU",
"invoiceLink": "https://invoice.koywe.com/api/invoices/pdf/d219960c-6244-41ea-9db1-0655fa724c6f",
"txhash": "0xbe97c2ef9838f429701ab58134ea22215a9a612b723b3f83c54635c224083500"
}
],
"balances": [
{
"_id": "64a6c677ca3d967f1760eb9a",
"accountId": "64a6c358683529b844a3f03d",
"currencySymbol": "CLP",
"countryCode": "CHL",
"totalBalance": 0,
"description": "balance: alvaroescalonacastillo@gmail.com",
"retries": null,
"createdAt": "2023-07-06T13:49:43.067Z",
"updatedAt": "2023-07-06T13:49:43.067Z",
"__v": 0
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
accountID associated with the user
Query Parameters
Optional email parameter to filter the data
Response
"d219960c-6244-41ea-9db1-0655fa724c6f"
"DELIVERED"
82185
"CLP"
"USDC Polygon"
803
101.347063
"2023-07-06T13:52:35.134Z"
"2023-07-06T14:00:11.943Z"
"2023-07-06T14:00:20.754Z"
"2023-07-06T14:11:29.719Z"
"64a6c723b67c262341bc705d"
"KHIPU"
"https://invoice.koywe.com/api/invoices/pdf/d219960c-6244-41ea-9db1-0655fa724c6f"
"0xbe97c2ef9838f429701ab58134ea22215a9a612b723b3f83c54635c224083500"
"64a6c677ca3d967f1760eb9a"
"64a6c358683529b844a3f03d"
"CLP"
"CHL"
0
"balance: alvaroescalonacastillo@gmail.com"
null
"2023-07-06T13:49:43.067Z"
"2023-07-06T13:49:43.067Z"
0
curl --request GET \
--url https://api-sandbox.koywe.com/rest/accounts/movements-balance/{accountID} \
--header 'Authorization: Bearer <token>'
{
"allMovements": [
{
"orderId": "d219960c-6244-41ea-9db1-0655fa724c6f",
"transactionStatus": "DELIVERED",
"amount": 82185,
"currencySymbol": "CLP",
"cryptoSymbol": "USDC Polygon",
"exchangeRate": 803,
"localCurrencyConversion": 101.347063,
"dates": {
"orderedDate": "2023-07-06T13:52:35.134Z",
"payedDate": "2023-07-06T14:00:11.943Z",
"transactionDate": "2023-07-06T14:00:20.754Z",
"deliveredDate": "2023-07-06T14:11:29.719Z",
"_id": "64a6c723b67c262341bc705d"
},
"paymentMethod": "KHIPU",
"invoiceLink": "https://invoice.koywe.com/api/invoices/pdf/d219960c-6244-41ea-9db1-0655fa724c6f",
"txhash": "0xbe97c2ef9838f429701ab58134ea22215a9a612b723b3f83c54635c224083500"
}
],
"balances": [
{
"_id": "64a6c677ca3d967f1760eb9a",
"accountId": "64a6c358683529b844a3f03d",
"currencySymbol": "CLP",
"countryCode": "CHL",
"totalBalance": 0,
"description": "balance: alvaroescalonacastillo@gmail.com",
"retries": null,
"createdAt": "2023-07-06T13:49:43.067Z",
"updatedAt": "2023-07-06T13:49:43.067Z",
"__v": 0
}
]
}