▶Stored Sandbox Values
Ason docs

Import / Interface

Your platform already holds company and/or employee data. This page covers getting it into Ason once (import), keeping it in sync afterwards (interface) - and why open cases still go through CaseMan either way.

Step by step

  1. Match employees - one Ason employee per person, keyed by your own identifier
  2. Map master data - field by field, codes from lookups, the right start date - try it in the Mapping Tool
  3. Map variable data - each pay component to a wage type, dated in its period
  4. Import - pick the right cases, report each change with a reason
  5. Resolve open cases - through CaseMan, or your own UI on the same calls
  6. Keep in sync - send every change live, not in a nightly batch: each follow-up question otherwise waits for the next run

Match employees

  • Your key is the identifier: set the employee's identifier to your platform's unique personnel key. It's unique per tenant, so the same person never exists twice
  • Find the employee id by identifier: GET /tenants/{tenantId}/employees with filter=identifier eq '...' - only if nothing comes back, create the employee with POST /tenants/{tenantId}/employees

Map master data

Master data are Period fields - valid from start until changed (see Master data vs. variable data). Field lists: Employee Data Import (category Master Data) and Company Data Import.

  • Each field mapped to its Ason case field - the lists show value type and lookup per field
  • Codes, not labels for lookup fields - canton GE (abroad: EX), country DE (ISO 3166-1 alpha-2), not "Genf" or "Deutschland". All valid codes: GET /tenants/{tenantId}/payrolls/{payrollId}/lookups/values
  • Start date = valid-from date in your system - but never before the payroll's accounting start date: anything older starts on that date, with the value it had then
  • Structured, not combined - e.g. street and house number in separate fields
  • Empty on purpose isn't missing - "AHV number unknown" opens a different case than a missing AHV number

Duplicates and mistakes

SituationEffectFix
Same value sent twiceNone on results - one more history entryNothing to fix
Wrong valueApplies from its start dateReport the right value with the same start - the later report wins from that date
Wrong start dateApplies from the wrong dateReport again with the right start - if the wrong one started too early, also re-report the previous value for that gap

Map variable data

Variable data are Moment fields - each value is tied to a date and summed within its payrun period. Employee Data Import lists them under Variable Data: bonuses, allowances, hours, expenses, corrections.

  • Each pay component mapped to one Ason field and its wage type
  • Missing in Ason? Copy a wage type - duplicate the closest copyable one and give it the same name as in your platform (all four languages), so both sides show the same pay component. The copy comes with its own employee case and case field, under its own name - report its values there. See Copying a wage type
  • Dated inside the right period - the date decides which payrun period the value is summed into
  • Sent exactly once - Ason can't tell a resend from a second bonus

Duplicates and mistakes

SituationEffectFix
Same value sent twiceSummed - paid twiceReport the same case field again with the negative amount - a bonus of 500 is reversed with -500
Wrong amountWrong amount paidReverse it with the negative amount on the same case field, then report the right amount
Wrong dateSummed into the wrong payrun periodReverse it with the negative amount on the same date, then report it with the right date

Import

Which cases to report

  • Single-field cases are named after their field - importing just one CaseField means reporting a case with that same name
  • Special-Data-Cases - deliberately huge: dozens of mostly-optional fields, to capture everything at once instead of one case per field:
    • CompanyOnboardingData - all company setup data in one go (address, insurers, contracts, workplaces, ...)
    • EmployeeNewEntryData - the data needed to hire a new employee (personal data, address, insurances, bank, salary certificate, statistics)
    • PeriodTimelessFieldsCase - all employee master data: every field whose value stays valid until changed (Period and Timeless)
    • MomentFieldsCase - all employee variable data: one-off values tied to a point in time (bonuses, corrections, absences, allowances)
    • CompanyUploadExcelImportFile - employee data as an Excel file: each column maps to a case field, each row to one case change - Employee Data Import File (.xlsx)
  • Documents are the exception - always import them as a single-field case, named after the document's CaseField - see Documents on case values
Watch the start date on onboarding imports
  • Company onboarding: the case change's start must be at least the payroll's accounting start date. Example: accounting start date is 2026-01-01 but the values are imported with start 2026-09-24 - the system won't calculate correctly.
  • Employee onboarding: the case change's start must be at least the 1st of the month of the employee's entry date. Example: entry date is 2026-01-01 but the values are imported with start 2026-09-24 - the system won't calculate, and/or the payslip can't be built.

Not sure which case fits? Get in touch.

Every case change

  • Reason on every case change: reason is free text, stored with the case change and shown in its history (CaseMan: "Note") - e.g. "Migration from HR platform, cutoff 2026-01-01"
  • Reason on the payslip: cases carrying the attribute reasonOnWageTypeNumber can print the reason on the payslip - send attributes: { "reasonOnWageTypeNumber": "<its value>", "includeReasonInPayslip": "true" } (CaseMan: "Show reason in payslip")

A single-field case, named after its field:

JSONCode
{ "employeeId": "{employeeId}", "divisionId": "{divisionId}", "reason": "Migration from HR platform, cutoff 2026-01-01", "case": { "caseName": "CH.Swissdec.EmployeeNationality", "values": [ { "caseFieldName": "CH.Swissdec.EmployeeNationality", "value": "DE", "start": "2026-01-01T00:00:00Z" } ] } }

Why always CaseMan

Import without CaseMan delivers the data you have. It can't deliver what Ason asks for next - that depends on the data itself. So even if your HR system feels complete, Ason opens cases after the import, and they're resolved through CaseMan.

Even complete data opens cases

TriggerExample
Company setupCost centers switched on (also later) - a cost center is required for every employee. No UVGZ or KTG insurance - those cases never appear
Earlier answersNot Swiss - residence category. Category B - withholding tax data. Code C - partner data
Changes over timeWage type changes from monthly to hourly - every value the hourly wage needs is required. Child data changes - confirm or correct the withholding tax code
Recurring checksHourly wage - record hours every period, or confirm "none". Monthly wage deviates from the previous month - confirm or correct

Recurring checks aren't gaps in your data, and no import can answer them in advance. Unresolved Missing Data and Payroll Control cases also block closing the Payrun Period.

Example import

French national, lives in France, works in Geneva. The import delivers nationality FRA, residence FRA (with "75" in the canton field - a French département number), work location GE, married, 90 % workload, withholding tax location GE, exit 31.10.2026. Empty: residence permit, partner data, withholding tax status.

#Case Ason opensWhy
1Record residence categoryNot Swiss, permit missing (probably cross-border permit G)
2Record withholding tax dataLocation GE delivered, status and tariff missing
3Record type of stayResidence abroad and withholding tax liable - unless a cross-border commuter
4Record partner dataMarried, partner data empty - mandatory for code C
5Check additional employment / replacement income90 % workload, withholding tax liable
6Check exitExit in the open period (if that Payroll Control check is switched on)

Data that looks complete still opens 6 cases.

Resolve through Build, not around it

Resolving a case goes through Build, then Report - and Ason re-checks, which can open the next case (Missing Data and Payroll Control are Cases too). That loop is what CaseMan runs.

  • Skipping Build risks missing newly required fields
  • Your own UI works if it runs the same loop on the same calls - a CaseMan equivalent, not a fixed import mapping

to Feature Map