The following endpoint can be used to retrieve the details of a subscription within the Hyfin application.
The following endpoint can be used to retrieve a subscription. You must replace the {base_url} , {_id} and {site_id} variables with the appropriate values.
{
"_id": "61f32dc2f62bdc6a48945067",
"code": "KA39TI45JLMN",
"customer": "61f32dc2f62bdc6a48951255",
"billToCustomer": "61f32dc2f62bdc6a48951255",
"lines": [
{
"name": "",
"description": "Gold+ Plan",
"qty": 1,
"unitPrice": 3499,
"total": 3499,
"isRecurring": true
}
],
"totalsRecurring": {
"taxes": 0,
"discounts": 0,
"total": 3499
},
"totalsFirstInvoice": {
"taxes": 0,
"discounts": 0,
"total": 3499
},
"frequency": "Monthly",
"frequencyUnits": 1,
"startDate": "2022-02-23",
"numberOfPayments": null,
"status": "active",
"webhookUrl": "https://yourcompany.com/webhook",
"attachmentRefs": {
"internal": [],
"external": []
},
"billTo": {
"name": "John Doe",
"attn": "",
"address": {},
"emails": [],
"sms": []
},
"soldTo": {
"name": "John Doe",
"attn": "",
"address": {}
},
"deleted": false
}