Skip to main content

Create Payment Link

POST https://paylinks.uqualify.co.uk/api/v1/paylinks

The Create Payment Link endpoint enables you to generate a new payment link for a specific product or service within the Uqualify platform. This link can be customized with various parameters, such as the amount, currency, and description, facilitating payments for a wide range of offerings. Use this endpoint to quickly create payment links you can share with customers to collect payments seamlessly.

info

When creating a payment link, you can implicitly create a plan by providing details such as amount and currency.

Body Parameters

ParameterTypeDescription
amountstringThe amount associated with the payment link.
currencystringThe currency of the payment link.
descriptionstringA description of the payment link.
intervalstringThe recurring interval for the payment link: Week, Month, Year.
intervalCountintegerThe number of intervals for the recurring payment link.
metadataobjectAdditional metadata associated with the payment link.
namestringThe name of the payment link.
referencestringThe reference for the payment link.
trial_periodstringThe trial period for the payment link in a valid duration format (e.g., 24h).
typestringThe type of the plan: 1 = Unknown, 2 = Onetime

Example Request

curl --request POST \
--url https://paylinks.uqualify.co.uk/api/v1/paylinks \
--header 'X-API-KEY: API-KEY' \
--header 'accept: application/json' \
--header 'content-type: application/json'

Responses

info

To generate a payment link, simply append the payment ID to the following base URL:

pay.boomfi.xyz

For example, if the payment ID is 2m2EcPjK0GACD29VHRHvduBKsAd, the final payment link would be:

pay.boomfi.xyz/2m2EcPjK0GACD29VHRHvduBKsAd

FieldTypeDescription
dataobjectThe data object containing the paylinks.
data.idstringThe unique identifier for the paylink.
data.plan_idstringThe ID of the associated plan.
data.invoice_idstringThe ID of the associated invoice.
data.sourcestringThe source of the paylink.
data.customer_ident_collectionbooleanIndicates if customer identification collection is enabled.
data.shipping_address_collectionbooleanIndicates if shipping address collection is enabled.
data.tax_ident_collectionbooleanIndicates if tax identification collection is enabled.
data.enabledbooleanIndicates if the paylink is enabled.
data.deleted_atdate-timeThe timestamp when the paylink was deleted.
data.created_bystringThe ID of the user who created the paylink.
data.updated_bystringThe ID of the user who last updated the paylink.
data.created_atdate-timeThe timestamp when the paylink was created.
data.updated_atdate-timeThe timestamp when the paylink was last updated.
data.metadataobjectAdditional metadata associated with the paylink.
data.metadata.propertiesobjectAdditional properties associated with the paylink.
data.planobjectThe details of the associated plan.
errorbooleanIndicates if there was an error.
{
"data": {
"id": "2Z4zsnmp37AF3WKM6N2j4wmeakr",
"plan_id": "2Z4zspFMhs2pMYjcR3l6JpJaWdA",
"invoice_id": "",
"source": "BoomFi",
"customer_ident_collection": false,
"shipping_address_collection": false,
"tax_ident_collection": false,
"enabled": true,
"deleted_at": "2023-12-04T13:25:48.499Z",
"created_by": "2TzGhPCAfFWLPBjtc6h52Aao2S6",
"updated_by": "",
"created_at": "2023-12-04T13:25:48.496Z",
"updated_at": "2023-12-04T13:25:48.499Z",
"metadata": {},
"properties": {
"short_code": "AANj9Dm7Zl"
},
"plan": {
"id": "2Z4zspFMhs2pMYjcR3l6JpJaWdA",
"org_id": "2Tpmnmh6GHJXumKN1oBy2u56Ima",
"source": "Lago",
"name": "test paylink 12 04",
"type": "OneTime",
"billing_scheme": "FlatFee",
"price": "1",
"currency": "USD",
"available_quantity": 0,
"trial_period": "",
"recurring_interval": "Unknown",
"recurring_interval_count": 1,
"recurring_usage_type": "Unknown",
"reference": "",
"enabled": true,
"v1": "eyJwbGFucyI6IHsiaWQiOiAiYWE1ZmI5MjQtMmMzZi00NzcwLTkyZDEtMjFjYmY3ODc3ODc2IiwgIm5hbWUiOiAidGVzdCBwYXlsaW5rIDEyIDA0IiwgInN0YXR1cyI6ICJhY3RpdmUiLCAiaW50ZXJ2YWwiOiBudWxsLCAicmVmZXJlbmNlIjogIiIsICJhbW91bnRfd2VpIjogIjEwMCIsICJjcmVhdGVkX2F0IjogIjIwMjMtMTI...",
"created_by": "2TzGhPCAfFWLPBjtc6h52Aao2S6",
"created_at": "2023-12-04T13:25:47.656Z",
"updated_at": "2023-12-04T13:25:48.491Z",
"deleted_at": null,
"metadata": {}
}
},
"error": true
}