document.email.delivered
The buyer’s mail server accepted the email.
Parameters
Sección titulada «Parameters»Header Parameters
Sección titulada «Header Parameters»The event id (UUIDv7), the same on every attempt and replay: deduplicate on it.
Unix time (seconds) of this attempt. Refuse values more than 5 minutes from your clock.
Space-separated v1,<base64> signatures: HMAC-SHA256 of <webhook-id>.<webhook-timestamp>.<body> with the base64-decoded part of the whsec_ secret. Accept the request if any of them matches (there is one per valid secret during a rotation).
Request Bodyrequired
Sección titulada «Request Bodyrequired»An event about a document (its tax outcome, RIDE or email): data is the Document as the API returned it when the event happened (texts in English).
object
Example
01a14082-3c1d-7f0e-8b2a-6d5e4f3a2b10Example
invoice.authorizedMode of the resource.
An SRI document of any type.
object
Example
01a13fdf-9620-77a7-a18e-0b13542f5fedExample
invoiceMode of the API key that issued it: test (SRI pruebas) or live.
Example
testTax status: processing (being signed and sent), pending_sri (waiting for the SRI), authorized, rejected, failed or voided.
Example
processingExample
001Example
001Example
123Establishment-emission point-sequential.
Example
001-001-000000123The 49-digit access key, also the authorization number.
Example
1510202601179000000000110010010000001234152637411Example
2026-10-15Version of the SRI XML.
Example
2.1.0Totals computed by Flashpi. Invoices have every field but withheld; purchase settlements and credit notes have no tip; debit notes have no discount nor tip; withholding receipts only have withheld.
object
Sum of the line subtotals.
Example
60.31Sum of the line discounts.
Example
0.75A tax total, grouped per tax and rate.
object
Example
vatVAT: the rate (15, 0, exempt, …). ICE: the percentage.
Example
15ICE: the TABLA 18 code.
Example
3031Taxable base.
Example
57.50Tax amount.
Example
8.63Tip.
Example
0.00Total (credited amount of a credit note, total of a debit note).
Example
68.94Total withheld.
Example
62.50The SRI authorization.
object
Authorization number (the access key), once authorized.
Example
nullExample
nullThe RIDE (printed PDF), generated once the document is authorized.
object
Example
pendingExample
nullExample
nullEmail delivery, separate from the tax status: sent only once the document is authorized, when it was requested and there is a recipient.
object
Whether the email was requested.
Example
truenot_requested (opted out), skipped (no recipient), queued (sent once authorized), then sent, delivered, bounced, complained or failed.
Example
queuedOne email to one recipient.
object
Example
compras@example.comExample
deliveredWhy the email failed or bounced, as a code: for example rejected, timeout, invalid_address, bounce_permanent, bounce_suppressed (the address is on the suppression list of Flashpi’s email provider after an earlier bounce or complaint), complaint, account_email_limit_reached (the account’s emails of the day were used up; nothing was sent), platform_email_limit_reached (Flashpi’s emails of the day across all accounts were used up; nothing was sent), email_sending_paused (the account’s emails of the mode are paused; nothing was sent), platform_email_sending_paused (Flashpi paused the emails of its email provider for every account after too many bounces or complaints; nothing was sent), test_recipient_not_allowed (a test document whose recipient is not a verified member of the account’s team; nothing was sent: download the RIDE and the XML to send them) or invalid_domain (the recipient’s domain does not exist or receives no mail: no MX, A or AAAA record, or a null MX; nothing was sent).
Example
nullWarnings about the recipient’s address, computed when the document is read: empty when nothing looks wrong.
Something about the email that looks wrong. A warning never stops or changes the email.
object
recipient_domain_typo: the recipient’s domain looks like a typo of a common mail domain (for example gmial.com for gmail.com). The email is still sent to the address as given; nothing changes it.
Example
recipient_domain_typoFollows Accept-Language (English or Spanish).
Example
The recipient's email address may be mistyped: did you mean compras@gmail.com?The address with the suggested domain.
Example
compras@gmail.comMessages of the last SRI answer, mapped to Flashpi codes (the reasons of a rejection, or warnings of an authorization). Texts follow Accept-Language (English or Spanish).
A message of the SRI, mapped by Flashpi.
object
Flashpi error code.
Example
calculation_mismatchExample
The SRI found differences in the calculations.Example
errorThe body sent to thin endpoints: the event without its snapshot. Read it with GET /v1/events/{id}.
object
Responses
Sección titulada «Responses»Acknowledged. Anything else is retried.