Payment Links
Create Payment Links
This endpoint allows you to generate a secure payment link for receiving payments from your customers.
POST
The Payment Links API allows you to accept payments from customers using a payment link URL. The payment link URL takes your shopper to an HUB2 hosted secure checkout page where they can make the payment with their preferred payment method.
Request
string
required
Reference of the Purchase on your system (e.g.,
EM_TEST_1006)string
The additional description text that appears under the title in the payment checkout page. (e.g.,
Text displayed for the description)number
required
The payment amount (e.g.,
500).
Minimum amount for payment links is 500 XOF.string
required
The payment currency. (e.g.,
XOF)string
required
Country where the customers should pay (e.g.,
CI)string
required
Specifies whether the payment link can be used once or multiple times. Default value is “single_use” for the current version of the API. (e.g.,
CI)number
The number of the customer associated with the purchaseReference. (e.g.,
0707070707)string
Expiration date of the payment links (ISO 8601 format). Default value is 15mins (e.g.,
2025-11-01T00:00:00.000Z)Response
number
The unique Payment Links ID
string
The unique Payment Links URL
string
The current status of the Payment Links. Possible values:
active, completed, closed, expiredstring
Reference of the Purchase associated with the payment links
number
The payment amount
string
The currency of the payment (e.g.,
XOF, XAF)number
Maximum payments allowed for a payment links.
number
Maximum payments attempts allowed for a payment links.
string
The date and time when the payment links was created
string
The date and time when the payment links was last updated
string
The date and time when the payment links will expire
object
The list of payment methods allowed for the payment link created
string
The URL to which the user is redirected upon a successful payment
string
The URL to which the user is redirected if the payment fails
string
The customer PhoneNumber set for the payment.
