Pay By Link

Updates the expiration time of a payment link identified by its unique ID. Pushing the expiration of an already expired link back into the future makes it active again. A link that is cancelled or finalized answers with a 409. The updated link comes back wrapped in a data object.

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

patch/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.

Request body

object required
expiration_time, string date-time required

RFC3339 formatted time for the link expiration date

Response

OK

object required
data, LinkResponseObject required

Example response

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

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

    • breaking

      the status response's property type changed from string to number for status

    • warning

      removed the optional property communication_channels from the response with the status

    35 more changes in this revision