/
Creating a project in you...
Projects are created inside Mercura (from a GAEB file, from an email intake, or by a user), so — unlike tenders — there is no partner path that creates one. What you get instead is a handoff you can react to: a Mercura user opens the project and clicks Send to ERP, and Mercura emits a project.exported webhook.
The round trip:
- You subscribe to
project.exported(Settings → Organisation → Webhooks). The button only appears in Mercura for organisations that have an active subscription for this event — no subscription, no button, so nothing can be handed to an endpoint that is not listening. - A user clicks the button. Mercura emits
project.exportedcarryingproject_id,name, the currentobject_number, the lifecyclestatusandrequest_count. Nothing on the project is changed by the click: its lifecyclestatusstays as it was, andobject_numberremains yours to assign. - You fetch
GET /projects/{project_id}for the full record — addresses, custom fields,request_ids. - You create the object in your ERP and acknowledge it with
POST /projects/{project_id}/acknowledgements, sending your document number asexternal_id. That number lands on the project'sobject_numberand comes back to you aserp_object_idon every later tender/order export for the project.
Re-clicking the button is safe and always emits again — the payload then carries the object_number you acknowledged earlier, which is how you tell an update from a create without keeping your own mapping. The acknowledgement of the previous handoff stays visible to the Mercura user next to the button, so a FAILED acknowledgement with a message is the way to tell them what went wrong on your side.