Ir al contenido

Restaurant - Subscription

Confirm subscription using email token

POST
/restaurant/subscriptions/confirm-by-token
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

Media type application/json
object
token
required

Token de confirmación enviado por correo electrónico

string
Example
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Subscription confirmed successfully

Media type application/json
object
message
string
subscription
object
user
required

The ID of the user who pays and receives notifications.

MongoId
beneficiary
required

The ID of the beneficiary (hijo). Omitir para suscripción individual.

object
plan
required

The ID of the plan contratado.

object
status
required

Current status of the subscription.

string
Allowed values: draft pending_parent_confirmation pending_payment active suspended cancelled expired
startDate
required

Subscription start date.

string format: date-time
endDate
required

Subscription end date.

string format: date-time
autoRenew

If true, la suscripción se renueva automáticamente.

boolean
default: true
requireParentConfirm

If true, se requiere confirmación parental antes de activar la suscripción.

boolean
createdBy
required

The ID of the user who created this record.

MongoId
updatedBy
required

The ID of the user who last updated this record.

MongoId
createdAt
required

The timestamp when the attendance record was created.

string format: date-time
updatedAt
required

The timestamp when the attendance record was last updated.

string format: date-time
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"
}
}