Available Endpoints
Paylink Object
ThePaylink model represents a shareable payment link that allows customers to make payments without a custom checkout integration.
Paylinks are commonly used for:
- One-off payments
- Invoices
- Social or link-based payments
- Simple checkout flows
Fields
id
- Type:
String - Primary Key
- Default:
cuid() - Database Field:
_id - Description:
Unique identifier for the paylink.
title
- Type:
String - Description:
Short title displayed to customers for the payment link.
description
- Type:
String - Description:
Detailed description explaining what the payment is for.
mode
- Type:
Mode - Description:
Indicates whether the paylink is operating in test or live mode.
amount
- Type:
Int - Description:
Amount to be paid when the paylink is used.
imageBlobIds
- Type:
String[] - Description:
Identifiers for images associated with the paylink, such as product or branding visuals.
profileId
- Type:
String - Description:
Identifier of the business profile that owns this paylink.
Relationships (High-Level)
Relationships are listed for clarity but are not required for basic paylink usage.
-
Business Profile
Each paylink belongs to a single business profile. -
Payments
A paylink can be associated with multiple payments made using that link.
Notes
- Paylinks are immutable in ownership once created.
- The
modefield ensures test and live payments remain isolated. - Images are optional and can be used to improve customer trust and conversion.
Create Paylink
Create a new paylink with product details.Request Body
title
- Required
- Type: string
- Description Short title displayed to customers for the payment link.
description
- Required
- Type: string
- Description Detailed description explaining what the payment is for.
amount
- Required
- Type: number
- Description Amount to be paid when the paylink is used.
Get Paylink Details
Retrieve paylink information.Parameters
paylinkId
- Required
- Description Unique identifier for payment link
List Paylinks
Get all your paylinks.Delete Paylink
Remove a paylink.Parameters
paylinkId
- Required
- Description Unique identifier for payment link
