Skip to content

FISCALISTO / API / REFERENCE

payroll_batch.completed · Events

Open in ChatGPTOpen in ClaudeOpen in Cursor

No receipt in the payroll batch is left to stamp. data.object is the batch with each employee's receipt: those stamped (with their invoice) and those not, with their error. It arrives at your webhooks as a POST signed with Standard Webhooks (headers webhook-id, webhook-timestamp and webhook-signature).

Request body

application/json
  1. body

Something that happened in your account: the whole object as it ended up. It is sent to your webhooks signed (Standard Webhooks).

id*string

Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).

object*string

What kind of object it is («invoice», «customer»…).

type*string

What happened: invoice.stamped, invoice.failed, invoice.canceled, invoice.cancellation_pending, invoice.cancellation_rejected, invoice.cancellation_failed, invoice.paid, invoice.partially_paid, retention.stamped, retention.failed, retention.canceled, invoice_batch.completed, payroll_batch.completed, customer_data_request.completed, sat_download.completed, sat_download.failed, sat_declaration.created, sat_declaration.updated, sat_refresh.completed, sat_refresh.failed, ticket.invoiced, ticket.included_in_global, recurring_invoice.failed, quote.viewed, quote.accepted, quote.changes_requested, quote.rejected, quote.withdrawn, sales_order.confirmed, sales_order.customer_confirmed, sales_order.delivered, sales_order.paid, sales_order.canceled, supplier_invoice.received, supplier_invoice.approved, supplier_invoice.rejected, supplier_invoice.scheduled, supplier_invoice.paid, portal_supplier.approved, payout.approved, payout.paid, payout.partially_paid, payout.failed, payout.canceled, payout_transfer.succeeded, payout_transfer.failed, payout_transfer.returned, issuer.ready, balance.low, usage.high, test_clock.ready or rule.matched.

api_version*string

The API version the object was built with.

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

created_at*string

When it was created, ISO 8601 with Mexico City time (-06:00).

Formatdate-time
data*

What changed, in data.object: the whole receipt (or batch), as its GET returns it.

Response body

Answer 2xx in less than 15 seconds; if not, it's retried for 3 days.

This is how it reaches your webhook

{  "id": "evt_0PKhIdhYuAGwzmMQYfkc",  "object": "event",  "type": "payroll_batch.completed",  "api_version": "2026-10-24",  "livemode": false,  "created_at": "2026-10-24T10:15:42-06:00",  "data": {    "object": {      "id": "pyb_OufpKqnrvx9p6tQ2wE8rYu4iOp7aSd3fGh",      "object": "payroll_batch",      "livemode": false,      "issuer": "iss_OufpKqnrvx9p",      "name": "Semana 2026-43",      "calculation": "fiscalisto",      "status": "completed",      "total": 2,      "stamped": 1,      "failed": 1,      "processing": 0,      "created_at": "2026-10-23T09:00:12-06:00",      "completed_at": "2026-10-23T09:00:19-06:00",      "receipts": [        {          "index": 0,          "reference": "s43-9",          "employee": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV",          "tax_id": "MASO451221PM4",          "name": "MARIA OLIVIA MARTINEZ SAGAZ",          "status": "valid",          "invoice": "inv_OufpKqnrvx9p8Nm3kR6tYp1wQz4xCv7bNs",          "uuid": "52378E0C-799A-4E53-85DC-795C6A488776",          "total": 2146.64,          "error": null        },        {          "index": 1,          "reference": "s43-12",          "employee": "emp_OufpKqnrvx9p4TyuI2OPAsDfGhJkLzXcVb",          "tax_id": "GORA800101AB1",          "name": "ANA GOMEZ RUIZ",          "status": "failed",          "invoice": null,          "uuid": null,          "total": null,          "error": {            "code": "payroll_invalid",            "message": "ANA GOMEZ RUIZ dejó de trabajar antes de este periodo."          }        }      ]    }  }}

Was this page helpful?