Wallet transactions
GET
/v1/wallet/ledger
const url = 'https://api.orvoca.com/v1/wallet/ledger?limit=50&type=topup';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.orvoca.com/v1/wallet/ledger?limit=50&type=topup' \ --header 'Authorization: Bearer <token>'Newest first. Append-only: the balance is the sum of these entries.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
integer
cursor
string
type
string
Responses
Section titled “Responses”Entries
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
type
required
string
amount
required
object
amount
required
integer
currency
required
string
description
required
string | null
ref_id
required
The call, top-up or number it was for
string | null
created_at
required
string
next_cursor
required
string | null
has_more
required
boolean
Example
{ "data": [ { "type": "topup", "amount": { "currency": "INR" } } ]}Invalid request
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not signed in or bad API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not allowed
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not found
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}