Create and manage one-time payment transactions
- Updates frequent payment details
Easypay Payments API (2.0)
Specifies the page number of the results to retrieve. This parameter is used for paginating through a collection of records, allowing the client to navigate to different pages of the dataset. The value must be a positive integer (e.g., "1" for the first page).
Specifies the number of records to retrieve per page. This parameter is used for controlling the size of each page in a paginated collection of records. The value must be a positive integer, determining how many records are displayed on each page (e.g., "20" for 20 records per page).
Filter records by expiration datetime interval. Format: interval(YYYY-MM-DD HH:MM,YYYY-MM-DD HH:MM)
Filter by payment method used in the transaction.
A user-defined identifier used to filter the customers. This parameter allows the client to specify a key to retrieve records or transactions that match the provided key. The value is a string and may not be unique, as it is determined by the user.
Filter by the unique identifier for the resource. Typically formatted as a UUID (Universally Unique Identifier).
A user-defined identifier used to filter the results. This parameter allows the client to specify a key to retrieve records or transactions that match the provided key. The value is a string and may not be unique, as it is determined by the user.
- Sandboxhttps://api.test.easypay.pt/2.0/frequent
- Productionhttps://api.prod.easypay.pt/2.0/frequent
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.test.easypay.pt/2.0/frequent?page=1&records_per_page=20&expiration_time=interval%282006-01-02+15%3A04%2C2006-01-02+15%3A04%29&method=mb&customer=01J32EDWGNX94XMWP8PWB23KBK&id=bb3e7e60-20f3-4208-9b21-64c635a51f42&key=01J32EESEC1Z543P7J3PKSF1Q9&created_at=interval%282006-01-02+15%3A04%2C2006-01-02+15%3A04%29' \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92'OK
Metadata object containing pagination and result information for list responses.
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.
A customizable text field for users to input their own identifier for the resource. This can be any string that helps the user uniquely identify or reference the resource in their own system.
Expiration date and time for the frequent payment in ISO 8601 format
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.
The currency code in ISO 4217 format (e.g., "EUR" for Euro). This field specifies the type of currency used in financial operation.
Whether transactions are unlimited, max or min value will be refreshed on each payment
{ "meta": { "page": { … }, "records": { … }, "links": { … } }, "data": [ { … }, { … } ] }
Request
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: Credit Card, MB WAY, Multibanco, Direct Debit and Virtual IBAN
Expiration date and time for the payment in YYYY-MM-DD HH:mm format
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.
Unique identifier for the customer. When provided, it links the transaction to an existing customer record.
Full name of the customer. This is typically displayed on receipts and statements.
Customer's email address. Used for sending receipts, notifications, and payment confirmations.
The contact phone number of the customer, excluding the country code indicator (e.g., "+351"). This field is used for communication purposes. If the payment method is MBWAY, the phone_number is required and is used to send the MBWAY push notification.
The country code indicator for the customer's phone number (e.g., "351" for Portugal). This field is used in conjunction with the phone number to ensure proper international dialing and communication.
Customer's tax identification number or fiscal number. Format may vary by country.
A customizable text field for users to input their own identifier for the customer. This can be any string that helps the user uniquely identify the customer in their own system.
Transactions will be unlimited, max or min value will be refreshed on each payment.
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.
- Sandboxhttps://api.test.easypay.pt/2.0/frequent
- Productionhttps://api.prod.easypay.pt/2.0/frequent
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.test.easypay.pt/2.0/frequent \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92' \
-H 'Content-Type: application/json' \
-d '{
"expiration_time": "2038-12-12 16:05",
"currency": "EUR",
"customer": {
"name": "Customer Example",
"email": "customer@example.com",
"phone": "911234567",
"phone_indicative": "351",
"fiscal_number": "PT123456789",
"key": "Key Example",
"language": "PT"
},
"key": "Key Example",
"max_value": 25.5,
"min_value": 10,
"unlimited_payments": true,
"method": "dd",
"sdd_mandate": {
"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"
}
}'{ "status": "ok", "message": [ "Your request was successfully created" ], "id": "cd90455e-4ab3-42cf-a91c-cfc6e3afa65a", "method": { "type": "cc", "status": "waiting", "url": "https://cc.test.easypay.pt/start/cd90455e-4ab3-42cf-a91c-cfc6e3afa65a" }, "customer": { "id": "68d07e52-3e04-493f-aaeb-bffe7ddb81ee" } }
- Sandboxhttps://api.test.easypay.pt/2.0/frequent/{id}
- Productionhttps://api.prod.easypay.pt/2.0/frequent/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.test.easypay.pt/2.0/frequent/{id}' \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92'OK
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.
A customizable text field for users to input their own identifier for the resource. This can be any string that helps the user uniquely identify or reference the resource in their own system.
Expiration date and time for the frequent payment in ISO 8601 format
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.
The currency code in ISO 4217 format (e.g., "EUR" for Euro). This field specifies the type of currency used in financial operation.
Whether transactions are unlimited, max or min value will be refreshed on each payment
{ "id": "ac1913a3-fd78-4822-8394-0a14f4169247", "key": "Default Key", "expiration_time": "2022-12-12T16:05:00Z", "customer": { "id": "fdc4bc82-8e45-4597-b46d-51d3285cf935", "name": "Robert Stuart", "email": "email@example.com", "phone": "911234567", "key": "Customer key", "language": "PT" }, "method": { "type": "cc", "status": "active", "url": "https://cc.test.easypay.pt/start/ac1913a3-fd78-4822-8394-0a14f4169247", "last_four": "0000", "card_type": "VISA", "expiration_date": "04/25" }, "currency": "EUR", "max_value": 20, "min_value": 2, "unlimited_payments": false, "created_at": "2022-11-23 13:16:58" }
Request
3 times a day (10am, 3pm and 10pm) our system will attempt to close your deleted MB payments.
All CC and MBW authorisations will be deleted, releasing the funds.
All MBW operations waiting for user interaction will be cancelled.
Before 6pm all Sepa Direct Debits waiting for file processing will be cancelled.
- Sandboxhttps://api.test.easypay.pt/2.0/frequent/{id}
- Productionhttps://api.prod.easypay.pt/2.0/frequent/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://api.test.easypay.pt/2.0/frequent/{id}' \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92'Frequent Payment object to edit existing one
Expiration date and time for the payment
ISO 4217 currency code. If not specified, the default currency is set to EUR.
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.
Transactions will be unlimited, max or min value will be refreshed on each payment.
- Sandboxhttps://api.test.easypay.pt/2.0/frequent/{id}
- Productionhttps://api.prod.easypay.pt/2.0/frequent/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://api.test.easypay.pt/2.0/frequent/{id}' \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92' \
-H 'Content-Type: application/json' \
-d '{
"status": "active",
"expiration_time": "2038-12-12 16:05",
"currency": "EUR",
"customer": {
"id": "22ea3cc9-424b-489a-91b7-8955f643dc93",
"name": "Customer Example",
"email": "customer@example.com",
"phone": "911234567",
"phone_indicative": "+351",
"fiscal_number": "PT123456789",
"key": "Key Example",
"language": "PT"
},
"key": "Example Key",
"max_value": 20,
"min_value": 2,
"unlimited_payments": false,
"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"
}
}'{ "method": { "type": "dd", "sdd_mandate": { … } }, "status": "ok", "message": [ "Your request was successfully created" ] }