invoice-created

Webhook to notify when an invoice is created.

Payload

The invoice sent in the body of invoice webhooks. It keeps the shape invoice webhooks have always had, so it differs from the Invoice the invoice endpoints return: amounts are sent without rounding, item quantities are numbers, and it has no shipping_customer_id, sent_at or email_selection.

uuid
required
uuid
required
string
required
uuid
required
uuid
items
array of objects
required
length ≥ 1
items*
date
required
date
required
address
object

Sender address

customer_address
object
shipping_address
object
bank_account
object
string
enum
required
Allowed:
net_amount
object
required
amount_due
object
required
total
object
required
int32
required
≥ 0
subtotal
object
required
total_discount
object
required
string
exchange_rate
object
taxed_amount
object
required
string
boolean
required
external_references
array of objects, unique
external_references
metadata
object
required

Invoice metadata values keyed by metadata definition key. Empty when the invoice has none.

date-time
required

ISO 8601 timestamp in UTC timezone (must end with 'Z')

date-time

ISO 8601 timestamp in UTC timezone (ends with 'Z') of the last tax calculation on the invoice. For an invoice created in Rillet, update-taxes-for-an-invoice sets it to the taxes_calculated_at sent in that request. Omitted when no tax calculation has completed for the invoice.

Headers
string
required

Signature of the webhook event. Computed using HMAC-SHA256 and AES encrypted with the configured webhook token. The contents of the body are prefixed with the timestamp and id before hashing.

date-time
required

Timestamp of the webhook event in ISO-8601 format

uuid
required

ID of the webhook event

string
required

Entity type of the webhook event

string
required

Event type of the webhook event

Response

LoadingLoading…