Creates a Subscription.
Required scope: subscription:create
Payment configuration object to generate a payment
Only required to create a subscription from an active Frequent Payment.
Some properties like customer and sdd_mandate are inherited by the subscriptions.
So it's not necessary to send them in the request creation.
The last possible time to make the payment.
Required only when max_captures and/or unlimited_payments are NOT set.
The currency code in ISO 4217 format (e.g., "EUR" for Euro). This field specifies the type of currency used in financial operation.
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 payment value.
Will be rounded to 2 decimals.
Defining the frequency that the cycles are charged.
Defining the total of cycles that will be charged.
Required only when expiration_time and/or unlimited_payments are NOT set.
When this property is set, unlimited cycles will be charged until the subscription is inactivated or deleted.
Defining the start of billing cycles.
After all retries failed, the payment cycle can have another try with another single method.
Whether to schedule an immediate capture and schedule the second one for start_time.
Number of tries for every cycle of payments.
The maximum number of retries that can occur will be determined by the frequency that is selected.
If a capture is unsuccessful for any reason, it will attempt to charge once more until the allotted number of attempts is reached.
- Sandboxhttps://api.test.easypay.pt/2.0/subscription
- Productionhttps://api.prod.easypay.pt/2.0/subscription
- Create a Subscription with a CC payment method
- Create a Subscription with a DD payment method
- Full filled example
- Create a Subscription with a Frequent Payment
- Create a Subscription with unlimited payments
curl -i -X POST \
https://api.test.easypay.pt/2.0/subscription \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92' \
-H 'Content-Type: application/json' \
-d '{
"expiration_time": "2022-12-04 12:00",
"max_captures": 2,
"start_time": "2022-12-04 12:00",
"value": 17.55,
"frequency": "1D",
"method": "CC"
}'Created
The Customer object contains detailed information about the customer involved in the transaction.
ISO 4217 currency code. If not specified, the default currency is set to EUR.
- Response from CC method
- Response from DD method
{ "status": "ok", "message": { "id": "458b2fc4-3092-4de3-abd4-fe1600c09420", "key": "subscription 02536985", "expiration_time": "2099-01-15 00:00", "start_time": "2027-01-15 00:00", "frequency": "1M", "retries": 2, "max_captures": 12, "failover": false, "capture_now": true, "unlimited_payments": false, "customer": { … }, "method": { … }, "transactions": [], "currency": "EUR", "value": 10.55, "created_at": "2025-08-05 13:44:29" } }