Submit the participant details (v2 search)
v2 variant of participant search: takes participant_code and returns the matching full registry records.
Business purpose
This is the second of two endpoints that read a single participant by code. It exists as the v2 generation of the registry lookup (operationId participantV2SearchPost) and serves the same business need as /participant/search: confirming that a counterparty exists, is active, holds the expected role and publishes an encryption certificate and callback endpoint before any encrypted transaction is addressed to it.
When to use
Use it wherever you would use /participant/search. It takes the same request and returns the same response.
Preconditions
- You have a valid access token in the
bearer_authheader. - You have the target's
participant_code.
Postconditions
You get the participant's full registry record. Nothing changes.
Common mistakes
- Expecting a richer answer than
/participant/searchgives. - Sending the code under a field name other than
participant_code. - Reading
encryption_certas the certificate itself instead of calling/fetch/certs. - Leaving out the
Acceptheader.
Best practices
- Wrap both lookup endpoints behind one client function so the path can be switched by configuration.
- Check status and roles before choosing a recipient code.
- Cache the record and refresh on routing or decryption errors rather than on every transaction.
- Do not log payment_details.
Related scenario
A payer's inbound gateway receives a /v1/claim/submit whose protected header names x-hcx-sender_code 100001@sbx. Before decrypting and processing, its integration calls /participant/details with that participant_code to confirm the sender is a registered provider with status Active and to record participant_name for the adjudication file. The claim is then decrypted with the payer's private key and passed to the claims team, whose decision goes back on /v1/claim/on_submit.
Specification
Chapter Creating and updating a participant of the NHCX integration specification. Every NHCX call carries the access token from the session call in a header named Example Always HTTP 200 with ParticipantSearchResponse: timestamp and a participants array of full participant records (participant_code, linked_registry_codes, participant_name, scheme_code, roles, address, contact fields, status, signing_cert_path, encryption_cert, endpoint_url, payment_details).Authorizations
bearer_authapiKeyRequiredbearer_auth, as the word Bearer, a space and the token. NHCX reads bearer_auth, not Authorization.Bearer <access token>Headers
AcceptstringRequiredapplication/json on the participant service.Body
participant_codestringResponses
200timestampintegerparticipantsobject[]participants.participant_codestringparticipants.participant_namestringparticipants.linked_registry_codesstring[]participants.rolesstring[]participants.statusstring[]participants.primaryEmailstringparticipants.primaryMobilestringparticipants.encryption_certstringparticipants.endpoint_urlstring