Overview
Complete both scenarios in the test environment before moving to production: report persons for a sub-report and year, then correct one of them. Run them once for each sub-report, sinceSIPL, SLIK and SKIS carry different person data and are authorised separately.
See Testing for the test environment and the practices shared by every report.
Test Scenarios
- Report Persons
- Correct Reported Person
Create a submission for one sub-report and year, push your persons, then submit.
Test Case 1: Create Submission
Test Case 1: Create Submission
Objective: Create a new submission for one sub-report and reporting year.Request: Whitelist the sending IP addresses first. They are listed under Webhook. Test whichever route you plan to use in production.Expected Response:
POST /reports/mai55/v1/submissionsRequest Body:webhookUrl is optional. Include it and the connector calls it with the final verdict once the submission finishes processing:HTTP 201 CreatedConfirm
kind is SUBMISSION and type matches what you asked for. Store the submissionId. It scopes every call in Test Cases 2 to 4.Test Case 2: Push Persons
Test Case 2: Push Persons
Objective: Add the persons you report for the year. Call this as many times as you need.Push to the path matching the submission’s sub-report. Pushing to another one is rejected.Expected Response:
- SIPL
- SLIK
- SKIS
Request:
POST /reports/mai55/v1/submissions/{submissionId}/sipl/personsThe example pushes two: a natural person and a legal entity.Only persons whose income across all their accounts reaches 15,000 EUR are reportable under
SIPL. The total is summed from the accounts rather than sent.clientPersonId is your own key. It must be unique within the submission, and it is how you amend or withdraw the person later. Send the optional Idempotency-Key header so a retry returns the original response instead of pushing the batch twice.HTTP 201 CreatedTest Case 3: Submit
Test Case 3: Submit
Objective: Hand the submission off to be reported to the tax authority.Request:
POST /reports/mai55/v1/submissions/{submissionId}:submitNo request body.Expected Response: HTTP 200 OKTest Case 4: Track Progress
Test Case 4: Track Progress
Objective: Follow the submission until the tax authority accepts it.Request: Poll until
Use these calls instead of the webhook, or alongside it whenever you want to check a submission by hand.
GET /reports/mai55/v1/submissions/{submissionId}/statusExpected Response: HTTP 200 OKstatus becomes REPORTED.