POST
/
wallets
/
{walletId}
/
topups
curl --request POST \
  --url https://api.sulu.sh/v0/wallets/{walletId}/topups \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": "<string>",
  "method": "stripe"
}'
{
  "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 to top up

Body

application/json

Response

201
application/json
Topup created successfully

The response is of type object.