Usa esto cuando a un cliente se le deba cobrar el mismo monto de forma programada, como un servicio mensual.
The following endpoint can be used to add or update a Suscripción within the Hyfin application. When a Suscripción is added to Hyfin, a request will be automatically generated and the customer will be notified via text message, email or both, as described under Who gets notified below. After submitting their payment method, the customer will automatically be charged based on the frequency of the recurring payment.
If the customer is viewing the Suscripción on their device and it gets updated, a message will display letting the customer know the Suscripción has been updated and the new version of the Suscripción will automatically be displayed on the customers device.
Cada cliente está bajo un solo control de notificaciones, determinado a partir del sitio y del cliente. Nunca se almacena y no se puede establecer directamente.
En la API v4:
The following endpoint can be used to add or update a Suscripción. You must replace the {base_url} and {site_id} variable with the site id that was provided when the site was created.
{
"externalId": "439772921",
"description": "Gold+ Plan",
"amount": 3499,
"frequency": "Monthly",
"frequencyUnits": 1,
"customer": {
"externalId": "39772634",
"firstName": "John",
"lastName": "Doe",
"mobilePhone": "111-222-3333",
"email": "johndoe@abc.com"
},
"webhookUrl": "https://yourcompany.com/webhook"
}
{
"success": true,
"action": "added",
"_id": "60f720d248f143332af022e0",
"updatedAt": "2025-05-30T19:19:44.143Z",
"link": "https://site.url/KA39T1A45JL"
}