Ask the institution for the result of a declaration (GetResultFromDeclareSalary) using the credentials received with the status; stores Success / CompletionReleaseIsMissing / Processing / Error / Fault per institution and returns the refreshed declaration
Ask AI
POST
/api-v1/swissdec/salary-declaration/{jobKey}/institutions/{domainStatusId}/result
curl \
--request POST 'https://wyzio.app/api-v1/swissdec/salary-declaration/{jobKey}/institutions/{domainStatusId}/result'
Response examples (200)
{
"jobKey": "string",
"dispatched": true,
"jobFinished": true,
"resultStatus": "ACCEPTED",
"lastPolledDate": "2026-05-04T09:42:00Z",
"pollPhase": "VALIDITY_CHECKING",
"pollCount": 42,
"lastPollError": "string",
"status": "SUCCESS",
"validationError": "string",
"createdDate": "2026-05-04T09:42:00Z",
"domains": [
{
"id": 42,
"domain": "AHV_AVS",
"institutionIdRef": "string",
"state": "IGNORED",
"endUserInformation": "string",
"detailInformation": "string",
"canton": "string",
"responseCode": "string",
"institutionName": "string",
"responseId": "string",
"requestId": "string",
"completion": {
"url": "string",
"expiryDate": "2026-05-04T09:42:00Z",
"key": "string",
"password": "string"
},
"notifications": [
{
"level": "WARNING",
"qualityLevel": "string",
"descriptionCode": "string",
"description": "string",
"stage": "STATUS"
}
],
"warningCount": 42,
"infoCount": 42,
"processFlow": "COMPLETION_AND_RESULT",
"resultAvailable": true,
"dialogAvailable": true,
"result": {
"state": "NOT_SUPPORTED",
"fetchedDate": "2026-05-04T09:42:00Z",
"expectedAvailability": "2026-05-04T09:42:00Z",
"endUserInformation": "string",
"detailInformation": "string",
"responseId": "string",
"requestId": "string",
"institutionName": "string",
"notifications": [
{
"level": "WARNING",
"qualityLevel": "string",
"descriptionCode": "string",
"description": "string",
"stage": "STATUS"
}
],
"warningCount": 42,
"infoCount": 42,
"requestArchived": true,
"responseArchived": true
}
}
],
"calendarYear": 42,
"declarationKind": "string",
"monthType": "string",
"notifications": [
{
"level": "WARNING",
"qualityLevel": "string",
"descriptionCode": "string",
"description": "string",
"stage": "STATUS"
}
],
"testCase": true,
"declarationId": "string",
"requestId": "string",
"responseId": "string",
"predecessorJobKey": "string",
"predecessorDeclarationId": "string",
"substitutedByJobKey": "string",
"substitutedByDeclarationId": "string",
"signedRequestArchived": true,
"signedResponseArchived": true,
"substituted": true
}