> ## Documentation Index
> Fetch the complete documentation index at: https://fastflowpe.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a Split Payment Link

> Create a payment link whose payments are automatically split between your vendors.

Create a payment link whose payments are automatically divided between your vendors. It works exactly like a normal payment link, with two additions: `psp_provider_id` is mandatory and a `split` object describes who gets what. The vendors share must not exceed the link amount; whatever is left stays with you.

> [!TIP]
>
> **Quick Reference**
>
> **Required:** `psp_provider_id`, `amount`, `expiry`, `order_id`, `customer_name`, `customer_phone`, `customer_email`, `payment_mode`, `notification_mode`, `auto_reminder`, `split`
>
> **Returns:** `payment_link_id`, `payment_url`, `slug`, `split`

## Endpoint

```http theme={"dark"}
POST https://api.fastflowpe.com/merchant/easy-split/split-links
```

## Request Headers

**x-api-key** `string` *required*

Your API key.

**Content-Type** `string` *required*

Must be `application/json`.

## Request Body Parameters

**psp\_provider\_id** `string (UUID)` *required*

The payment provider to collect the payment with. Get it from the [Get Providers](https://fastflowpe.com/docs/easy-split/get-config.md) API (`providers[].psp_provider_id`). Every vendor in `split` must be registered with this same provider.

**amount** `number` *required*

Total payment amount in INR. Greater than `0` and at most `100001`, with up to 2 decimal places.

**expiry** `string (ISO 8601)` *required*

When the link expires. Format `YYYY-MM-DDTHH:MM:SS+HH:MM` **with a timezone offset** (e.g., `2026-12-10T18:00:00+05:30`); `Z` or no offset is rejected. Must be **more than 15 minutes** in the future.

**order\_id** `string` *required*

Your unique order reference. Maximum 100 characters, **no spaces**. Must be unique — reusing it returns `409`.

**customer\_name** `string` *required*

Customer's name.

**customer\_phone** `string` *required*

Customer's 10-digit mobile number starting with 6–9.

**customer\_email** `string` *required*

Customer's email address.

**payment\_mode** `array of string` *required*

Payment methods offered on the link. At least one. Allowed values: `VPA`, `INTENT`, `QR`, `NETBANKING`, `CREDIT_CARD`, `DEBIT_CARD`, `WALLET` (case-insensitive, no duplicates). Only modes enabled for your account on the provider can be used.

**notification\_mode** `string` *required*

When to send the link to the customer. Allowed values: `IMMEDIATE` (send now), `SCHEDULED` (send at `scheduled_time`), `SKIP` (do not send — you share the link yourself).

**auto\_reminder** `boolean` *required*

Whether FastFlowPe sends automatic payment reminders.

**split** `object` *required*

How to divide the payment.

**split fields**

**type** `string` *required*

`AMOUNT` — each vendor `value` is a rupee amount. `PERCENTAGE` — each vendor `value` is a percentage of `amount`. One type for the whole link; the two cannot be mixed.

**vendors** `array` *required*

**1 to 5 vendors.** Each vendor may appear only once.

**vendor fields**

**vendor\_id** `string (UUID)` *required*

The `id` of one of your vendors. The vendor must be `ACTIVE`, enabled, and registered with the same `psp_provider_id`.

**value** `number` *required*

Greater than `0`, up to 2 decimal places. For `AMOUNT`: rupees. For `PERCENTAGE`: above 0 and at most 100.

**tags** `object`

Free-form key/value labels (string → string) attached to the vendor's share. Up to 10 tags; keys cannot be empty; values 1–255 characters.

**notification\_channels** `array of string`

Allowed values: `EMAIL`, `SMS`, `WHATSAPP` (no duplicates). **Required** unless `notification_mode` is `SKIP` or when `auto_reminder` is `true`.

**reminder\_count** `integer`

Number of reminders, `1` to `3`. Required when `auto_reminder` is `true`. Default `3`.

**scheduled\_time** `string (ISO 8601)`

Required when `notification_mode` is `SCHEDULED`. Same format as `expiry`; cannot be in the past and cannot be later than `expiry`.

**first\_reminder** `string (ISO 8601)`

Required when `notification_mode` is `SKIP`. Same format as `expiry`; cannot be in the past and cannot be later than `expiry`.

**description** `string`

Shown to the customer. Maximum 255 characters.

**redirect\_url** `string`

Where the customer is sent after paying. Maximum 2048 characters.

**Rules checked on creation**

* Vendor amounts must not add up to more than the link `amount`.
* Percentages must not add up to more than `100`.
* With `PERCENTAGE`, every vendor's share must be at least ₹0.01.
* Vendors are re-checked when the customer pays — a vendor blocked after the link was created will make payment on that link fail.

```bash cURL theme={"dark"}
curl --location 'https://api.fastflowpe.com/merchant/easy-split/split-links' \
--header 'x-api-key: <your-x-api-key>' \
--header 'Content-Type: application/json' \
--data '{
  "psp_provider_id": "3f0c7a52-1d6e-4b8a-9c41-5a2e8d7b6f10",
  "amount": 1000.0,
  "expiry": "2026-12-10T18:00:00+05:30",
  "customer_name": "Rahul Sharma",
  "customer_phone": "9123456780",
  "customer_email": "rahul@example.com",
  "payment_mode": [
    "VPA",
    "INTENT",
    "QR"
  ],
  "notification_mode": "IMMEDIATE",
  "notification_channels": [
    "EMAIL",
    "SMS"
  ],
  "auto_reminder": true,
  "reminder_count": 2,
  "order_id": "ORDER-2026-0001",
  "description": "Order #2026-0001",
  "redirect_url": "https://merchant.example.com/payment/complete",
  "split": {
    "type": "PERCENTAGE",
    "vendors": [
      {
        "vendor_id": "7e15f999-cb16-4a3d-b281-4fbe27ffb9b8",
        "value": 30,
        "tags": {
          "order_type": "marketplace"
        }
      },
      {
        "vendor_id": "b2c4f1d8-5a7e-4c93-8d10-2f6e9a3b7c55",
        "value": 20
      }
    ]
  }
}'
```

```python Python theme={"dark"}
import requests
 
url = "https://api.fastflowpe.com/merchant/easy-split/split-links"
headers = {"x-api-key": "<your-x-api-key>", "Content-Type": "application/json"}
payload = {
  "psp_provider_id": "3f0c7a52-1d6e-4b8a-9c41-5a2e8d7b6f10",
  "amount": 1000.0,
  "expiry": "2026-12-10T18:00:00+05:30",
  "customer_name": "Rahul Sharma",
  "customer_phone": "9123456780",
  "customer_email": "rahul@example.com",
  "payment_mode": [
    "VPA",
    "INTENT",
    "QR"
  ],
  "notification_mode": "IMMEDIATE",
  "notification_channels": [
    "EMAIL",
    "SMS"
  ],
  "auto_reminder": True,
  "reminder_count": 2,
  "order_id": "ORDER-2026-0001",
  "description": "Order #2026-0001",
  "redirect_url": "https://merchant.example.com/payment/complete",
  "split": {
    "type": "PERCENTAGE",
    "vendors": [
      {
        "vendor_id": "7e15f999-cb16-4a3d-b281-4fbe27ffb9b8",
        "value": 30,
        "tags": {
          "order_type": "marketplace"
        }
      },
      {
        "vendor_id": "b2c4f1d8-5a7e-4c93-8d10-2f6e9a3b7c55",
        "value": 20
      }
    ]
  }
}
 
response = requests.post(url, json=payload, headers=headers)
print(response.json())
```

```javascript Node.js theme={"dark"}
const response = await fetch("https://api.fastflowpe.com/merchant/easy-split/split-links", {
  method: "POST",
  headers: {
    "x-api-key": "<your-x-api-key>",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "psp_provider_id": "3f0c7a52-1d6e-4b8a-9c41-5a2e8d7b6f10",
    "amount": 1000.0,
    "expiry": "2026-12-10T18:00:00+05:30",
    "customer_name": "Rahul Sharma",
    "customer_phone": "9123456780",
    "customer_email": "rahul@example.com",
    "payment_mode": [
      "VPA",
      "INTENT",
      "QR"
    ],
    "notification_mode": "IMMEDIATE",
    "notification_channels": [
      "EMAIL",
      "SMS"
    ],
    "auto_reminder": true,
    "reminder_count": 2,
    "order_id": "ORDER-2026-0001",
    "description": "Order #2026-0001",
    "redirect_url": "https://merchant.example.com/payment/complete",
    "split": {
      "type": "PERCENTAGE",
      "vendors": [
        {
          "vendor_id": "7e15f999-cb16-4a3d-b281-4fbe27ffb9b8",
          "value": 30,
          "tags": {
            "order_type": "marketplace"
          }
        },
        {
          "vendor_id": "b2c4f1d8-5a7e-4c93-8d10-2f6e9a3b7c55",
          "value": 20
        }
      ]
    }
  }),
});
console.log(await response.json());
```

```java Java theme={"dark"}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
 
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://api.fastflowpe.com/merchant/easy-split/split-links"))
    .header("x-api-key", "<your-x-api-key>")
    .header("Content-Type", "application/json")
    .POST(HttpRequest.BodyPublishers.ofString("{\"psp_provider_id\": \"3f0c7a52-1d6e-4b8a-9c41-5a2e8d7b6f10\", \"amount\": 1000.0, \"expiry\": \"2026-12-10T18:00:00+05:30\", \"customer_name\": \"Rahul Sharma\", \"customer_phone\": \"9123456780\", \"customer_email\": \"rahul@example.com\", \"payment_mode\": [\"VPA\", \"INTENT\", \"QR\"], \"notification_mode\": \"IMMEDIATE\", \"notification_channels\": [\"EMAIL\", \"SMS\"], \"auto_reminder\": true, \"reminder_count\": 2, \"order_id\": \"ORDER-2026-0001\", \"description\": \"Order #2026-0001\", \"redirect_url\": \"https://merchant.example.com/payment/complete\", \"split\": {\"type\": \"PERCENTAGE\", \"vendors\": [{\"vendor_id\": \"7e15f999-cb16-4a3d-b281-4fbe27ffb9b8\", \"value\": 30, \"tags\": {\"order_type\": \"marketplace\"}}, {\"vendor_id\": \"b2c4f1d8-5a7e-4c93-8d10-2f6e9a3b7c55\", \"value\": 20}]}}"))
    .build();
 
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

```go Go theme={"dark"}
package main
 
import (
    "bytes"
    "fmt"
    "io"
    "net/http"
)
 
func main() {
    payload := []byte(`{"psp_provider_id": "3f0c7a52-1d6e-4b8a-9c41-5a2e8d7b6f10", "amount": 1000.0, "expiry": "2026-12-10T18:00:00+05:30", "customer_name": "Rahul Sharma", "customer_phone": "9123456780", "customer_email": "rahul@example.com", "payment_mode": ["VPA", "INTENT", "QR"], "notification_mode": "IMMEDIATE", "notification_channels": ["EMAIL", "SMS"], "auto_reminder": true, "reminder_count": 2, "order_id": "ORDER-2026-0001", "description": "Order #2026-0001", "redirect_url": "https://merchant.example.com/payment/complete", "split": {"type": "PERCENTAGE", "vendors": [{"vendor_id": "7e15f999-cb16-4a3d-b281-4fbe27ffb9b8", "value": 30, "tags": {"order_type": "marketplace"}}, {"vendor_id": "b2c4f1d8-5a7e-4c93-8d10-2f6e9a3b7c55", "value": 20}]}}`)
    req, _ := http.NewRequest("POST", "https://api.fastflowpe.com/merchant/easy-split/split-links", bytes.NewBuffer(payload))
    req.Header.Set("x-api-key", "<your-x-api-key>")
    req.Header.Set("Content-Type", "application/json")
    resp, _ := http.DefaultClient.Do(req)
    defer resp.Body.Close()
    body, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body))
}
```

```php PHP theme={"dark"}
<?php
$ch = curl_init("https://api.fastflowpe.com/merchant/easy-split/split-links");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"psp_provider_id": "3f0c7a52-1d6e-4b8a-9c41-5a2e8d7b6f10", "amount": 1000.0, "expiry": "2026-12-10T18:00:00+05:30", "customer_name": "Rahul Sharma", "customer_phone": "9123456780", "customer_email": "rahul@example.com", "payment_mode": ["VPA", "INTENT", "QR"], "notification_mode": "IMMEDIATE", "notification_channels": ["EMAIL", "SMS"], "auto_reminder": true, "reminder_count": 2, "order_id": "ORDER-2026-0001", "description": "Order #2026-0001", "redirect_url": "https://merchant.example.com/payment/complete", "split": {"type": "PERCENTAGE", "vendors": [{"vendor_id": "7e15f999-cb16-4a3d-b281-4fbe27ffb9b8", "value": 30, "tags": {"order_type": "marketplace"}}, {"vendor_id": "b2c4f1d8-5a7e-4c93-8d10-2f6e9a3b7c55", "value": 20}]}}');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "x-api-key: <your-x-api-key>",
    "Content-Type: application/json",
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

```ruby Ruby theme={"dark"}
require 'net/http'
require 'uri'
require 'json'
 
uri = URI('https://api.fastflowpe.com/merchant/easy-split/split-links')
request = Net::HTTP::Post.new(uri)
request['x-api-key'] = '<your-x-api-key>'
request['Content-Type'] = 'application/json'
request.body = '{"psp_provider_id": "3f0c7a52-1d6e-4b8a-9c41-5a2e8d7b6f10", "amount": 1000.0, "expiry": "2026-12-10T18:00:00+05:30", "customer_name": "Rahul Sharma", "customer_phone": "9123456780", "customer_email": "rahul@example.com", "payment_mode": ["VPA", "INTENT", "QR"], "notification_mode": "IMMEDIATE", "notification_channels": ["EMAIL", "SMS"], "auto_reminder": true, "reminder_count": 2, "order_id": "ORDER-2026-0001", "description": "Order #2026-0001", "redirect_url": "https://merchant.example.com/payment/complete", "split": {"type": "PERCENTAGE", "vendors": [{"vendor_id": "7e15f999-cb16-4a3d-b281-4fbe27ffb9b8", "value": 30, "tags": {"order_type": "marketplace"}}, {"vendor_id": "b2c4f1d8-5a7e-4c93-8d10-2f6e9a3b7c55", "value": 20}]}}'
 
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }
puts response.body
```

```json 201 theme={"dark"}
{
    "status": "success",
    "status_code": 201,
    "message": "Payment link created",
    "data": {
        "payment_link_id": "c0d8a4e2-91b7-4f35-a6c8-4e5f1b2d3a90",
        "merchant_id": "<Your merchant id>",
        "order_id": "ORDER-2026-0001",
        "slug": "k3Jx9Qa2",
        "description": "Order #2026-0001",
        "one_time": true,
        "expiry": "2026-12-10 18:00:00",
        "scheduled_time": null,
        "first_reminder": null,
        "auto_reminder": true,
        "reminder_count": 2,
        "amount": 1000.0,
        "customer_info": {
            "name": "Rahul Sharma",
            "phone": "9123456780",
            "email": "rahul@example.com",
            "country_code": "+91"
        },
        "status": "CREATED",
        "payment_status": "PENDING",
        "payment_mode": [
            "VPA",
            "INTENT",
            "QR"
        ],
        "psp_provider_id": "3f0c7a52-1d6e-4b8a-9c41-5a2e8d7b6f10",
        "redirect_url": "https://merchant.example.com/payment/complete",
        "payment_url": "https://pay.fastflowpe.com/pay/k3Jx9Qa2",
        "delivery_message": "We've sent the link to Rahul Sharma via EMAIL, SMS.",
        "split": {
            "type": "PERCENTAGE",
            "vendors": [
                {
                    "vendor_id": "7e15f999-cb16-4a3d-b281-4fbe27ffb9b8",
                    "vendor_ref": "FFP_VENDOR_7e15f999cb164a3db2814fbe27ffb9b8",
                    "amount": 300.0,
                    "percentage": 30.0,
                    "tags": {
                        "order_type": "marketplace"
                    },
                    "name": "Acme Traders",
                    "value": 30.0
                },
                {
                    "vendor_id": "b2c4f1d8-5a7e-4c93-8d10-2f6e9a3b7c55",
                    "vendor_ref": "FFP_VENDOR_b2c4f1d85a7e4c938d102f6e9a3b7c55",
                    "amount": 200.0,
                    "percentage": 20.0,
                    "tags": null,
                    "name": "Bright Supplies",
                    "value": 20.0
                }
            ],
            "total_to_vendors": 500.0,
            "merchant_retains": 500.0
        }
    }
}
```

```json 400 theme={"dark"}
{
    "status": "error",
    "status_code": 400,
    "message": "Vendor b2c4f1d8-5a7e-4c93-8d10-2f6e9a3b7c55 is not active at the PSP (status: PENDING)",
    "data": null
}
```

```json 409 theme={"dark"}
{
    "status": "error",
    "status_code": 409,
    "message": "Payment link with this order ID already exists.",
    "data": null
}
```

## Response

**status** `string`

Top-level API call result — `success` or `error`.

**status\_code** `integer`

HTTP-style status code of the result (e.g., `200`, `201`, `404`).

**message** `string`

Human-readable description of the result.

**data** `object`

The created link.

**data fields**

**payment\_link\_id** `string (UUID)`

FastFlowPe's ID for the link.

**order\_id** `string`

Your order reference, as sent.

**payment\_url** `string`

The link to share with the customer.

**slug** `string`

Short unique code of the link (the last part of `payment_url`).

**status** `string`

Link status. See the [allowed status values](https://fastflowpe.com/docs/easy-split/list-split-links.md#link-status-values).

**payment\_status** `string`

Payment state of the link, e.g. `PENDING` until the customer pays.

**delivery\_message** `string`

Human-readable note on how/when the link is delivered.

**split** `object`

The resolved split. `type` as requested; `vendors[]` with `vendor_id`, `name`, `value` (as you sent it), `amount` (rupee share) and `percentage` (only for `PERCENTAGE` splits); `total_to_vendors` and `merchant_retains` (rupees).

**…**

The other fields (`amount`, `customer_info`, `expiry`, `payment_mode`, `psp_provider_id`, `redirect_url`, `auto_reminder`, `reminder_count`, `scheduled_time`, `first_reminder`, `one_time`, `description`, `merchant_id`) echo the link's settings.

## Error responses

**400**

Validation error (see `detail`), **or** an invalid split: vendor not found, vendor not `ACTIVE`/inactive, vendor registered with a different provider, duplicate vendor, mixed or over-allocated amounts/percentages, more than 5 vendors. The `message` names the problem.

**403**

Easy Split is not enabled for your account on this provider, or the request was made as a sub-merchant ("Easy Split is available to the parent merchant only").

**409**

A payment link with this `order_id` already exists.

**500**

Unexpected server error.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.