curl --request POST \
--url https://{partner_host}/registered_url_for_receipt_events \
--header 'Content-Type: application/json' \
--data '
{
"event": "receipt.created",
"event_time": 1730189586,
"timestamp": 1730189586,
"client_id": "67978400352a61001d64e9fb",
"business_id": "174159057718553",
"data": {
"receipt_id": 2579,
"aid": "d-75f3dcf1-5de3-40fc-8ccd-f42c8d54e8e8",
"doctor_oid": "161467756044203",
"clinic_id": "60b0ee0c0b5804795509aefb",
"patient_oid": "176345969121476",
"created_at": 1763476917560,
"updated_at": 1763476917560,
"receipt_number": null,
"receipt_url": "https://doc-receipt.s3.ap-south-1.amazonaws.com/v2/b-161467756044203/161467756044203/60b0ee0c0b5804795509aefb/1763476916985.pdf",
"receipt_status": "SUCCESS",
"receipt_amount": 120,
"additional_discount_value": 10,
"additional_discount_type": "AMOUNT",
"additional_discount_amount": 10,
"net_amount": 120,
"name": "gc baby normal",
"mobile": "+919008888888",
"flavour": null,
"sku_discount_amount": 10,
"amount_due": 10,
"archive": 0,
"remarks": "",
"ref_trx_id": "",
"payment_id": "ret-dfwef-dsfsd-fwefdsf",
"payment_link": "https://example.link.com",
"amount_paid": 10,
"actor": "doctor"
}
}
'When a Receipt is created, updated or deleted, a webhook is sent to the registered endpoint containing the Doctor Id, Patient Id, Clinic Id etc. The receiving system can use these details as per their need.
curl --request POST \
--url https://{partner_host}/registered_url_for_receipt_events \
--header 'Content-Type: application/json' \
--data '
{
"event": "receipt.created",
"event_time": 1730189586,
"timestamp": 1730189586,
"client_id": "67978400352a61001d64e9fb",
"business_id": "174159057718553",
"data": {
"receipt_id": 2579,
"aid": "d-75f3dcf1-5de3-40fc-8ccd-f42c8d54e8e8",
"doctor_oid": "161467756044203",
"clinic_id": "60b0ee0c0b5804795509aefb",
"patient_oid": "176345969121476",
"created_at": 1763476917560,
"updated_at": 1763476917560,
"receipt_number": null,
"receipt_url": "https://doc-receipt.s3.ap-south-1.amazonaws.com/v2/b-161467756044203/161467756044203/60b0ee0c0b5804795509aefb/1763476916985.pdf",
"receipt_status": "SUCCESS",
"receipt_amount": 120,
"additional_discount_value": 10,
"additional_discount_type": "AMOUNT",
"additional_discount_amount": 10,
"net_amount": 120,
"name": "gc baby normal",
"mobile": "+919008888888",
"flavour": null,
"sku_discount_amount": 10,
"amount_due": 10,
"archive": 0,
"remarks": "",
"ref_trx_id": "",
"payment_id": "ret-dfwef-dsfsd-fwefdsf",
"payment_link": "https://example.link.com",
"amount_paid": 10,
"actor": "doctor"
}
}
'Type of event
receipt.created, receipt.updated, receipt.deleted "receipt.created"
Event occurred timestamp
1730189586
Timestamp of the event
1730189586
Client ID for the schedule
"67978400352a61001d64e9fb"
Business ID for the schedule
"174159057718553"
Show child attributes
Unique identifier for the receipt
2579
Appointment Id
"d-75f3dcf1-5de3-40fc-8ccd-f42c8d54e8e8"
Unique identifier for the doctor
"161467756044203"
Clinic identifier
"60b0ee0c0b5804795509aefb"
Unique identifier for the patient
"176345969121476"
Timestamp when the receipt was created (in milliseconds)
1763476917560
Timestamp when the receipt was last updated (in milliseconds)
1763476917560
Human-readable receipt number
null
URL to download/view the receipt
"https://doc-receipt.s3.ap-south-1.amazonaws.com/v2/b-161467756044203/161467756044203/60b0ee0c0b5804795509aefb/1763476916985.pdf"
Status of the receipt
"SUCCESS"
Total amount on the receipt
120
Value of any additional discount
10
Type of additional discount
"AMOUNT"
Amount reduced due to additional discount
10
Net payable amount after discounts
120
Name of the patient
"gc baby normal"
Patient's mobile number
"+919008888888"
Flavour or type of receipt/service
null
Discount amount applied per SKU/item
10
Remaining amount to be paid
10
Whether the receipt is archived (0 or 1)
0
Additional remarks about the transaction
""
Reference transaction ID
""
Unique identifier for the payment
"ret-dfwef-dsfsd-fwefdsf"
URL for payment completion
"https://example.link.com"
Amount already paid
10
Who performed the action or update
"doctor"
Was this page helpful?