Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create Payment Links

Create Payment Links

Payment links are created using Payments Create API. payment_link field should be sent as true in the request. Payment links cannot be confirmed during creation, hence confirm cannot be true.

Each field in the request uses a fallback logic. Below is the order of preference -

  • Config sent during payment link creation

  • Config set for the business profile

  • Default values for payment link config

Refer to this section for a default UI for payment links.

Creating a payment link uses the UI config set for the given profile in the request.

curl --location '{{BASE_URL}}/payments' \
    --header 'Content-Type: application/json' \
    --header 'api-key: {{API_KEY}}' \
    '{
        "amount": 100,
        "currency": "USD",
        "payment_link": true,
        "profile_id": "pro_YXlbYtgiANENrZgxdL8Q"
    }'

You can set payment link's UI during payment link creation.

For using a specific style ID

If you've set multiple payment link configs in the profile, the style ID can be sent in payment_link_config_id during payment link creation.

Next step:

Secure Payment Links

Last updated

Was this helpful?