Get all Wallets
Route
GET
/api/v1/wallets?external_customer_id&per_page=2&page=1
Usage
- Curl
- Python
- Ruby
- Node.js
- Go
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"
curl --location --request GET "$LAGO_URL/api/v1/wallets?external_customer_id&per_page=2&page=1" \
--header "Authorization: Bearer $API_KEY"
from lago_python_client import Client
client = Client(api_key='__YOUR_API_KEY__')
client.wallets().find_all({'external_customer_id': 12345, 'per_page': 2, 'page': 1})
require 'lago-ruby-client'
client = Lago::Api::Client.new({api_key: '__YOUR_API_KEY__'})
client.wallets.get_all({ external_customer_id: 12345, per_page: 2, page: 3 })
let client = new Client('__API_KEY__')
await client.findAllWallets({external_customer_id: 12345, per_page: 2, page: 3});
import "fmt"
import "github.com/getlago/lago-go-client"
func main() {
lagoClient := lago.New().
SetApiKey("__YOUR_API_KEY__")
walletListInput := &lago.WalletListInput{
PerPage: 10,
Page: 1,
ExternalCustomerId: 12345
}
walletResult, err := lagoClient.Wallet().GetList(walletListInput)
if err != nil {
// Error is *lago.Error
panic(err)
}
// wallet is *lago.WalletResult
fmt.Println(walletResult)
}
Arguments
Attributes | Type | Description |
---|---|---|
per_page | String Optional | Number of records per page. |
page | String Optional | Page number |
external_customer_id | String Optional | External customer ID |
Responses
- HTTP 200
- HTTP 401
Wallets were successfully found
Returns a list of wallet objects.
{
"status": 401,
"error": "Unauthorized"
}
Access to the API endpoint is unhautorized.
Possible reasons are:
- The
Authorization
header is missing - The
Authorization
header does not contain the API key - The Api key is invalid or expired