A credit note became `annulled`
application/json- body
id*stringThe event's id, also its webhook-id header: deduplicate by it.
uuidtype*"credit_note.annulled""credit_note.annulled"timestamp*stringdate-timebackfill?truePresent, and true, only on a delivery a backfill replayed (POST /v1/webhook-endpoints/{id}/backfill).
truedata*Any 2xx within 15 seconds acknowledges it; anything else is retried.
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"type": "credit_note.annulled",
"timestamp": "2019-08-24T14:15:22Z",
"data": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"country": "ec",
"currency": "string",
"environment": "sandbox",
"status": "pending",
"status_transitions": {},
"business_id": "f59fcbb7-848d-4242-af07-a8bb7e3ab37c",
"number": "string",
"access_key": "stringstringstringstringstringstringstringstrings",
"authorization": {
"number": "string",
"authorized_at": "2019-08-24T14:15:22Z"
},
"sri_messages": [
{
"code": "string",
"message": "string",
"detail": "string",
"type": "error",
"cause": "string",
"remedy": "string"
}
],
"metadata": {
"property1": "string",
"property2": "string"
},
"issued_at": "2019-08-24T14:15:22Z",
"delivery_status": "sent",
"emails": [
{
"to": "string",
"status": "sent",
"sent_at": "2019-08-24T14:15:22Z",
"delivered_at": "2019-08-24T14:15:22Z",
"opened_at": "2019-08-24T14:15:22Z",
"bounced_at": "2019-08-24T14:15:22Z",
"complained_at": "2019-08-24T14:15:22Z",
"bounce_type": "permanent"
}
],
"portal_views": 0,
"portal_last_viewed_at": "2019-08-24T14:15:22Z",
"channel": "api",
"import_id": "13230382-dadc-41f2-963d-e123bd5c0585",
"verification": "sri",
"listing": {
"import_id": "13230382-dadc-41f2-963d-e123bd5c0585",
"file": "string",
"entry": "string",
"sha256": "stringstringstringstringstringstringstringstringstringstringstri",
"line": 1,
"authorized_at": "2019-08-24T14:15:22Z"
},
"object": "document",
"type": "credit_note",
"lines": [
{
"code": "string",
"auxiliary_code": "string",
"description": "string",
"unit": "string",
"quantity": "string",
"unit_price": "string",
"discount": "string",
"net": "string",
"taxes": [
{
"type": "iva",
"rate": "iva_15",
"base": "string",
"value": "string"
}
],
"additional_info": [
{
"name": "string",
"value": "string"
}
]
}
],
"taxes": [
{
"type": "iva",
"rate": "iva_15",
"base": "string",
"value": "string",
"additional_discount": "string",
"refund": "string"
}
],
"subtotal": "string",
"discount": "string",
"iva": "string",
"ice": "string",
"irbpnr": "string",
"total": "string",
"issue_date": "2019-08-24",
"buyer": {
"identification_type": "ruc",
"identification": "string",
"name": "string",
"address": "string",
"email": "string"
},
"modified_document": {
"document_type": "factura",
"number": "string",
"issue_date": "2019-08-24"
},
"reason": "string",
"compensations": [
{
"code": "string",
"rate": "string",
"value": "string"
}
],
"fiscal_machine": {
"brand": "string",
"model": "string",
"serial": "string"
},
"additional_info": [
{
"name": "string",
"value": "string"
}
],
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
}Replay received documents to an endpoint POST
Replays every received document of the endpoint's business and environment issued since `since`, oldest first, as `received_document.created` events, each delivery's payload saying `backfill: true`. Each event keeps the id derived from its access key, so a receiver that deduplicates by `webhook-id` sees a document delivered live and again by a backfill as one event. It runs in the background, one per endpoint at a time; the endpoint's `backfill` shows its progress. Answers `202` with the backfill.
A credit note became `authorized` Webhook
Siguiente