Restaurant - Subscription
Confirm subscription using email token
const url = 'https://api.inspow.tech/api/v1/restaurant/subscriptions/confirm-by-token';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.inspow.tech/api/v1/restaurant/subscriptions/confirm-by-token \ --header 'Content-Type: application/json' \ --data '{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." }'Allows parent confirmation of subscription using token sent via email
Request Body required
Sección titulada «Request Body required »object
Token de confirmación enviado por correo electrónico
Example
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Responses
Sección titulada « Responses »Subscription confirmed successfully
object
object
The ID of the user who pays and receives notifications.
The ID of the beneficiary (hijo). Omitir para suscripción individual.
object
The ID of the plan contratado.
object
Current status of the subscription.
Subscription start date.
Subscription end date.
If true, la suscripción se renueva automáticamente.
If true, se requiere confirmación parental antes de activar la suscripción.
The ID of the user who created this record.
The ID of the user who last updated this record.
The timestamp when the attendance record was created.
The timestamp when the attendance record was last updated.
Example
{ "subscription": { "user": "645cc3d3f8a9c9a2b88a22c4", "beneficiary": "645cc3d3f8a9c9a2b88a22d7", "plan": "645cc3d3f8a9c9a2b88a22e3", "status": "draft", "startDate": "2025-05-01T00:00:00.000Z", "endDate": "2025-05-31T23:59:59.999Z", "autoRenew": true, "requireParentConfirm": false, "createdBy": "645cc3d3f8a9c9a2b88a22c4", "updatedBy": "645cc3d3f8a9c9a2b88a22c5", "createdAt": "2023-11-25T00:00:00.000Z", "updatedAt": "2023-11-26T00:00:00.000Z" }}