Overview
What the REGES Gateway API does, how a call is built and where to go next.
On this page
The REGES Gateway API connects your HR software to REGES-ONLINE, the general register of employees. Your software prepares a register operation through the API (hire, change of terms, change of salary, suspension, end of suspension, termination, transfer, secondment); the gateway checks it, computes its deadline on the working-day calendar and keeps it through its lifecycle. It is a JSON API over HTTPS: you send requests, and the gateway sends events to an address you register.
A designated person of the employer transmits the operation with the employer’s access. The API records the transmission and what the register answered.
Client credentials, your base address and a test company are issued with your account. Accounts are opened by our team: ask for one through the contact form and we set it up with you.
Request an accountHow a call works
Sign in
Ask for a token with your client credentials. See Authentication.
Choose the employer
One account holds many employers. Every request about register operations names its employer with
employerId. See Add an employer.Prepare
Send the operation with
prepareOperation. It starts as a draft; the checks run on it and its deadline is computed. See the Quickstart.Check and approve
Read the checks and validate the draft. A designated person other than the one who prepared it approves it. See Designated persons and delegations.
Record the transmission and the answer
Record the transmission with
submitOperation. When the register answers, record its answer withrecordAnswer: the reference it gave, or its words unchanged.Listen
Events tell you when an operation is transmitted, registered or rejected. See Event catalogue.
Every change carries an operationId, a UUID you choose, and, on an existing record, an expectedRevision. See Idempotency and concurrency.
The lifecycle of an operation
A register operation has one status. Lifecycle and statuses says what moves it from one to the next.
| Status | Meaning |
|---|---|
draft | The gateway holds the operation and the checks run on it each time it changes. Nothing is transmitted. |
validated | Every blocking check passes. |
authorized | A designated person other than the preparer approved it. |
submitted | A designated person transmitted it and the transmission is recorded. |
processing | The register has it and has not answered yet. |
registered | The register answered with a reference. The contract changes as the operation says. |
rejected | The register refused it and gave its words. A rejected operation never changes; the correction is a new draft linked by correctionOf. |
manual_review | The outcome of a transmission is unknown. A person checks before it is transmitted again. |
cancelled | Cancelled before anything was transmitted. |
After its deadline an operation can still be transmitted, with a reason that is kept. See Late operations.
Where next
- Register your first hire in the Quickstart.
- Give the right people access in Designated persons and delegations.
- Follow an operation from draft to answer in Lifecycle and statuses.
- Look up every call in Register operations.