Transfers
Bank list
GET
https://switchapi3.azurewebsites.net/user/transfer/banks
Return all banks with their bank codes
Headers
Authorization
string
The format for this is Authorization is Bearer token_string
Transfer Recipients List
GET
https://switchapi3.azurewebsites.net/user/transfer/recipients
Retrieves all recipients saved by user for easy transfer. It takes a transfer_type
value of internal
, external
or all
and defaults to all
if transfer_type
parameter is not passed.
Query Parameters
transfer_type
string
internal, external, or all. Default value is all
Headers
Authorization
string
The format for this Authorization is Bearer token_string
Resolve Transfer Recipient
POST
https://switchapi3.azurewebsites.net/user/transfer/resolve_recipient
This returns a recipient for an internal or external transfer
Headers
Authorization
string
The format for this Authorization is Bearer token_string
Request Body
transfer_amount_kobo
string
Required when transfer_type is external
bank_code
string
Required when transfer is external
account_number
string
Required when transfer is external
recipient_slug
string
Required when transfer is internal. The recipient's email or switch_id
transfer_type
string
Type of transfer a recipient resolution is being done for. Either internal or external
External Transfer [Switch to Bank]
POST
https://switch-api-staging.herokuapp.com/user/wallet/transfer/external
This call initiates a transfer out of a user's bank account to another bank account. Note: You either pass the transfer_recipient_id along with the amount or you pass the transfer_request_id along with the amount. The transfer_request_id can be gotten from the resolve_recipient ["external"] endpoint This call needs to be authenticated by either pin or otp
Headers
auth_token
string
The format for this auth_token is Bearer token_string
Request Body
otp
string
Authenticate transaction
pin
string
Authenticate transaction
remark
string
Any notes the user wishes to pass along with the transfer
save_recipient
boolean
This saves the recipient to the user's recipients list. Default is false.
transfer_recipient_id
string
id of a transfer recipient gotten from user's recipients list
transfer_request_id
string
Transfer request id gotten from resolve_recipient
transfer_amount_kobo
string
Amount to be transferred
Internal Transfer [Switch to Switch]
POST
https://switchapi3.azurewebsites.net/user/transfer/internal
This call initiates a transfer from one Switch user to another using the platform. Note: You either pass the transfer_request_id along with other information or you pass the transfer_recipient_id along with the amount. The transfer_request_id can be gotten from the resolve_recipient["internal"] endpoint. This call needs to be authenticated by either pin or otp
Headers
Authorization
string
The format for this Authorization is Bearer token_string
Request Body
source
string
wallet or account.
otp
string
Authenticate transaction
pin
string
Authenticate transaction
remark
string
Any notes the user wishes to pass along with the transfer
save_recipient
boolean
This saves the recipient to the user's recipients list. Default is false.
transfer_recipient_id
string
id of a transfer recipient gotten from a user's recipients list
transfer_request_id
string
Transfer request id gotten from resolve_recipient
transfer_amount_kobo
string
Amount to be transferred
Self-transfer
POST
https://switchapi3.azurewebsites.net/user/transfer/self
This endpoint transfers money from the user's wallet to account and vice-versa.
Headers
Authentication
string
The format for Authentication is Bearer token_string
Request Body
source
string
Either wallet or account.
destination
string
Either wallet or account.
amount_kobo
string
The amount in kobo.
Delete beneficiary
DELETE
https://switchapi3.azurewebsites.net/user/transfer/beneficiary/:id
This endpoint deletes a user's saved beneficiary.
Path Parameters
id
string
The beneficiary's id.
Headers
Authorization
string
Format is Bearer token
Last updated
Was this helpful?