What the UI needs before submitting: 'test declaration' default, whether a declaration for the year is still pending, and whether an accepted declaration exists that a new submission would substitute (<Substitution>)
Ask AI
GET
/api-v1/swissdec/salary-declaration/dispatch-options
curl \
--request GET 'https://wyzio.app/api-v1/swissdec/salary-declaration/dispatch-options'
Response examples (200)
{
"testCaseDefault": true,
"pendingDeclaration": true,
"substitutionAvailable": true,
"predecessorJobKey": "string",
"predecessorDeclarationId": "string",
"predecessorAcceptedAt": "2026-05-04T09:42:00Z",
"predecessorResultStatus": "ACCEPTED",
"plausibility": [
{
"level": "ERROR",
"code": "string",
"subject": "string",
"field": "string",
"value": "string",
"message": "string"
}
],
"domains": [
{
"domain": "AHV_AVS",
"supported": true,
"available": true,
"defaultSelected": true,
"institutionId": "string",
"institutionName": "string"
}
],
"plausibilityErrors": 42,
"plausibilityWarnings": 42
}