curl --request POST \
--url https://api.paygentic.io/v0/wallets/{walletId}/topups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": "<string>",
"method": "stripe",
"returnUrl": "<string>"
}'
{
"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": {},
"isAutoTopup": true
}
curl --request POST \
--url https://api.paygentic.io/v0/wallets/{walletId}/topups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": "<string>",
"method": "stripe",
"returnUrl": "<string>"
}'
{
"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": {},
"isAutoTopup": true
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ID of the wallet to top up
Topup created successfully
The response is of type object
.