Wallets
List all wallet transactions
This endpoint is used to list all wallet transactions.
GET
/
wallets
/
{lago_id}
/
wallet_transactions
Authorization
Path
Query
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"
curl --location --request GET "$LAGO_URL/api/v1/wallets/:id/wallet_transactions?per_page=2&page=1" \
--header "Authorization: Bearer $API_KEY"
{
"wallet_transactions": [
{
"amount": "10.0",
"created_at": "2022-04-29T08:59:51Z",
"credit_amount": "100.0",
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_wallet_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"settled_at": "2022-04-29T08:59:51Z",
"status": "settled",
"transaction_type": "inbound"
}
],
"meta": {
"current_page": 2,
"next_page": 3,
"prev_page": 1,
"total_count": 70,
"total_pages": 4
}
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
lago_id
string
requiredUnique identifier assigned to the wallet within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the wallet’s record within the Lago system.
Query Parameters
page
integer
Page number.
per_page
integer
Number of records per page.
status
string
The status of the wallet transaction. Possible values are pending
or settled
.
transaction_type
string
The transaction type of the wallet transaction. Possible values are inbound
(increasing the wallet balance) or outbound
(decreasing the wallet balance).
Response
200 - application/json
wallet_transactions
object[]
requiredmeta
object
requiredWas this page helpful?
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"
curl --location --request GET "$LAGO_URL/api/v1/wallets/:id/wallet_transactions?per_page=2&page=1" \
--header "Authorization: Bearer $API_KEY"
{
"wallet_transactions": [
{
"amount": "10.0",
"created_at": "2022-04-29T08:59:51Z",
"credit_amount": "100.0",
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_wallet_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"settled_at": "2022-04-29T08:59:51Z",
"status": "settled",
"transaction_type": "inbound"
}
],
"meta": {
"current_page": 2,
"next_page": 3,
"prev_page": 1,
"total_count": 70,
"total_pages": 4
}
}