Payment Link
Get Payment-Link Details
GET
https://switchapi3.azurewebsites.net/pay/:slug
This endpoint generates a payment link for a user.
Path Parameters
Name | Type | Description |
---|---|---|
slug | string | The user's switch_id. |
Query Parameters
Name | Type | Description |
---|---|---|
amount_kobo | string | The amount in kobo |
Headers
Name | Type | Description |
---|---|---|
SWI-CID | string | Client ID |
Request payment
POST
https://switchapi3.azurewebsites.net/pay/request_payment
This is an endpoint to request payment by sending the link to the recipient's email.
Headers
Name | Type | Description |
---|---|---|
SWI-CID | string | Client ID |
SWI-CS | string | Payload checksum |
Authorization | string | Format is Bearer token |
Request Body
Name | Type | Description |
---|---|---|
amount_kobo | string | Amount to be paid in kobo. |
recipient | string | Email address of the recipient. |
Pay via Payment Link
POST
https://switchapi3.azurewebsites.net/pay/make_payment
This endpoint initiates payment into a switch user's wallet or account (depending on if the user is verified or not).
Headers
Name | Type | Description |
---|---|---|
SWI-CID | string | Client ID |
SWI-CS | string | Payload checksum |
Request Body
Name | Type | Description |
---|---|---|
token | string | Payment link token |
name | string | Name of the payer |
string | Email of the payer | |
amount_kobo | string | Amount to be paid |
reference | string | Payment reference |
currency | string | Currency code of payment. Defaults to NGN |
Last updated