GET
/
wallets
/
{walletId}
/
topups
curl --request GET \
  --url https://api.sulu.sh/v0/wallets/{walletId}/topups \
  --header 'Authorization: Bearer <token>'
{
  "object": "list",
  "data": [
    {
      "id": "<string>",
      "object": "topup",
      "walletId": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "status": "pending",
      "updatedAt": "2023-11-07T05:31:56Z",
      "amount": "<string>",
      "currency": "<string>",
      "method": "stripe",
      "payload": {}
    }
  ],
  "pagination": {
    "limit": 123,
    "offset": 123,
    "total": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

walletId
string
required

ID of the wallet to list topups for

Query Parameters

status
enum<string>

Filter topups by status

Available options:
pending,
failed,
success,
cancelled
start_time
string

Filter topups created after or at this timestamp (ISO 8601 format)

end_time
string

Filter topups created before this timestamp (ISO 8601 format)

limit
integer
default:10

Maximum number of topups to return

Required range: 1 <= x <= 100
offset
integer
default:0

Number of topups to skip

Required range: x >= 0

Response

200
application/json
List of topups
object
enum<string>
Available options:
list
data
object[]
pagination
object

Offset-based pagination response.