Frequent Payment

Updates frequent payment details

Changed on

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

patch/frequent/{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

Resource Identification

Request body

object required
status, 'active' | 'deleted'

Status of the frequent payment

expiration_time, string Y-m-d H:i

Expiration date and time for the payment

currency, 'EUR'

ISO 4217 currency code. If not specified, the default currency is set to EUR.

customer, Customer

The Customer object contains the necessary details about the customer involved in the transaction. This includes identification information, contact details, and preferences. All fields are optional unless specified otherwise.

key, string

The merchant's key for identifying the payment.

max_value, number double

Maximum value allowed for transactions. Send 0 to remove the maximum.

min_value, number double

Minimum value allowed for transactions. Send 0 to remove the minimum.

unlimited_payments, boolean

Transactions will be unlimited, max or min value will be refreshed on each payment.

sdd_mandate, SddMandate

The SDD Mandate object contains the necessary fields to create a SEPA Direct Debit mandate. This object ensures that all required information is provided to authorize and process SEPA Direct Debit transactions. Object required when method is Direct Debit.

Example request

{
  "status": "active",
  "expiration_time": "2017-12-12 16:05",
  "currency": "EUR",
  "customer": {
    "id": "649e88cf-0b78-4c36-8f99-33f5ebb812a1",
    "name": "John Doe",
    "email": "john.doe@example.com",
    "phone": "911234567",
    "phone_indicative": "+351",
    "fiscal_number": "PT123456789",
    "key": "customer Key Example",
    "language": "PT"
  },
  "key": "Key Example",
  "max_value": 25.5,
  "min_value": 10,
  "sdd_mandate": {
    "iban": "PT50002700000001234567833",
    "key": "Sdd mandate Key Example",
    "name": "John Doe",
    "email": "john.doe@example.com",
    "phone": "911234567",
    "account_holder": "John Doe",
    "country_code": "PT",
    "max_num_debits": "12",
    "billing_entity": "PT16103627"
  }
}

Response

OK

object required
status, string

Status of the request

message, string[]

Array of status messages

id, string uuid

Unique identifier for the frequent payment

method, object

Payment method details

customer, object

Customer information

Example response

{
  "status": "ok",
  "message": [
    "Your request was successfully created"
  ],
  "id": "86401037-1c8d-4cf3-9172-d0a29b17b9fd",
  "method": {
    "type": "CC",
    "status": "waiting",
    "url": "https://cc.test.easypay.pt/start/86401037-1c8d-4cf3-9172-d0a29b17b9fd",
    "entity": "59126",
    "reference": "810000618",
    "sdd_mandate": {
      "id": "12345678901",
      "iban": "PT50002700000001234567833",
      "key": "Key Example",
      "name": "Name Example",
      "email": "customer@example.com",
      "phone": "911234567",
      "account_holder": "Acount Name Example",
      "country_code": "PT",
      "max_num_debits": "12",
      "reference_adc": "987654321123"
    }
  },
  "customer": {
    "id": "e7bb115b-3e59-441a-bdb4-60b0f066c2d0"
  }
}

Changes

    • info

      the max_value request property's min was decreased from 0.01 to 0.00

    • info

      the min_value request property's min was decreased from 0.01 to 0.00

    • info

      the request optional property sdd_mandate/billing_entity became read-only