Create and manage one-time payment transactions
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 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/out_payment
- Productionhttps://api.prod.easypay.pt/2.0/out_payment
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.test.easypay.pt/2.0/out_payment?page=1&records_per_page=20&method=transfer&type=normal&id=bb3e7e60-20f3-4208-9b21-64c635a51f42&key=01J32EESEC1Z543P7J3PKSF1Q9&value=10.32&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'{ "meta": { "page": { … }, "records": { … }, "links": { … } }, "data": [ { … }, { … } ] }
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.
- Sandboxhttps://api.test.easypay.pt/2.0/out_payment
- Productionhttps://api.prod.easypay.pt/2.0/out_payment
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.test.easypay.pt/2.0/out_payment \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92' \
-H 'Content-Type: application/json' \
-H 'Signature: YOUR_API_KEY_HERE' \
-d '{
"customer": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "Customer Example",
"email": "user@example.com",
"phone": "911234567",
"phone_indicative": "+351",
"fiscal_number": "PT123456789",
"key": "Example Key",
"language": "PT"
},
"key": "Example Key",
"value": 0.5,
"type": "normal",
"schedule_at": "2019-08-24T14:15:22Z",
"descriptive": "Descriptive Example",
"account": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
},
"out_account": {
"account_holder": "Acount Name Example",
"iban": "PT50002700000001234567833",
"email": "customer@example.com",
"phone": "351911234567",
"key": "Key Example",
"country_code": "PT"
},
"method": "transfer",
"timestamp": "1696642539"
}'{ "status": "ok", "message": [ "Your request was successfully created" ], "id": "c6056234-a3f9-42de-b944-3ed793fcb6bb", "method": { "type": "transfer", "status": "pending" }, "customer": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "out_account": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" } }
- Sandboxhttps://api.test.easypay.pt/2.0/out_payment/{id}
- Productionhttps://api.prod.easypay.pt/2.0/out_payment/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.test.easypay.pt/2.0/out_payment/{id}' \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92'{ "id": "760d105e-950d-4b41-8017-cad840ca3baa", "status": "success", "type": "normal", "method": "transfer", "descriptive": "descriptive", "customer": { "id": "7e47c256-4bea-41a8-b578-727d60004c7a" }, "account": { "id": "76f190b9-2b8a-4bd0-9490-411241a9dc81" }, "out_account": { "id": "343a8a78-8deb-4d4a-aa41-0a9140c95346" }, "key": "Example Key", "value": 1, "schedule_at": "2022-11-25 10:30:11", "transactions": [ { … } ], "created_at": "2022-11-25 10:30:14" }
- Sandboxhttps://api.test.easypay.pt/2.0/out_payment/{id}
- Productionhttps://api.prod.easypay.pt/2.0/out_payment/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://api.test.easypay.pt/2.0/out_payment/{id}' \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92'