The following endpoint can be used to retrieve the details of a Abonnement within the Hyfin application.
The following endpoint can be used to retrieve a Abonnement. You must replace the {base_url} , {_id} and {site_id} variables with the appropriate values.
{
"_id": "61f32dc2f62bdc6a48945067",
"description": "Gold+ Plan",
"amount": 9.97,
"frequency": "Weekly",
"start_date": "2022-02-23",
"number_of_payments": "",
"end_date": null,
"invoices": [
{
"_id": "61f32dc2f62bdc6a48951255",
"invoice_number": "",
"totals": {
"total": 9.97,
"taxes": 0
},
"notifications": [],
"lines": [],
"description": "Gold+ Plan",
"invoice_date": "2022-02-23",
"due_date": "2022-02-23",
"customer_memo": "",
"internal_memo": "",
"active": true,
"payments": [
{
"_id": "62166eda3a8c0517866b9b46",
"gateway_transaction_id": "574823902",
"display_name": "Visa **** 4279",
"amount": 9997,
"tip": 0,
"paid_on": "2022-02-23T11:29:01-06:00",
"payment_type": "payment_card",
"transaction_type": "capture",
"tax": 0
}
]
}
],
"status": "active",
"customer": {
"_id": "62166eda3a8c0517866b9r23",
"first_name": "John",
"last_name": "Doe",
"account_name": null,
"mobile_phone": "111-222-3333",
"email": "johndoe@abc.com",
"notification_options": {
"notify_phone": true,
"notify_email": false
}
},
"active": true,
"webhook_url": "https://yourcompany.com/webhook"
}