Pay By Link

List payment link details

Changed on

Lists a payment link with all the details identified by its unique ID.

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

get/link/{id}

Request

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

Path parameters

id, string uuid required

Unique identifier of the payment link.

Response

OK

LinkResponseObject required
id, string uuid required

A unique identifier for the resource. While typically formatted as a UUID (Universally Unique Identifier), it can also be in other formats as defined by the user. This field ensures the resource can be distinctly recognized and referenced.

created_at, string date-time required

String with the date on which this Pay By Link was created.

modified_at, string date-time

String with the date on which this Pay By Link was modified. Omitted while the link has never been modified.

expiration_time, string date-time required

The last possible time to make the payment.

type, 'SINGLE' | 'FREQUENT' | 'SUBSCRIPTION' required

Specifies the type of payment being performed. Possible values are "Single" (One-time transactions that will let your customers pay an amount of money to you), "Frequent" (Are repeatable transactions of varying sums without the client having to enter their payment details again), and "Subscription" (periodic payments of the same amount of money, configured through Checkout or our Payments API). For now, Pay By Link only supports SINGLE payments, FREQUENT and SUBSCRIPTION links are coming soon.

customer, CustomerResponse required

The Customer object contains detailed information about the customer required to create a pay-by-link.

communication_channels, string[] required

The communication channels the final customer link was forwarded to. Always present, and empty when the link was created without any channel.

payment, object required

Payment object with the payment methods, capture object and payment type object. Only the payment type you asked for is present.

url, string uri required

Link that redirects to the Easypay checkout payment page.

image, string uri required

Link that redirects to a QR code to access the payment checkout page.

status, 'ACTIVE' | 'EXPIRED' | 'FINALIZED' | 'CANCELLED' required

Current lifecycle state of the link. This is separate from the status of the payment made through it.

Example response

{
  "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

      the image response's property format changed from url to uri for status

    • breaking

      the invalid_params response's property type changed from object to array for status

    • breaking

      the payment/subscription/frequency response's property type changed from no type to string for status

    41 more changes in this revision