Skip to content

getMyUsedLinks

List your completed (paid) payment links.

Request

POST /api/v2/getMyUsedLinks

Headers

Header Required Description
token Yes Your API Key
Content-Type Yes application/json

Body Parameters

Field Type Required Default Description
limit integer No 10 Maximum number of results to return
search string No Filter by recipient_note (partial match)

Response

Success

{
  "data": [
    {
      "linktopay_id": "99250",
      "user_id": "b44c4429-4a7b-4e27-85af-c1c2f43f4ffe",
      "recipient_note": "Payment for Order #ORD_20260512_ADzwvsnkfb",
      "amount": "72.96",
      "is_cancelled": "No",
      "recipients": "[{\"share\":2,\"token\":\"asdf\"}]",
      "is_split_link": "true",
      "paid_on": "2026-05-12 20:10:17",
      "transaction_type": "Split"
    },
    {
      "linktopay_id": "99248",
      "user_id": "b44c4429-4a7b-4e27-85af-c1c2f43f4ffe",
      "recipient_note": "Test-Ala",
      "amount": "5.00",
      "is_cancelled": "No",
      "recipients": "[{\"token\":\"testuser-a\",\"share\":4.9}]",
      "is_split_link": "true",
      "paid_on": "2026-05-12 06:54:17",
      "transaction_type": "Split"
    }
  ],
  "ResponseCode": 1,
  "ResponseMsg": "List retrived successfully",
  "Result": "True",
  "ServerTime": "CEST"
}

Response Fields (per item)

Field Type Description
linktopay_id string Link ID
amount string Payment amount
recipient_note string Note set on the link
is_cancelled string Whether the link was cancelled
recipients string|null JSON-encoded recipients (null for basic links)
is_split_link string "true" / "false"
paid_on string Timestamp when the payment was completed
transaction_type string "Basic" or "Split"

Examples

curl -X POST https://app.secpaid.com/api/v2/getMyUsedLinks \
  -H "Content-Type: application/json" \
  -H "token: YOUR_API_KEY" \
  -d '{"limit": 50}'
const response = await fetch("https://app.secpaid.com/api/v2/getMyUsedLinks", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "token": "YOUR_API_KEY"
  },
  body: JSON.stringify({ limit: 50 })
});
$response = Http::withHeaders([
    'token' => 'YOUR_API_KEY',
])->post('https://app.secpaid.com/api/v2/getMyUsedLinks', [
    'limit' => 50,
]);

Notes

  • Returns only links with status Used belonging to your account
  • Results ordered by payment date (most recently paid first)
  • The paid_on field reflects when the payment was completed
  • Use limit to control result size