Updates an existing invoice.
The issuer_id parameter is required and must be the Admin ID of the person updating the invoice.
For draft invoices, all fields can be updated. For finalized invoices, only metadata fields (memo, footer, coupons) can be updated.
Security
apiKeyAuth and practiceGroupId
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/invoices/{id}
- Staginghttps://api.staging.htech.app/v1/invoicing/invoices/{id}
- Productionhttps://api.herohealth.net/v1/invoicing/invoices/{id}
curl -i -X PATCH \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/invoicing/invoices/{id}' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"issuer_id": "string",
"appointment_id": "string",
"practitioner_id": "string",
"service_date": "string",
"customer_stripe_id": "string",
"set_default_customer": true,
"due_date": "string",
"collection_method": "request_payment",
"payment_source": "string",
"insurer": "string",
"authentication_code": "string",
"membership_number": "string",
"diagnosis": "string",
"memo": "string",
"footer": "string",
"confidential": true,
"mode": "draft",
"coupons": [
{
"id": "string",
"name": "string"
}
],
"invoice_items_attributes": [
{
"price": "string",
"product": "string",
"description": "string",
"quantity": 0,
"unit_amount": 0,
"unit_amount_in_pounds": 0,
"create": true,
"stripe_id": "string"
}
]
}'Response
{ "id": "string", "stripe_id": "string", "status": "string", "subtotal": 0, "amount_due": 0, "customer_id": "string", "patient_record_id": "string", "appointment_id": "string", "created_at": "string", "updated_at": "string" }