/cpro/structures/v1/consulter/serviceConsulter un service d'une structure
Returns the details and parameters of a single service of a structure. Key insight: mandatory-field rules exist at BOTH the structure level (consulterStructure → parametres.numeroEJDoitEtreRenseigne) and the service level (parametres.numeroEngagement here, sometimes absent from the response). When a service is set on an invoice (codeServiceExecutant), the service-level rule takes precedence — the structure-level rule is only a default. There is no « forbidden » state: the engagement number is either required or optional for a given service.
Multiple Authentication Required
ALL REQUIREDThis endpoint requires all of the following authentication methods:
OAuth2 Bearer token
Chorus Pro account credentials
Required Header
cpro-account: base64(login:password)How to authenticate
Include your Bearer token in the Authorization header:
Authorization: Bearer YOUR_API_TOKENYou can obtain your API token from your account dashboard.
How to authenticate
Include the custom header in your request:
cpro-account: base64(login:password)Body Parameters
| Parameter | Required | Description |
|---|---|---|
idStructure Type: number | Required | The technical identifier of the structure. |
idService Type: number | Required | The technical identifier of the service (idService returned by rechercher/services). |
Example Request Body
{
"idStructure": 26346724,
"idService": 123456
}Responses
/cpro/structures/v1/consulter/serviceConsulter un service d'une structure
Returns the details and parameters of a single service of a structure. Key insight: mandatory-field rules exist at BOTH the structure level (consulterStructure → parametres.numeroEJDoitEtreRenseigne) and the service level (parametres.numeroEngagement here, sometimes absent from the response). When a service is set on an invoice (codeServiceExecutant), the service-level rule takes precedence — the structure-level rule is only a default. There is no « forbidden » state: the engagement number is either required or optional for a given service.
Multiple Authentication Required
ALL REQUIREDThis endpoint requires all of the following authentication methods:
OAuth2 Bearer token
Chorus Pro account credentials
Required Header
cpro-account: base64(login:password)How to authenticate
Include your Bearer token in the Authorization header:
Authorization: Bearer YOUR_API_TOKENYou can obtain your API token from your account dashboard.
How to authenticate
Include the custom header in your request:
cpro-account: base64(login:password)Body Parameters
| Parameter | Required | Description |
|---|---|---|
idStructure Type: number | Required | The technical identifier of the structure. |
idService Type: number | Required | The technical identifier of the service (idService returned by rechercher/services). |
Example Request Body
{
"idStructure": 26346724,
"idService": 123456
}