POST/cpro/structures/v1/consulter/service

Consulter 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.

Tired of dealing with PISTE, certificates and XML? Chorus Pay handles the whole flow for you - quote acceptance, purchase order, invoice deposited on Chorus Pro.Discover Chorus Pay·Compare both approaches

Multiple Authentication Required

ALL REQUIRED

This endpoint requires all of the following authentication methods:

Bearer Token

OAuth2 Bearer token

Custom Header

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_TOKEN

You 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

ParameterRequiredDescription
idStructure
Type: number
RequiredThe technical identifier of the structure.
idService
Type: number
RequiredThe technical identifier of the service (idService returned by rechercher/services).

Example Request Body

{
  "idStructure": 26346724,
  "idService": 123456
}

Responses

Loading...