heruAPI

API reference

Every v1 operation, generated from the OpenAPI 3.1 contract.

Base URL https://api.dev.b2b.heru.app/v1 in development, https://api.b2b.heru.app/v1 in production. Each operation page has a playground: pick the environment, paste your client_id and client_secret to get a token, and send. Your credentials stay in your browser tab.

PrefixResource
cmp_Company
fv_Fiscal validation
ssv_Social security validation
wrk_Worker
sig_Signature
inv_Invoice
rtc_Retention certificate
bat_Batch
mer_Merchant
chg_Charge
evt_Webhook event
req_Request (in errors and the X-Request-Id header)
LiveThe operation is served by the v1 API today: try it in development with your credentials.
BuildingIn development for the v1 API. The contract is set; the route is not served yet.
PlannedDesigned and scheduled for the v1 API. The contract can still change; the route is not served yet.

Authentication

Exchange your client id and secret for a one-hour bearer token, and check what a token can do.

POST/oauth/tokenGet an access tokenLive
GET/meGet the caller of the tokenLive

Fiscal validation

RFC status, tax regimes, registered name and postal code, and e.firma and CSD validity, from a CURP or an RFC.

POST/fiscal-validationsValidate a person's tax statusLive
GET/fiscal-validationsList fiscal validationsLive
GET/fiscal-validations/{id}Get a fiscal validationLive

Social security (IMSS)

Find a person’s NSS, or start their IMSS registration when they have none.

POST/social-security-validationsFind or register a person's NSSLive
GET/social-security-validationsList social security validationsLive
GET/social-security-validations/{id}Get a social security validationLive

Workers

Register a worker, get their consent through the enrollment link, and a compliance view of everyone you work with.

POST/workersRegister a workerLive
POST/workers/{id}/enrollmentCreate an enrollment linkPlanned
DELETE/workers/{id}Remove a workerLive
GET/workersList workersLive
GET/workers/{id}Get a workerLive
GET/workers/reportWorkers compliance feedLive

e.firma and CSD

Generate a worker’s CSD from their e.firma, and collect signatures on digital contracts.

POST/workers/{id}/csdRequest the worker's CSDBuilding
POST/signaturesSign a document with the worker's e.firmaPlanned
GET/signatures/{id}Get a signaturePlanned

Invoices

CFDI 4.0 invoices from your companies, merchants or workers, with their cancellation and files.

POST/invoicesIssue an invoiceLive
DELETE/invoices/{id}Cancel an invoiceLive
GET/invoicesList invoicesLive
GET/invoices/{id}Get an invoiceLive
GET/invoices/{id}/downloadGet a download linkLive

Retention certificates

CFDI de retenciones for the ISR and VAT you withhold from workers, merchants or any taxpayer.

POST/retention-certificatesIssue a retention certificateLive
DELETE/retention-certificates/{id}Cancel a retention certificateLive
GET/retention-certificatesList retention certificatesLive
GET/retention-certificates/{id}Get a retention certificateLive
GET/retention-certificates/{id}/downloadGet a download linkLive

Batches

Invoices and retention certificates from a CSV file, for high volumes.

POST/batchesUpload a batchBuilding
POST/batches/{id}/processProcess a batchBuilding
POST/batches/{id}/pausePause a batchBuilding
POST/batches/{id}/resumeResume a batchBuilding
POST/batches/{id}/cancelCancel a batchBuilding
GET/batches/{id}Get a batchBuilding

Point of sale

Merchants, card charges and a single-use self-invoicing QR per sale.

POST/merchantsAdd a merchantLive
POST/merchants/{id}/onboardingCreate an onboardingLive
POST/merchants/{id}/console-linkCreate a console linkLive
POST/chargesCreate a chargeLive
POST/charges/{id}/voidVoid a chargeLive
PUT/merchants/{id}/csdUpload the CSDLive
GET/merchantsList merchantsLive
GET/merchants/{id}Get a merchantLive
GET/chargesList chargesLive
GET/charges/{id}Get a chargeLive

Branding

The name, colour, help mailbox, footer and logo your merchants show on their invoicing page and emails, inherited from the company when a merchant sets none.

PUT/branding/merchants/{id}Update a merchant's brandBuilding
PUT/branding/merchants/{id}/logoUpload a merchant's logoBuilding
DELETE/branding/merchants/{id}/logoRemove a merchant's logoBuilding
GET/branding/merchants/{id}Get a merchant's brandBuilding

Reports

Monthly retention totals per worker, and your API usage.

GET/reports/retentionsMonthly retentions reportPlanned
GET/reports/usageUsage reportBuilding

Webhooks

Register URLs to receive signed events. One company can hold up to 10 subscriptions, each with its own secret, a delivery log and replays.

POST/webhooksCreate a webhook subscriptionBuilding
POST/webhooks/{id}/secretRotate the signing secretBuilding
POST/webhooks/{id}/testSend a test event nowBuilding
POST/deliveries/{id}/replayReplay a deliveryBuilding
PATCH/webhooks/{id}Update a webhook subscriptionBuilding
DELETE/webhooks/{id}Delete a webhook subscriptionBuilding
GET/webhooksList webhook subscriptionsBuilding
GET/webhooks/{id}Get a webhook subscriptionBuilding
GET/webhooks/{id}/deliveriesList deliveries of a subscriptionBuilding

The OpenAPI 3.1 description behind these pages is shared with your team on request, for code generation and testing tools.

© 2026 Kuarto Inc. (heru)heru.appQuestions about your integration? Contact your heru account team.