Cards
Get card list
GET
https://switchapi3.azurewebsites.net/user/cards/
Retrieve user's cards.
Headers
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
id | string | Card id |
Headers
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
id | string | The id of the card |
Headers
Name | Type | Description |
---|---|---|
SWI-CS | string | Payload checksum |
SWI-CID | string | Client ID |
Authorization | string | Format is Bearer token |
Request Body
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
id | string | The id of the card. |
Headers
Name | Type | Description |
---|---|---|
SWI-CID | string | Client ID |
Authorization | string | Format for Authorization is Bearer token. |
Last updated