Pay By Link

List all payment links

Changed on

List all the payment links. Results come back a page at a time, with limit capped at 100. Ask for more than that and you get a 409, ask for less than 1 and you get a 400.

Required scope: <code style="background:#e8f0fe;color:#1a73e8;padding:2px 8px;border-radius:12px;font-size:0.85em">link:read</code>

get/link

Request

  • Base URL
    https://api.test.easypay.pt/2.0
  • Auth
    API key in header AccountId and API key in header ApiKey

Query parameters

cursor, string

The cursor parameter is used for pagination. It specifies the pointer to the start of the next set of results in a sequence of paginated data. Typically, this is a unique identifier of the last item from the previous response. If not provided, the API fetches the first page of results.

limit, number

The limit parameter is used for pagination. It specifies the maximum number of entries to return in a single page of results. Max 100.

id, string uuid

UUID from a created Pay By Link.

amount, string
Example:interval(10.00,50.00)

Filter Pay By Links by amount, as the range interval(min,max). Leave either bound empty to make the range open-ended, as in interval(10.00,) for everything from €10 up.

customer_name, string

Filter Pay By Links by customer name.

email, string email

Filter Pay By Links by customer email.

phone_number, string
Example:+351911234567

Filter Pay By Links by customer phone number, in the E.164 pattern.

created_at, string
Example:interval(2025-01-01T00:00:00Z,2025-01-31T23:59:59Z)

Filter Pay By Links by creation date. Takes either a single RFC3339 timestamp or the range interval(from,to).

modified_at, string
Example:interval(2025-01-01T00:00:00Z,2025-01-31T23:59:59Z)

Filter Pay By Links by modification date. Takes either a single RFC3339 timestamp or the range interval(from,to).

expiration_time, string
Example:interval(2025-01-01T00:00:00Z,2025-01-31T23:59:59Z)

Filter Pay By Links by expiration date. Takes either a single RFC3339 timestamp or the range interval(from,to).

payment_method[], string[]

All the payment methods available to create a pay-by-link payment.

Filter Pay By Links by payment methods.

[
  "MBW"
]
status[], StatusResponse[]

Filter Pay By Links by link status.

Response

OK

object required
metadata, MetadataCursor required

An object containing additional information about the response. It includes details that help manage and navigate the retrieved data.

data, LinkResponseObject[] required

Example response

{
  "metadata": {
    "next_cursor": "lL_j7ilk7rc",
    "count": 10
  },
  "data": [
    {
      "created_at": "2025-06-16T13:32:32Z",
      "modified_at": "2025-06-16T13:32:32Z",
      "expiration_time": "2026-06-10T09:27:55Z",
      "customer": {
        "name": "Jonh Doe",
        "email": "example@easypay.pt",
        "phone": "+351911234567"
      },
      "communication_channels": [
        "SMS"
      ],
      "payment": {
        "methods": [
          "MBW"
        ],
        "single": {
          "requested_amount": "10.45"
        },
        "frequent": {
          "minimum_amount": "5",
          "maximum_amount": "10"
        },
        "subscription": {
          "maximum_captures": 100,
          "start_time": "2025-01-15"
        }
      },
      "url": "https://easypay.pt/s/XStDvnMKZaN",
      "image": "https://cdn.easypay.pt/images/qr/XStDvnMKZaN"
    }
  ]
}

Changes

    • breaking

      added the pattern ^\+[1-9]\d{1,14}$ to the query request parameter phone_number

    • breaking

      added the pattern ^interval\(([-+]?[0-9]+)?(?:\.[0-9]+)?,([-+]?[0-9]+)?(?:\.[0-9]+)?\)$ to the query request parameter amount

    • breaking

      for the query request parameter email, the format changed from no format to email

    47 more changes in this revision