Creating a recurring payment via Web services
Use the Charge/CreateSubscription method of the REST web Service / API
This solution consists in making a call to the Charge/CreateSubscription Web Service by transmitting the UMR to be debited in the paymentMethodToken attribute.
The Merchant defines the recurrence rule via the rrule attribute and the recurring payment start date via the attribute. effectDate.
The start date must be at least 14 days after the current date.
If the operation is successful, the Web Service returns the reference of the subscription created in the subscriptionId attribute.
Example of a request:
{ "amount":"3990", "currency":"EUR", "effectDate":"2021-06-14T00:00:00+01:00", "paymentMethodToken":"0d75bd5f1fef4e779a4154e65abb39ca", "rrule":"RRULE:FREQ=MONTHLY;BYMONTHDAY=1;INTERVAL=1", "orderId":""myOrderId-803362" }
Example of a response:
"answer": { "subscriptionId": "20210531gh5h5R", "_type": "V4/SubscriptionCreated" }