GET
/
wallets
/
{walletId}
/
topups
/
{topupId}
curl --request GET \
  --url https://api.sulu.sh/v0/wallets/{walletId}/topups/{topupId} \
  --header 'Authorization: Bearer <token>'
{
  "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": {}
}

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 the topup belongs to

topupId
string
required

ID of the topup to retrieve

Response

200
application/json
Topup details
id
string
required

Unique identifier for the topup

object
enum<string>
default:topup
required
Available options:
topup
walletId
string
required

ID of the wallet being topped up

createdAt
string
required

Creation timestamp

status
enum<string>
required

Current status of the topup

Available options:
pending,
failed,
success,
cancelled
updatedAt
string
required

Last update timestamp

amount
string
required

Amount to top up in the smallest currency unit

currency
string
required

Currency of the topup (same as wallet currency)

method
enum<string>
required

Payment method used for the topup

Available options:
stripe
payload
object

Method-specific payload data