Get your webhook URL
After your AI agent completes a customer action, send a POST request to this webhook. Receipt generates a public receipt and returns a shareable URL.
Webhook URL
https://your-domain.com/api/receipt
Example payload
{
"customer_identifier": "jane.doe@email.com",
"goal": "Process return for Order #1104",
"actions": [
{ "title": "Verified item delivered less than 30 days ago", "status": "passed" },
{ "title": "Evaluated account history", "status": "passed", "detail": "First lifetime return on Account #88231" },
{ "title": "Initiated Stripe refund of $42.00", "status": "success", "reference": "ch_3abc123" }
],
"money_moved": "$42.00 refunded to original payment method",
"policy_applied": "10% restocking fee waived",
"customer_message": "Your return has been approved."
}cURL
curl -X POST https://your-domain.com/api/receipt \
-H "Content-Type: application/json" \
-d '{
"customer_identifier": "jane.doe@email.com",
"goal": "Process return for Order #1104",
"actions": [
{ "title": "Verified item delivered less than 30 days ago", "status": "passed" },
{ "title": "Evaluated account history", "status": "passed", "detail": "First lifetime return on Account #88231" },
{ "title": "Initiated Stripe refund of $42.00", "status": "success", "reference": "ch_3abc123" }
],
"money_moved": "$42.00 refunded to original payment method",
"policy_applied": "10% restocking fee waived",
"customer_message": "Your return has been approved."
}'Response: { "success": true, "receipt_url": "https://your-domain.com/r/rcpt_8F3K92" }