The following endpoint can be used to retrieve the details of a Suscripción within the Hyfin application.
The following endpoint can be used to retrieve a Suscripción. You must replace the {base_url} , {_id} and {site_id} variables with the appropriate values.
{
"_id": "61f32dc2f62bdc6a48945067",
"description": "Gold+ Plan",
"amount": 997,
"frequency": "Weekly",
"startDate": "2022-02-23",
"numberOfPayments": "",
"endDate": null,
"invoices": [
{
"_id": "61f32dc2f62bdc6a48951255",
"invoiceNumber": "",
"totals": {
"total": 997,
"taxes": 0
},
"notifications": [],
"lines": [],
"description": "Gold+ Plan",
"invoiceDate": "2022-02-23",
"dueDate": "2022-02-23",
"customerMemo": "",
"internalMemo": "",
"payments": [
{
"_id": "62166eda3a8c0517866b9b46",
"gatewayTransactionId": "574823902",
"displayName": "Visa **** 4279",
"amount": 997,
"tip": 0,
"paidOn": "2022-02-23T11:29:01-06:00",
"paymentType": "payment_card",
"transactionType": "capture",
"tax": 0
}
],
"deleted": false
}
],
"status": "active",
"customer": {
"_id": "62166eda3a8c0517866b9r23",
"firstName": "John",
"lastName": "Doe",
"accountName": null,
"mobilePhone": "111-222-3333",
"email": "johndoe@abc.com",
"notificationOptions": {
"notifyPhone": true,
"notifyEmail": false
}
},
"webhookUrl": "https://yourcompany.com/webhook",
"deleted": false
}