List Payment Links

Retrieve a paginated list of all payment links in your account.

Endpoint

GET /api/payment-links

Query Parameters

ParameterTypeRequiredDescription
pageintegerNoPage number (default: 1)
limitintegerNoNumber of items per page (default: 20)
statusstringNoFilter by status (active, expired, completed)

Response

Returns a list of payment link objects.
{
  "data": [
    {
      "id": "pl_123456789",
      "url": "https://checkout.devdraft.ai/pl_123456789",
      "amount": 100.00,
      "currency": "USD",
      "description": "Product purchase",
      "status": "active",
      "created_at": "2023-01-01T00:00:00Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 1
  }
}