POST
/businesses/{bid}/ita/simulateMove a sandbox connection in time
POST /businesses/{bid}/ita/simulate
Requires the businesses scope.
Sandbox only. expiring moves a connected sandbox business to its last days and fires ita.expiring; expired ends its consent and fires ita.expired. For trying your reminders and screens today rather than in three months. A live key is refused with 403 forbidden.
Path parameters
| Name | Type | Description | |
|---|---|---|---|
bid | string | required | Business id, from POST /businesses. |
Body
| Field | Type | Description | |
|---|---|---|---|
state | string | required | One of: expiring, expired. |
Response
200: { "ok": true, … }
| Field | Type | Description | |
|---|---|---|---|
ok | boolean | required | |
ita | ItaConnection | required | A business's connection to רשות המסים (חשבוניות ישראל): whether BillOS may request מספרי הקצאה for it, and until when. Never a token: those stay in BillOS. |
Errors: 400, 401, 403, 404, 429. Every failure answers { "error", "reason", "hint", "param", "doc_url", "retryable", "request_id" }: branch on reason, and read hint for what to change (https://docs.billos.co.il/errors.md).