Quote events
What data you get for quote.created, quote.finalized, quote.accepted, and quote.canceled.
Fires as a quote moves from draft to finalized, accepted, or canceled.
Each event arrives as an event object.
The examples on this page show its data.object.
Prop
Type
{
"id": "qt_01J9ABCDEFGHJKMNPQRSTV",
"object": "quote",
"customer_id": "cus_01J8XYZABCDEFGHJKMNPQR",
"customer_name": "Somchai Jaidee",
"line_items": [
{
"product_name": "Consulting",
"description": "Consulting hours",
"unit_amount": 150000,
"quantity": 1,
"amount_total": 150000,
"currency": "thb"
}
],
"total": 150000,
"currency": "thb",
"status": "draft",
"expires_at": 1787616000,
"accepted_at": null
}All four events share this shape — status becomes "open", "accepted", or
"canceled" on the other three.
Every quote sends these events, whoever hosts it. For a quote Paycose bills itself, they
are sent when you create, finalize, accept or cancel it through the API. For a quote a
provider such as Stripe hosts, quote.created is sent when you create it, and the other
three when the provider reports the change.
Finalizing a quote through the API also emails its customer, when the quote or customer
has an email, a link to the quote's hosted page to accept or decline it. Each address gets
that email once per quote, so a replayed quote.finalized never sends a second one.