Search Documentation

Search across all documentation pages, APIs and guides.

Payment Link API

Generate a unique, shareable payment URL programmatically. Ideal for invoicing software, accounting platforms, ERP systems, and any operational workflow where a specific, trackable payment link needs to be created and sent to a customer without redirecting them through a checkout session.

Best for: Zoho Books, QuickBooks, SAP, ERP payment collection, field sales, and any B2B workflow where the link is sent via email or SMS and paid independently.

Invoicing

Invoice-to-payment automation

Generate a link per invoice. When the customer pays, poll is_complete to auto-mark invoices as settled in your system.

ERP / Accounting

ERP-triggered collections

ERP raises an order → calls this API → attaches the link_url to the order record. Finance team tracks status directly in the ERP.

Partial Payments

Large-value partial collections

For amounts over LKR 100,000 or USD 100, enable allow_partial_payment to let customers pay in instalments. Minimum must be 30–100% of total.

Expiry Control

Time-limited payment requests

Set expiration_date to enforce payment deadlines. Expired links reject transactions, preventing late or duplicate payments.

Authentication

Payment Link API authenticates via a Company API Key passed in the Authorization header, different from the hash-based signing used by the Payment API. Your App ID is passed as a URL query parameter, not in the request body.

AUTHENTICATION HEADERS
HEADERVALUEREQUIRED
Authorization
Your company API key
Yes
Content-Type
application/json
Yes