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>"
}
Simulate credit transaction (Sandbox Only)
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>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
OK
The response is of type object
.
Was this page helpful?