POST
/businesses/{bid}/accountant-report/sendSend the report now
POST /businesses/{bid}/accountant-report/send
Requires the businesses scope.
Sends the same letter the schedule sends, for a period you name (default: the last closed one). A period already mailed is skipped with sent: false, reason: "already_sent" unless force is true. Owner only.
Path parameters
| Name | Type | Description | |
|---|---|---|---|
bid | string | required | Business id, from POST /businesses. |
Body
| Field | Type | Description | |
|---|---|---|---|
period | string | YYYY-MM (a month), YYYY-Bn (a bi-monthly pair, B1 = Jan-Feb) or YYYY (a year). Default: the last closed period of the schedule's frequency. | |
force | boolean | Send even if this period was already mailed. Default true. |
Response
200: { "ok": true, … }
| Field | Type | Description | |
|---|---|---|---|
ok | boolean | required | |
sent | boolean | required | Whether a letter went out. |
period | object | The window that was reported. | |
to | array of string | ||
attachments | array of string |
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).