Retrieves a list of Stripe coupons for the requesting practice group.
API Reference
//
List Membership Schemes
Hero Health Public API (1.0.0)
Download OpenAPI description
Languages
Servers
Mock server
https://developer.herohealth.net/_mock/apis/public-api/openapi/
Staging
https://api.staging.htech.app/
Production
https://api.herohealth.net/
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/coupons
- Staginghttps://api.staging.htech.app/v1/invoicing/coupons
- Productionhttps://api.herohealth.net/v1/invoicing/coupons
- curl
- NodeJS
- Ruby
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'Response
application/json
{ "data": [ { … } ], "count": 0 }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/customers
- Staginghttps://api.staging.htech.app/v1/invoicing/customers
- Productionhttps://api.herohealth.net/v1/invoicing/customers
- curl
- NodeJS
- Ruby
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'Response
application/json
{ "data": [ { … } ], "count": 0 }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/customers
- Staginghttps://api.staging.htech.app/v1/invoicing/customers
- Productionhttps://api.herohealth.net/v1/invoicing/customers
- curl
- NodeJS
- Ruby
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
}
]
}'Response
application/json
{ "id": "string", "name": "string", "email": "user@example.com", "phone": "string", "sources": [ { … } ] }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/customers/default
- Staginghttps://api.staging.htech.app/v1/invoicing/customers/default
- Productionhttps://api.herohealth.net/v1/invoicing/customers/default
- curl
- NodeJS
- Ruby
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/customers/default?patient_id=string' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'Response
application/json
{ "id": "string", "name": "string", "email": "user@example.com", "phone": "string", "sources": [ { … } ] }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/membership-policies
- Staginghttps://api.staging.htech.app/v1/invoicing/membership-policies
- Productionhttps://api.herohealth.net/v1/invoicing/membership-policies
- curl
- NodeJS
- Ruby
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_id": "string"
}
]
}'Response
application/json
{ "id": "string", "practice_group_id": "string", "membership_scheme_id": "string" }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/membership-schemes
- Staginghttps://api.staging.htech.app/v1/invoicing/membership-schemes
- Productionhttps://api.herohealth.net/v1/invoicing/membership-schemes
- curl
- NodeJS
- Ruby
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'- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/products
- Staginghttps://api.staging.htech.app/v1/invoicing/products
- Productionhttps://api.herohealth.net/v1/invoicing/products
- curl
- NodeJS
- Ruby
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/products?query=string&active=true&type=string' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'