Payment Link
Get Payment-Link Details
GET
https://switchapi3.azurewebsites.net/pay/:slug
This endpoint generates a payment link for a user.
Path Parameters
slug
string
The user's switch_id.
Query Parameters
amount_kobo
string
The amount in kobo
Headers
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
SWI-CID
string
Client ID
SWI-CS
string
Payload checksum
Authorization
string
Format is Bearer token
Request Body
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
SWI-CID
string
Client ID
SWI-CS
string
Payload checksum
Request Body
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
Was this helpful?