Cards
Get card list
GET
https://switchapi3.azurewebsites.net/user/cards/
Retrieve user's cards.
Headers
SWI-CID
string
Client ID
Authorization
string
Format for Authorization is Bearer token
Get card
GET
https://switchapi3.azurewebsites.net/user/cards/:id
Retrieve card by id.
Path Parameters
id
string
Card id
Headers
SWI-CID
string
Client ID
Authorization
string
Format for Authorization is Bearer token
Fund with saved card
POST
https://switchapi3.azurewebsites.net/user/cards/charge/:id
This endpoint funds the user's wallet or account.
Path Parameters
id
string
The id of the card
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Authorization
string
Format is Bearer token
Request Body
pin
string
Authenticate transaction. Required if user's set 2fa is pin.
otp
string
Authenticate transaction. Required if user's set 2fa is otp or google authenticator.
funding_destination
string
wallet or account. Defaults to wallet.
amount_kobo
string
The amount in kobo.
Delete saved card
DELETE
https://switchapi3.azurewebsites.net/user/cards/:id
This endpoint deletes a user's saved card.
Path Parameters
id
string
The id of the card.
Headers
SWI-CID
string
Client ID
Authorization
string
Format for Authorization is Bearer token.
Last updated
Was this helpful?