The Business Card API requires the
smp.directory.integration.enabled = true setting, or can be used standalone without Directory auto-push. If the server was deployed without business card support, all endpoints return 400 Bad Request with the message “This SMP server does not support the Business Card API”.GET /businesscard/{ServiceGroupId}
Returns the business card for the given participant.
Authentication: Not required.
The participant identifier in
scheme::value format, URL-encoded.- Request
- Response
Response fields
The participant identifier. The
scheme attribute holds the identifier scheme.One or more business entities. Each entity represents an organisational unit of the participant.
Error responses
| Status | Condition |
|---|---|
400 | Identifier cannot be parsed, or business card support is not enabled |
404 | Service group not found, or no business card exists for this participant |
PUT /businesscard/{ServiceGroupId}
Creates or replaces the business card for the given participant. The participant identifier in the URL must match the identifier in the request body.
Authentication: Required. See Authentication.
The participant identifier in
scheme::value format, URL-encoded.- Request body
- curl example
Response
ReturnsHTTP 200 OK with an empty body on success.
If smp.directory.integration.autoupdate = true is configured, the server automatically notifies the Peppol Directory to index the updated participant.
Error responses
| Status | Condition |
|---|---|
400 | Identifier mismatch, or business card support is not enabled |
401 | Missing or invalid credentials |
403 | Authenticated user does not own the service group |
404 | Service group does not exist |
DELETE /businesscard/{ServiceGroupId}
Deletes the business card for the given participant.
Authentication: Required. See Authentication.
The participant identifier in
scheme::value format, URL-encoded.- curl example
Response
ReturnsHTTP 200 OK on success.
Error responses
| Status | Condition |
|---|---|
400 | Identifier cannot be parsed, or business card support is not enabled |
401 | Missing or invalid credentials |
403 | Authenticated user does not own the service group |
404 | Service group or business card not found |
POST /businesscard/{ServiceGroupId}/push
Triggers an immediate push of the participant’s business card to the configured Peppol Directory, regardless of the smp.directory.integration.autoupdate setting. A business card must already exist for the participant.
Authentication: Required. See Authentication.
The participant identifier in
scheme::value format, URL-encoded.- curl example
Response
ReturnsHTTP 200 OK on success.
Error responses
| Status | Condition |
|---|---|
400 | No business card exists for this participant, or Directory push is not configured |
401 | Missing or invalid credentials |
403 | Authenticated user does not own the service group |
500 | Directory push failed — see server logs for details |