Create Link

Create new payment link to receive payments

POST https://paymentlink.seerbitapi.com/paymentlink/v2/payLinks/api

This enpoint allows you create payment links

Headers

Name
Type
Description

Authorization*

String

Bearer Token

Request Body

Name
Type
Description

Status*

String

link status - (ACTIVE, INACTIVE)

paymentLinkName*

String

name of the link

description*

String

decription of this page

currency*

String

The transaction currency (NGN, GHS, KES,XOF or USD). Country Default currency must be passed

successMessage

String

Custom message to show customers after a successful payment

publicKey*

String

merchant publickey

customisationName

String

unique url extension for payment link

paymentFrequency*

String

ONE-TIME or RECURRENT

paymentReference

String

email

String

additionalData

String

additional data for payments

linkExpirable*

String

set true or false

expiryDate

String

set date

oneTime*

String

set true if you want the link to be used once or set false if you want the link to be used multiple times

address

String

true or false if you need to collect customer address

amount*

String

true or false

customerName*

String

true

mobileNumber*

String

true or false if you need to collect customer number

invoiceNumber

String

true or false if you need to collect invoice number

curl --location 'https://paymentlink.seerbitapi.com/paymentlink/v2/payLinks/api' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_ENCRYPTED_KEY' \
--data-raw '{
  "status":"ACTIVE",
  "paymentLinkName": "Donations",
  "description":"Give out donations",
  "currency": "NGN",
  "successMessage":"Thank you for your payment",
  "publicKey":"YOUR_PUBLIC_KEY",
 "customizationName":"testing1",
  "paymentFrequency":"ONE_TIME",
  "paymentReference": "",  
  "email":"js@emaildomain.com",
  "requiredFields": {
      "address":true,
      "amount":true,
      "customerName":false,
      "mobileNumber":true,
      "invoiceNumber":false
  },
  "additionalData":"Customer Email: js@mailinator.com", 
  "linkExpirable":false,
  "expiryDate":"",
  "oneTime":false

}'

Last updated