Create and manage one-time payment transactions
Easypay Payments API (2.0)
- Sandboxhttps://api.test.easypay.pt/2.0/checkout/{id}
- Productionhttps://api.prod.easypay.pt/2.0/checkout/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.test.easypay.pt/2.0/checkout/{id}' \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92'{ "status": "failed", "message": [ "string" ], "checkout": { "id": "string", "status": "pending" }, "payment": { "id": "string", "status": "waiting", "methods": [ … ], "type": "single", "expiration_time": "string", "currency": "string", "key": "string", "max_value": 0, "min_value": 0, "unlimited_payments": true, "frequency": "string", "max_captures": 0, "start_time": "string", "failover": true, "capture_now": true, "retries": 0, "notification": { … } }, "value": 0 }
- Sandboxhttps://api.test.easypay.pt/2.0/checkout/{id}
- Productionhttps://api.prod.easypay.pt/2.0/checkout/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://api.test.easypay.pt/2.0/checkout/{id}' \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92'Checkout request details
Only the first value in the Array is considered (e.g. ['single', 'frequent'] would be equivalent to ['single']).
Describing the payment configuration.
| Payment Method | Single Payment | Frequent Payment | Subscription Payment |
|---|---|---|---|
| CC (Credit Card) | x | x | x |
| DD (Direct Debit) | x | x | x |
| MBW (MB WAY) | x | x | - |
| MB (Multibanco) | x | x | - |
| VI (Virtual IBAN) | x | x | - |
| SW (Samsung Wallet) | x | - | - |
| AP (Apple Pay) | x | - | - |
| GP (Google Pay) | x | - | - |
Specifies the type of financial operation being performed.
This property is used only for Single Payments.
| TYPE | DESCRIPTION |
|---|---|
| sale | a complete transaction where funds are immediately captured. |
| authorisation | a temporary hold on funds pending a future capture. |
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.
The last possible time to make the payment. Applicable in Multibanco payments.
Note: If the expiration time is less than the default checkout session expiration (which is 30 minutes), the user won't be able to interact with the Checkout after that time.
The currency code in ISO 4217 format (e.g., "EUR" for Euro). This field specifies the type of currency used in financial operation.
Additional property for subscription payments.
Additional property for subscription payments.
Defines a maximum number of captures, is required when no expiration_time is set.
Additional property for subscription payments. Defines the start of the billing cycles.
Additional property for subscription payments.
After all retries failed, the payment cycle can have another try with another single method.
Additional property for subscription payments.
Whether to schedule an immediate capture and schedule the second one for start_time.
Additional property for subscription payments.
Number of retries in each payment cycle.
The chosen frequency will define the max number of possible retries.
An object that holds the details specific to a Multibanco transaction. This property is used only for Single Payments.
Order represent the order/cart being paid. Order is required if type is one single or subscription.
- Sandboxhttps://api.test.easypay.pt/2.0/checkout
- Productionhttps://api.prod.easypay.pt/2.0/checkout
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.test.easypay.pt/2.0/checkout \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92' \
-H 'Content-Type: application/json' \
-d '{
"type": [
"single"
],
"payment": {
"methods": [
"mb",
"cc",
"mbw",
"dd",
"vi",
"ap",
"gp",
"sw"
],
"type": "sale",
"capture": {
"descriptive": "Descriptive Example"
},
"expiration_time": "2025-06-12 11:24",
"currency": "EUR",
"key": "Example Key",
"sdd_mandate": {
"iban": "PT50002700000001234567833",
"name": "Name Example",
"email": "customer@example.com",
"phone": "911234567",
"account_holder": "Acount Name Example"
},
"max_value": 20,
"min_value": 2,
"unlimited_payments": false,
"frequency": "1W",
"max_captures": 10,
"start_time": "2025-06-12 11:24",
"failover": true,
"capture_now": true,
"retries": 2,
"multibanco": {
"product": "SPG",
"start_time": "2025-07-25T10:22:53Z",
"expiration_time": "2025-08-24T10:22:52Z"
}
},
"order": {
"items": [
{
"description": "Item in Shopping Cart",
"quantity": 2,
"key": "Example Key",
"value": 17.5
}
],
"key": "Example Key",
"value": 17.5
},
"customer": {
"name": "Customer Example",
"email": "customer@example.com",
"phone": "911234567"
}
}'Created
Session token to be used by the rest of the Checkout process.
{ "id": "10d3a41a-c9c4-486e-8da7-9490e5f097b7", "session": "XkhRqoQtbBakUnjEJA4lYSCtboITWSb-ijxRMWKj7C9ormZ_4JubSB3qjy4XuORJFSrR0OsQ0ypE2Ws9Zl0N2REmR0CMNewH8ghyR1NBnPzDJ1AAuj9LvAhdv9SS-MXRh20_jmVz0MTcaD6E9WfHMiGSyej8eLMaE2hbSHn8DAO7kUSy8nzIIIUbR3pbpEpwxeO6fgHB3hdLGWrGUjeRq-Dq1Q_RF_ZWDPOGPwehXb3YRTatcjBG_2yoyGWWBaABOlkOx_uLaZIdrHMRXaDwLFDoN-eiu3BH1KKrut6pcE_Gc6laTf2AINBQIuSzKHLT4MFpTkrxdfPiD67w8aENm2HuzFc08I46KxdQG-2dSN522jZWDC2z4r4HFZ8LWVlDPuLbpui-WoWOJrJAnW3nPhyaKfUeu4KuU3BKYtJrtOoqs5ingkKWen0jm6AuFeZDeYRlRtj19S6d3P4q7Om3PVwil7c0K0brq31SmLHZdvsG_gHOPSZ6qrQy_95NZO0x934tBIUK91C1Bnm1Z9wA2Pp2hIeprOXMuZXkuanODro=", "config": null }