Close Payment Link
Changed onClose a payment link so that it no longer accepts payments
Request
- The document declares no server URL.
- Authnone declared. Required headers: ApiKey, MerchantId, Environment
Path parameters
Payment link ID
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.
Response
Payment link closed successfully
Example response
{
"id": "pl_z1urYtVFgEebtcj8fxp4v",
"url": "https://pay.hub2.com/pl_z1urYtVFgEebtcj8fxp4v",
"status": "active",
"purchaseReference": "ORDER-12345",
"minAmount": 500,
"maxAmount": 100000,
"currency": "XOF",
"maximumPayments": 50,
"maximumAttempts": 3,
"createdAt": "2024-01-15T12:00:00.000Z",
"updatedAt": "2024-01-15T12:30:00.000Z",
"expirationDate": "2024-01-15T14:30:00.000Z",
"customerPhoneNumber": "123456789",
"type": "single_use",
"providers": [
"orange",
"mtn"
],
"customerFields": [
{
"fieldName": "national_id",
"fieldLabel": "National ID"
}
]
}Changes
- breaking
added the new required
headerrequest parameterApiKey - breaking
added the new required
headerrequest parameterEnvironment - breaking
added the new required
headerrequest parameterMerchantId - warning
removed the optional property
from the response with the status - warning
added the new
bill_paymentenum value to theresponse property for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status
- breaking