Generates a new payment link for the specified recipient. The link is tied to an organization and optionally to a transaction ID and payment amount. Requires internal-admin or org-admin role.
Bearer JWT for user-facing flows (Bearer eyJraWQ...), or the literal string NONE when authenticating via API key.
"Bearer eyJraWQ..."
API key for server-to-server flows, or the literal string NONE when authenticating via JWT.
"pcx_abc123_xxxx"
Recipient email address for the payment link.
"customer@example.com"
The organization ID issuing the payment link.
"org_abc123"
Optional transaction ID to associate with this payment link.
"txn_xyz789"
Amount the customer is expected to pay. If omitted, the link is open-ended.
5000
ISO 8601 date/datetime at which this link is scheduled to be sent. Used by the scheduled email job.
"2026-04-15T10:00:00"
OTP code (if pre-verified before link creation).
"482910"
Currency code (e.g. NGN, USD).
"NGN"
Payment link created successfully.
"lnk_a1b2c3d4"
"txn_xyz789"
"org_abc123"
The full URL of the payment link to share with the customer.
"https://pay.pcxpay.com/lnk_a1b2c3d4"
"2026-04-16T10:00:00"
1744790400
active, revoked, expired "active"
"customer@example.com"
5000
"2026-04-15T10:00:00"
"2026-04-13T08:00:00"
"NGN"