Create and manage one-time payment transactions
- Updates the split of a capture
Easypay Payments API (2.0)
The cursor parameter is used for pagination. It specifies the pointer to the start of the next set of results in a sequence of paginated data. Typically, this is a unique identifier of the last item from the previous response. If not provided, the API fetches the first page of results.
The limit parameter is used for pagination. It specifies the maximum number of entries to return in a single page of results. Max 100.
Filter records by creation datetime interval in UTC. Maximum allowed range is 30 days. Format: interval(YYYY-MM-DD HH:MM,YYYY-MM-DD HH:MM).
- Sandboxhttps://api.test.easypay.pt/2.0/capture
- Productionhttps://api.prod.easypay.pt/2.0/capture
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.test.easypay.pt/2.0/capture?cursor=string&limit=0&created_at=interval%282006-01-02+15%3A04%2C2006-01-02+15%3A04%29&updated_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'{ "metadata": { "next_cursor": "lL_j7ilk7rc", "count": 10 }, "data": [ { … } ] }
Created
Your internal key identifying this capture
The date when the action should be executed. This field specifies the exact day for capturing the transaction, formatted as "YYYY-MM-DD" (e.g., "2024-06-30"). It is optional and defaults to the current date if not specified.
Whether or not you want to force the 3DS authentication on Credit Cards (used only on Frequent capture without authorisation).
This will appear in the bank statement/mbway application.
- Sandboxhttps://api.test.easypay.pt/2.0/capture/{id}
- Productionhttps://api.prod.easypay.pt/2.0/capture/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.test.easypay.pt/2.0/capture/{id}' \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92' \
-H 'Content-Type: application/json' \
-d '{
"transaction_key": "key example",
"capture_date": "2022-11-11",
"account": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
},
"splits": [
{
"split_key": "example key",
"split_descriptive": "string",
"value": 10.56,
"account": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
},
"margin_value": 0.01,
"margin_account": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}
],
"mbway_sdk": {
"purchase_token": "string",
"initial_timestamp": "string",
"merchant_operation_id": "string",
"payload": "string"
},
"force_3ds": false,
"descriptive": "descriptive example",
"value": 20.55
}'Created
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.
{ "status": "ok", "message": [ "Your request was successfully created" ], "id": "677dbec9-ec19-4a78-9e08-3d2901c7a32b" }
- Sandboxhttps://api.test.easypay.pt/2.0/capture/{id}
- Productionhttps://api.prod.easypay.pt/2.0/capture/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.test.easypay.pt/2.0/capture/{id}' \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92'OK
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.
The date when the action should be executed. This field specifies the exact day for capturing the transaction, formatted as "YYYY-MM-DD" (e.g., "2024-06-30"). It is optional and defaults to the current date if not specified.
An object within the capture request that specifies the details of the account to which the funds should be routed, different from the initially requested account. This ensures that the captured funds are directed to the correct destination as per the specific routing requirements.
A text field that describes the transaction as it will appear on the end user's account statement. This is typically used to provide clear, recognizable information about the payment, such as "Payment of Invoice Nº 1982652" or "Ticket for Queen".
The monetary amount requested for the transaction. This field is formatted as a double, and will be rounded to two decimal places (e.g., "100.00"). The value must be greater than or equal to 0.5.
Indicates the current status of the capture. Possible values include:
- delayed: The capture attempt is scheduled for a future date and does not require further user interaction due to prior consent (e.g., authorization or frequent).
- waiting: The payment instruction has been given, but the chosen payment method requires confirmation from an external entity before the status of the operation is finalized.
- pending: The capture is pending user completion.
- success: The capture has been completed successfully.
- failed: The capture could not be completed due to an error or issue.
- refunded: The capture has been refunded.
This field provides a clear indication of the current state of the capture, helping users understand its progress and outcome.
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.
Specifies the type of payment processed. Possible values include:
- Single: A one-time payment transaction.
- Frequent: A payment that occurs regularly but is not part of a subscription (e.g., recurring manual payments).
- Subscription: A recurring payment that is part of a subscription plan, automatically processed at regular intervals. This field helps to categorize and manage different payment methods based on their frequency and nature.
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 boolean field indicating whether to enforce 3D Secure (3DS) authentication for the transaction. If set to true, 3DS authentication will be required, adding an additional layer of security by verifying the cardholder's identity during the transaction process. If set to false, 3DS authentication will not be enforced. This field helps enhance security and reduce fraud in online payments.
The Refund object contains information required to process a refund. For payment methods that do not support direct refunds, additional fields are required to facilitate a fallback to a bank transfer. This ensures that the customer receives their refund even when the original payment method does not facilitate refunds.
{ "transaction_key": "string", "capture_date": "2025-07-10", "account": { "id": "c0151524-79e6-437a-a549-2ddd7c95e245" }, "descriptive": "string", "value": 38.98, "status": "delayed", "id": "c6056234-a3f9-42de-b944-3ed793fcb6bb", "payment_type": "single", "payment_id": "d43b87f9-9e28-4802-8eaa-6ee91a40ea71", "force_3ds": true, "refunds": { "id": "c0151524-79e6-437a-a549-2ddd7c95e245", "status": "waiting", "transaction_key": "example key", "value": 0.1, "iban": "string", "email": "string", "phone": "string", "account_holder": "string" }, "splits": [ { … } ], "error": { "message": "string" } }
- Sandboxhttps://api.test.easypay.pt/2.0/capture/{capture-uuid}/splits/{capture-split-uuid}
- Productionhttps://api.prod.easypay.pt/2.0/capture/{capture-uuid}/splits/{capture-split-uuid}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://api.test.easypay.pt/2.0/capture/{capture-uuid}/splits/{capture-split-uuid}' \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92' \
-H 'Content-Type: application/json' \
-d '{
"clearing_date": "2006-01-02"
}'{ "status": "ok", "message": [ "Your request was successfully created" ] }