---
title: Create a payment link through APIs
slug: payment-links/create-via-apis
excerpt: >-
  Use the Payment Links API to generate a secure checkout URL, configure payment
  methods, set expiry, and send it to your customer automatically.
hidden: false
sidebar_order: 2
metadata:
  title: Create Payment Link API — Generate Shareable Checkout | Pine Labs
  description: >
    Create payment links via API with configurable expiry, payment methods,
    amounts, and customer notifications. Generate shareable URLs for email/SMS
    payments.
  keywords: >-
    payment link API, create payment link, shareable checkout, pay by link API,
    payment URL generation, link payment integration
  robots: index
---
Pay by Link allows you to send payment links directly to your customers, enabling them to make payments with just a simple click. It streamlines the payment process, making it hassle-free for both you and your customers. You can create a payment link and share it via email and SMS to collect payments easily.

If you prefer a no-code approach instead APIs, [create a payment link through the Dashboard](/payment-links/create-via-dashboard).


## Start Integrating

<TwoColumn ratio="1:1" gap="2rem" align="start">
  <Column>

Before you begin integrating, create your free Pine Labs Online developer account to get access to UAT credentials, API keys, and the merchant dashboard.

1. **Sign Up** — Visit the Pine Labs Online Dashboard and register with your business email.

<a class="hidden sm:inline-flex btn-light-green px-3.5 py-1.5 text-sm shadow-sm" href="https://dashboardv2.pluralonline.com/signup">Create Account</a>

2. **Verify Your Email** — Confirm your email address through the verification link sent to your inbox.
3. **Find Your Credentials** — Once logged in, navigate to Settings → API Keys to generate your test-mode API key and secret.
4. **Explore the Dashboard** — Use the dashboard to view test payments, refunds, settlements, and webhook configurations before going live.

Once your account is ready, you can immediately start integrating hosted checkout, custom checkout, payment links, tokenization, and other Pine Labs Online payment solutions using the UAT environment — no production credentials required.
  </Column>
  <Column>

<DocImage src="images/dashboard/signup.png" alt="Pine Labs Dashboard" align="center" />


  </Column>
</TwoColumn>

> 📘 Note
>
> * Ensure you store your Client ID and Secret in your Backend securely.
> * Integrate our APIs on your backend system.
> * We strictly recommend not to call our APIs from the frontend.
> * Failure to adhere to the above guidelines may result in legal implications. In such cases, you will be held responsible for any damage or loss arising from non-compliance.

## Generate a shareable checkout URL using the Payment Links API.

The table below list the various Pay by Link APIs.

| API Endpoint | Description |
| --- | --- |
| [Create Payment Link](/api/payment-links/create-payment-link) | This API enables you to create a payment link and send it directly to the customer. |
| [Get Payment Link by Payment Link ID](/api/payment-links/get-payment-link-by-id) | Use this API to fetch a Payment Link by payment link ID. |
| [Cancel Payment Link](/api/payment-links/cancel-payment-link) | Use this API to Cancel a Payment Link. |
| [Resend Payment Link Notification](/api/payment-links/resend-payment-link-notification) | Use this API to resend a Payment Link notification. |
| [Get Payment Link by Merchant Reference](/api/payment-links/get-payment-link-by-merchant-reference) | Use this API to fetch a Payment Link by merchant reference. |
