Read a canton's answer to a monthly tax at source declaration in detail: the persons it confirmed, the reversals it made itself and the declaration that confirmed each, the corrections it awaits from the company and whether the salary configuration has the tariff, and the quittance - taken from the archived result response

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://restapi.wyzio.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Wyzio MCP server": {
    "url": "https://restapi.wyzio.com/mcp"
  }
}

Close
GET /api-v1/swissdec/salary-declaration/{jobKey}/institutions/{domainStatusId}/tax-at-source

Headers

  • WEAL-TOKEN Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID

    ID of organization, for which the operation must be performed

Path parameters

  • jobKey string Required
  • domainStatusId integer(int64) Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • canton string
    • customerIdentity string
    • changesConsideredUpTo string(date)
    • withoutCompletion boolean
    • tags integer(int64)
    • quittance object
      Hide quittance attributes Show quittance attributes object
      • month string
      • taxableEarning number
      • taxAtSource number
      • commission number
    • corrections array[object]
      Hide corrections attributes Show corrections attributes object
      • month string
      • taxableEarning number
      • taxAtSource number
      • commission number
    • persons array[object]
      Hide persons attributes Show persons attributes object
      • staffId integer(int64)
      • contactId integer(int64)
      • socialInsuranceId string
      • employeeNumber string
      • lastname string
      • firstname string
      • dateOfBirth string(date)
      • notes array[object]
        Hide notes attributes Show notes attributes object
        • level string

          Values are WARNING or INFO.

        • qualityLevel string
        • code string
        • description string
      • salaries array[object]
        Hide salaries attributes Show salaries attributes object
        • canton string
        • municipalityId integer(int32)
        • currentMonth string
        • confirmed boolean
        • reversals array[object]
          Hide reversals attributes Show reversals attributes object
          • month string
          • old object
            Hide old attributes Show old attributes object
            • category string
            • taxableEarning number
            • ascertainedTaxableEarning number
            • taxAtSource number
            • sporadicBenefits number
          • replacement object
            Hide replacement attributes Show replacement attributes object
            • category string
            • taxableEarning number
            • ascertainedTaxableEarning number
            • taxAtSource number
            • sporadicBenefits number
          • netTaxableEarning number
          • netTaxAtSource number
          • comments array[object]
            Hide comments attributes Show comments attributes object
            • level string

              Values are WARNING or INFO.

            • qualityLevel string
            • code string
            • description string
          • confirmedByJobKey string
          • confirmedInMonth string
        • awaited array[object]
          Hide awaited attributes Show awaited attributes object
          • validAsOf string
          • category string
          • comments array[object]
            Hide comments attributes Show comments attributes object
            • level string

              Values are WARNING or INFO.

            • qualityLevel string
            • code string
            • description string
          • applied boolean
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

GET /api-v1/swissdec/salary-declaration/{jobKey}/institutions/{domainStatusId}/tax-at-source
curl \
 --request GET 'https://wyzio.app/api-v1/swissdec/salary-declaration/{jobKey}/institutions/{domainStatusId}/tax-at-source'
Response examples (200)
{
  "canton": "string",
  "customerIdentity": "string",
  "changesConsideredUpTo": "2026-05-04",
  "withoutCompletion": true,
  "tags": 42,
  "quittance": {
    "month": "string",
    "taxableEarning": 42.0,
    "taxAtSource": 42.0,
    "commission": 42.0
  },
  "corrections": [
    {
      "month": "string",
      "taxableEarning": 42.0,
      "taxAtSource": 42.0,
      "commission": 42.0
    }
  ],
  "persons": [
    {
      "staffId": 42,
      "contactId": 42,
      "socialInsuranceId": "string",
      "employeeNumber": "string",
      "lastname": "string",
      "firstname": "string",
      "dateOfBirth": "2026-05-04",
      "notes": [
        {
          "level": "WARNING",
          "qualityLevel": "string",
          "code": "string",
          "description": "string"
        }
      ],
      "salaries": [
        {
          "canton": "string",
          "municipalityId": 42,
          "currentMonth": "string",
          "confirmed": true,
          "reversals": [
            {
              "month": "string",
              "old": {
                "category": "string",
                "taxableEarning": 42.0,
                "ascertainedTaxableEarning": 42.0,
                "taxAtSource": 42.0,
                "sporadicBenefits": 42.0
              },
              "replacement": {
                "category": "string",
                "taxableEarning": 42.0,
                "ascertainedTaxableEarning": 42.0,
                "taxAtSource": 42.0,
                "sporadicBenefits": 42.0
              },
              "netTaxableEarning": 42.0,
              "netTaxAtSource": 42.0,
              "comments": [
                {
                  "level": "WARNING",
                  "qualityLevel": "string",
                  "code": "string",
                  "description": "string"
                }
              ],
              "confirmedByJobKey": "string",
              "confirmedInMonth": "string"
            }
          ],
          "awaited": [
            {
              "validAsOf": "string",
              "category": "string",
              "comments": [
                {
                  "level": "WARNING",
                  "qualityLevel": "string",
                  "code": "string",
                  "description": "string"
                }
              ],
              "applied": true
            }
          ]
        }
      ]
    }
  ]
}