List Payment Links
Retrieve a list of payment links with optional filtering
Headers
Your api key. To create a key, please get into our dashboard. If you don't have access to it, please reach the Support team.
Your merchant ID. This information is available in our dashboard. If you don't have access to it, please reach the Support team.
Allow you to choose between the sandbox mode to perform some tests or the live mode for real world transactions.
live, sandbox Query Parameters
Filter by creation date from (ISO 8601) - inclusive start date
"2024-01-15T00:00:00.000Z"
Filter by creation date to (ISO 8601) - inclusive end date
"2024-01-15T23:59:59.999Z"
Filter by expiration date from (ISO 8601) - inclusive start date
"2024-01-15T00:00:00.000Z"
Filter by expiration date to (ISO 8601) - inclusive end date
"2024-01-15T23:59:59.999Z"
Filter by payment link status
active, expired, closed, completed "active"
Response
Unique identifier for the payment link
"pl_z1urYtVFgEebtcj8fxp4v"
URL for the payment link
"https://pay.hub2.com/pl_z1urYtVFgEebtcj8fxp4v"
Current status of the payment link
active, expired, closed, completed "active"
Merchant reference for the payment
"ORDER-12345"
Amount intended to be charged in the smallest currency unit. Null when openAmount is true.
1000
Three-letter ISO 4217 currency code
"XOF"
Number of successful payments recorded for this link
0
Maximum number of failed payments allowed per user
3
Creation date in ISO 8601 format
"2024-01-15T12:00:00.000Z"
Last update date in ISO 8601 format
"2024-01-15T12:30:00.000Z"
Expiration date in ISO 8601 format
"2024-01-15T14:30:00.000Z"
Restricted MSISDN
"123456789"
Type of the payment link
single_use, multi_use "single_use"
List of payment attempts for this payment link
When true, the payer decides the amount at payment time.
false
Minimum amount the payer can enter (only when openAmount is true).
500
Maximum amount the payer can enter (only when openAmount is true).
100000
Maximum successful payments allowed (omitted when unlimited multi_use)
50
Custom form fields defined on this payment link. Absent when the link has no customer fields.
Collected payer data as fieldName → value pairs. Absent when no customerFields are defined.
{ "national_id": "AB123456" }