The Registration API enables new registrations or cancellations to be sent directly to the Cegos IS.
Access to this API is restricted to authorized users. Access requires a specific authorization defined by the "api-registration" scope. If you haven't already done so, we suggest you follow the registration steps explained in the "Register your application" section.
For developers and other engineering teams, an Open API documentation generated by Swagger is available at this URL:
https://registration.api.cegos.fr/swagger
How registration data flows from SAP and WCF systems to API Registration
Database integration and logging for API Registration
/v1/Leads
/v1/Leads
SAP CRM
N/A - API communicates with SAP via ProspectWCF
SAP CRM - Direct insertion via WCF service. Api_Identity_Management - Audit and traceability logs.
Field | Type | Description | Validation | Example |
---|---|---|---|---|
civility |
CivilityRequest (enum) | Civility of the prospect | 0=Unknown, 1=Mr, 2=Mrs, 4=Company, 5=Group, 6=Branch, 7=Business, 8=HeadOffice, 9=SecondaryEstablishment, 10=Particular, 11=NonHeadquarteredEstablishment, 12=SubsidiaryCompany | 1 (Mr) |
emailing |
int | Email marketing preference (0=No, 1=Yes) | 0 or 1 | 1 |
Field | Type | Description | Database Mapping | Example |
---|---|---|---|---|
lastName |
string | Last name of the prospect | SAP CRM - ProspectWEB.LastName | "Dupont" |
firstName |
string | First name of the prospect | SAP CRM - ProspectWEB.FirstName | "Jean" |
phoneNumber |
string | Phone number of the prospect | SAP CRM - ProspectWEB.PhoneNumber | "+33123456789" |
email |
string | Email address of the prospect | SAP CRM - ProspectWEB.Email | "jean.dupont@company.com" |
companyName |
string | Company name | SAP CRM - ProspectWEB.CompanyName | "Acme Corp" |
establishmentName |
string | Establishment name | SAP CRM - ProspectWEB.EstablishmentName | "Paris Branch" |
siren |
string | SIREN company identification number (France) | SAP CRM - ProspectWEB.Siren | "123456789" |
siret |
string | SIRET establishment identification number (France) | SAP CRM - ProspectWEB.Siret | "12345678901234" |
address |
string | Street address | SAP CRM - ProspectWEB.Address | "123 Main Street" |
postalCode |
string | Postal code | SAP CRM - ProspectWEB.PostalCode | "75001" |
city |
string | City name | SAP CRM - ProspectWEB.City | "Paris" |
country |
string | Country name or code | SAP CRM - ProspectWEB.Country | "FR" |
positionCode |
string | Position/function code of the prospect | SAP CRM - ProspectWEB.PositionCode | "MGR001" |
activityCode |
string | Business activity sector code | SAP CRM - ProspectWEB.ActivityCode | "IT001" |
userWebId |
string | Web user identifier | SAP CRM - ProspectWEB.UserWebID | "WEB123456" |
type |
string | Lead type classification | SAP CRM - ProspectWEB.LeadType | "PROSPECT" |
Field | Type | Description | Database Source |
---|---|---|---|
code | string | Status code of the lead creation | SAP CRM |
reason | string | Explanatory message of the status or detailed error | SAP CRM |
id | string | Unique identifier of the prospect generated by SAP (present only in case of success) | SAP CRM |
{
"code": "SUCCESS",
"reason": "Lead created successfully in SAP CRM",
"id": "LEAD_SAP_456789"
}
// Example in case of error:
{
"code": "ERROR",
"reason": "Email format is invalid",
"id": null
}
/v1/Registration
/v1/Registration
SAP CRM
N/A - API communicates with SAP via ReservationWCF
SAP CRM - Direct insertion via WCF service. Api_Identity_Management - Audit and traceability logs.
Field | Type | Description | Validation | Example |
---|---|---|---|---|
managerCrmId |
string | CRM ID of the responsible manager | Valid CRM ID format | "MGR001" |
managerCrmIsLead |
string | Indicator if the manager is a lead | true/false | "true" |
traineeCrmId |
string | CRM ID of the trainee | Valid CRM ID format | "TRA001" |
traineeCrmIsLead |
string | Indicator if the trainee is a lead | true/false | "false" |
sessionId |
string | ID of the training session | Valid session ID format | "SES001" |
Field | Type | Description | Database Mapping | Example |
---|---|---|---|---|
clientReference |
string | External client reference | SAP CRM - Client Reference | "CLI-REF-2024" |
canal |
string | Distribution channel | SAP CRM - Distribution Channel | "WEB" |
comments |
string | Comments on the registration | SAP CRM - Comments | "Urgent registration" |
isCPF |
boolean | Indicator CPF (Personal Training Account) | SAP CRM - CPF Flag | true |
cpfHours |
string | Number of CPF hours | SAP CRM - CPF Hours | "35" |
includeMeal |
boolean | Inclusion of meals | SAP CRM - Meal Option | true |
overbooking |
boolean | Overbooking authorization | SAP CRM - Overbooking Flag | true |
webSaleId |
string | Web sale ID | SAP CRM - Web Sale ID | "WS-2024-001" |
Field | Type | Description | Database Source |
---|---|---|---|
code | string | Return code (SUCCESS/ERROR) | SAP CRM - Response Code |
reason | string | Explanatory message of the result | SAP CRM - Response Message |
id | string | ID of the registration generated by SAP | SAP CRM - Registration ID |
// Success response:
{
"code": "SUCCESS",
"reason": "Registration created successfully",
"id": "INS-2024-001"
}
// Error response:
{
"code": "ERROR",
"reason": "Session not found",
"id": null
}
/v1/Registration
/v1/Registration
SAP CRM
N/A - API communicates with SAP via CancelInscriptionWCF
SAP CRM
Field | Type | Description | Validation | Example |
---|---|---|---|---|
registrationNumber |
string | Registration number to cancel | Valid registration number format | "INS-2024-001" |
Field | Type | Description | Database Mapping | Example |
---|---|---|---|---|
reason |
string | Reason for cancellation | SAP CRM - Cancellation Reason | "Customer cancellation" |
user |
string | User performing the cancellation | SAP CRM - User | "admin@cegos.com" |
Field | Type | Description | Database Source |
---|---|---|---|
code | string | Return code (SUCCESS/ERROR) |
|
reason | string | Explanatory message for the result |
|
// Success response:
{
"code": "SUCCESS",
"reason": "Registration canceled successfully"
}
// Error response:
{
"code": "ERROR",
"reason": "Registration not found"
}
/v1/Registration/defer
/v1/Registration/defer
DossierClients + SAP CRM
N/A - Queue system using Message and MessageConsumed tables
DossierClients.Message - Queue requests. DossierClients.MessageConsumed - Processing results. Api_Identity_Management - Audit logs.
Field | Type | Description | Validation | Example |
---|---|---|---|---|
registrationNumber |
string | Registration number to defer | Valid registration number format | "INS-2024-001" |
sessionId |
string | New session ID | Valid session ID format | "SES002" |
Field | Type | Description | Database Source |
---|---|---|---|
transactionId | string | Transaction ID for asynchronous tracking | Message.TransactionId (nvarchar(10)) |
// Success response:
{
"transactionId": "TXN-2024-ABC123"
}
// Error response:
{
"transactionId": null
}
/v1/Registration/defer/{transactionId}
/v1/Registration/defer/{transactionId}
DossierClients
N/A - Query MessageConsumed table by TransactionId
DossierClients.MessageConsumed - Processing status and results. Api_Identity_Management - Audit logs.
Field | Type | Description | Validation | Example |
---|---|---|---|---|
transactionId |
string | Transaction ID to be consulted (route parameter) | Valid transaction ID format | "TXN1234567" |
Field | Type | Description | Database Source |
---|---|---|---|
response | RequestStatusWithId | SAP response object (if processing successful) |
|
error | string | Error message (if processing failed) |
|
status | QueueStatusResponse (enum) | Processing status |
|
Field | Type | Description | Database Source |
---|---|---|---|
code | string | SAP return code |
|
id | string | ID of the new registration |
|
reason | string | SAP response message |
|
// Success - Processing completed:
{
"response": {
"code": "SUCCESS",
"reason": "Registration defer successful",
"id": "INS-2024-002"
},
"error": null,
"status": "Processed"
}
// Processing - Still in queue:
{
"response": null,
"error": null,
"status": "Scheduled"
}
// Error - Processing failed:
{
"response": null,
"error": "Session not available",
"status": "Error"
}