Frequent Payment

Create frequent payment

Changed on

Frequent payments are repeatable transactions of varying sums without the client having to enter their payment details again.

It is possible to limit the transferred sums by choosing minimum or maximum values, either to the total sum of the transactions or each individual transaction.

Supported methods for frequent payments are: <i style="color:red">Credit Card, MB WAY, Multibanco, Direct Debit</i> and <i style="color:red">Virtual IBAN</i>

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

post/frequent

Request

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

Request body

object required
expiration_time, string

Expiration date and time for the payment in YYYY-MM-DD HH:mm format

currency, 'EUR' | 'BRL'

Currency code for the payment

customer, Customer required

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.

min_value, number double

Minimum value allowed for transactions

max_value, number double

Maximum value allowed for transactions

unlimited_payments, boolean

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

method, 'MB' | 'CC' | 'DD' | 'MBW' | 'VI' required

Payment method type

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.

multibanco, object

Configuration of the Multibanco payment

Example request

{
  "expiration_time": "2038-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",
  "min_value": 10,
  "max_value": 25.5,
  "method": "DD",
  "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"
  },
  "multibanco": {
    "reference": "505237431"
  }
}

Response

Created

object required
status, string

Status of the request

message, string[]

Array of status messages

id, string uuid

Unique identifier for the created 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",
    "entity": "59126",
    "reference": "810000618",
    "url": "https://cc.test.easypay.pt/start/980d4826-8574-4782-8450-18db150b7c26",
    "iban": "PT50123400007000199799996",
    "alias": "6ac1c9c50be844858afdbc74eb74acbc",
    "sdd_mandate": {
      "id": "50389142122",
      "iban": "PT50002700000001234567833",
      "key": "Sdd mandate Key Example",
      "name": "John Doe",
      "email": "john.doe@easypay.pt",
      "phone": "911345678",
      "account_holder": "John Doe",
      "country_code": "PT",
      "max_num_debits": "12",
      "billing_entity": "PT16103627",
      "reference_adc": "987654321123"
    }
  },
  "customer": {
    "id": "e7bb115b-3e59-441a-bdb4-60b0f066c2d0"
  }
}

Changes

    • info

      the request optional property sdd_mandate/billing_entity became read-only

    • info

      the response optional property method/sdd_mandate/billing_entity became read-only for the status