Retrieves a list of Stripe coupons for the requesting practice group.
curl -i -X GET \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/coupons \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "data": [ { … } ], "count": 0 }
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/customers?query=string' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "data": [ { … } ], "count": 0 }
curl -i -X POST \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/customers \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"name": "string",
"email": "user@example.com",
"phone": "string",
"sources": [
{
"id": "string",
"type": "card",
"fingerprint": "string",
"brand": "string",
"last4": "string",
"exp_month": 0,
"exp_year": 0
}
]
}'
{ "id": "string", "name": "string", "email": "user@example.com", "phone": "string", "sources": [ { … } ] }
curl -i -X POST \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/membership-policies \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"collection_method": "send_invoice",
"days_until_due": 0,
"membership_scheme_id": "string",
"customer": "string",
"price": "string",
"quantity": 0,
"starts_on": 0,
"billing_cycle_anchor": 0,
"discounts": [
{
"coupon": "string"
}
],
"members": [
{
"patient_record_id": "string"
}
]
}'
{ "id": "string", "practice_group_id": "string", "membership_scheme_id": "string" }
curl -i -X GET \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/membership-schemes \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/products?active=true&query=string&type=string' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'