TaprNext exposes Frappe-style RPC methods under /api/method/... and standard resource APIs under /api/resource/.... Prefer the documented PEPPOL and invoice methods for integrations.
POST /api/method/tapr_next.api.peppol.transmission.send_peppol_invoice?receiver_id=9930:DE123&sender_id=9927:CHE123&country_code=CH&doc_type_id=...&process_id=urn:fdc:peppol.eu:2017:poacc:billing:01:1.0
tapr_next.api.invoices.create_draft_invoice — peppol_receiver_id is required on a Sales Invoice and optional on a Purchase Invoice. Optional peppol_registration picks the legal entity’s own PEPPOL ID (sender on SI, receiver on PI) and must be an active registration of that entity
Use JSON bodies consistent with DocType fields (legal entity, lines, PEPPOL receiver id, totals). Server validate hooks recompute tax/totals in many cases — prefer sending clean line inputs.
ERP sync is otherwise scheduled: AR invoices are fetched every 10 minutes and pending AP posts are retried hourly. An ERP can call this endpoint to run those jobs now for one legal entity. The schedules keep running as a safety net.
POST /api/method/tapr_next.api.erp_events.notify_erp_activity
Authorization:token <api_key>:<api_secret>
Content-Type:application/json
{"event_type": "invoice.ready", "erp_type": "erpnext", "legal_entity": "Your Company AG", "reference": "ACC-SINV-2026-00042"}
Parameter
Required
Notes
event_type
Yes
invoice.ready → AR fetch; invoice.posted → AR fetch + AP pending posts; invoice.paid, invoice.cancelled → AP pending posts. Other values return status: "ignored"
erp_type
Yes
Must match the ERP type on the legal entity’s setup row (erpnext, d365, …)
legal_entity
Yes
Legal Entity name, or the ERP company name configured on the setup row
reference, event_id, occurred_at
No
Logged only
The response always has the same keys: status (accepted / ignored / error), message, legal_entity, event_type, jobs, duplicate_jobs, duplicate. A job already queued for that entity is not queued twice. Callers need System Manager, Accounts Manager or Sales Manager and permission on the legal entity; rate limit is 60 calls per minute per calling IP and legal entity.