> Index of every page: https://docs.merchantservicedepot.com/llms.txt

# List payment links


`GET /v1/payment_links`

Cursor-paginated.

Optional `status` filter: `active`, `paid` or `cancelled`. A bad value is a 422 rather than an unfiltered list.

Auth: a secret key with the `paymentLinks.list` permission. Returns `200` with Payment link.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | No | Maximum number of results to return. Defaults to 10 and cannot exceed 100. |
| `startingAfter` | query | string | No | Return results after this resource ID for cursor pagination. |
| `status` | query | string | No | Filter or update by the resource status. |

## Request

**curl**

```curl
curl -X GET "https://payments-api-sandbox.merchantservicedepot.com/v1/payment_links?limit=10" \
  -H "Authorization: Bearer $MYELA_API_KEY"
```

**Node**

```node
const res = await fetch("https://payments-api-sandbox.merchantservicedepot.com/v1/payment_links?limit=10", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MYELA_API_KEY}`,
  },
});

if (!res.ok) {
  const { error } = await res.json();
  // Branch on error.code — never on error.message.
  throw new Error(error.code);
}
const data = await res.json();
```

**Python**

```python
import os
import requests

res = requests.get(
    "https://payments-api-sandbox.merchantservicedepot.com/v1/payment_links?limit=10",
    headers={
        "Authorization": f"Bearer {os.environ['MYELA_API_KEY']}",
    },
)

if not res.ok:
    # Branch on error["code"] — never on error["message"].
    raise RuntimeError(res.json()["error"]["code"])
data = res.json()
```

## Response

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | Unique payment link identifier. |
| `object` | "payment_link" | Stable resource discriminator. |
| `status` | string | One of active, paid or cancelled. There is no expired status — expiry is decided by comparing expiresAt when the page is opened. |
| `amount` | integer | Amount to collect, in minor units. |
| `currency` | string | Three-letter ISO currency code. |
| `url` | string | The page to send the payer to. Hosted on a Myela domain — never a provider's. |
| `description` | string | What the payer is paying for. Shown on the page. |
| `expiresAt` | string | When the link stops accepting payment. Always present. |
| `paidAt` | string | When the link was paid. Present once it has been. |
| `paymentId` | string | The payment that settled this link. |
| `pendingConfirmation` | object | Present only while a charge on this link is unresolved. The link still reports active; every further attempt is refused, and so is cancelling it (409, `details.code` `PAYMENT_PENDING_CONFIRMATION`), until the named payment is reconciled, and still afterwards if it resolved as authorized but never captured. |
| `createdAt` | string | When the link was created. |

```json
{
  "object": "list",
  "data": [
    {
      "id": "plink_01JEXAMPLE",
      "object": "payment_link",
      "status": "active",
      "amount": 2500,
      "currency": "USD",
      "url": "https://example.com/pay/9Yb3xK1t0QWEs7vLzR2mNc4h",
      "description": "Deposit",
      "expiresAt": "2026-12-01T00:00:00.000Z",
      "paidAt": "2026-09-14T18:04:11.000Z",
      "paymentId": "pay_01JEXAMPLE",
      "pendingConfirmation": {
        "paymentId": "pay_01JEXAMPLE",
        "since": "2026-09-14T18:04:11.000Z"
      },
      "createdAt": "2026-09-01T12:00:00.000Z"
    }
  ],
  "hasMore": false
}
```

Source: https://docs.merchantservicedepot.com/api-reference/list-payment-links/
