Wallets
Simulate credit transaction
Wallets
Simulate credit transaction
Simulate credit transaction (Sandbox Only)
POST
/
wallets
/
{id}
/
credit
curl --request POST \
--url https://api.swervpay.co/api/v1/wallets/{id}/credit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 123,
"sender": {
"account_name": "<string>",
"account_number": "<string>",
"bank_code": "<string>",
"bank_name": "<string>",
"narration": "<string>",
"reference": "<string>"
}
}'
{
"id": "<string>",
"message": "<string>",
"reference": "<string>"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Response
200
application/json
OK
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.swervpay.co/api/v1/wallets/{id}/credit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 123,
"sender": {
"account_name": "<string>",
"account_number": "<string>",
"bank_code": "<string>",
"bank_name": "<string>",
"narration": "<string>",
"reference": "<string>"
}
}'
{
"id": "<string>",
"message": "<string>",
"reference": "<string>"
}