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.Documentation Index
Fetch the complete documentation index at: https://docs.hub2.io/llms.txt
Use this file to discover all available pages before exploring further.
Request
Reference of the Purchase on your system (e.g.,
EM_TEST_1006)The additional description text that appears under the title in the payment checkout page. (e.g.,
Text displayed for the description)The payment amount (e.g.,
500).
Minimum amount for payment links is 500 XOF.The payment currency. (e.g.,
XOF)Country where the customers should pay (e.g.,
CI)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)The number of the customer associated with the purchaseReference. (e.g.,
0707070707)Expiration date of the payment links (ISO 8601 format). Default value is 15mins (e.g.,
2025-11-01T00:00:00.000Z)Response
The unique Payment Links ID
The unique Payment Links URL
The current status of the Payment Links. Possible values:
active, completed, closed, expiredReference of the Purchase associated with the payment links
The payment amount
The currency of the payment (e.g.,
XOF, XAF)Maximum payments allowed for a payment links.
Maximum payments attempts allowed for a payment links.
The date and time when the payment links was created
The date and time when the payment links was last updated
The date and time when the payment links will expire
The list of payment methods allowed for the payment link created
The URL to which the user is redirected upon a successful payment
The URL to which the user is redirected if the payment fails
The customer PhoneNumber set for the payment.
