Businesses
A platform — a SaaS running Glance underneath — opens a business per customer. Each business has its own Israeli business id, API keys, Tax Authority connection and document numbering; the developer account's tier covers a number of them and pays for all of them in one monthly charge. These routes are for the developer account only: called with a business's own key or session they answer 403 `API_PLATFORM_ONLY`.
/platform/businessesEvery business of the account — the developer account itself first — with its documents in one month and its Tax Authority connection.
Query Parameters
| Name | Type | Description | |
|---|---|---|---|
month | string | The month to report documents for, as `YYYY-MM`. Defaults to the current month; any other format is ignored and the current month is used. |
Request
curl -X GET "https://api.glance.co.il/platform/businesses" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Response
{
"month": "2026-11",
"businesses": [
{
"id": "3f0b6c1d-8e2a-4c5b-9d7e-1a2b3c4d5e6f",
"name": "Acme Software בע״מ",
"taxId": "516000001",
"isPlatform": true,
"active": true,
"closesAt": null,
"usage": {
"month": "2026-11",
"documents": 4,
"fairUseDocuments": 10000,
"overFairUse": false
},
"taxAuthority": {
"connected": true,
"expiresAt": "2027-01-20T08:00:00.000Z"
}
},
{
"id": "7c1e2a90-4b6d-4f1e-9a3b-2d5f8e0c1a77",
"name": "סטודיו לוטם",
"taxId": "514000003",
"isPlatform": false,
"active": true,
"closesAt": null,
"usage": {
"month": "2026-11",
"documents": 132,
"fairUseDocuments": 10000,
"overFairUse": false
},
"taxAuthority": {
"connected": true,
"expiresAt": "2027-02-03T10:15:00.000Z"
}
}
]
}/platform/businessesOpen a business under the developer account. Returns the business, its first API key — shown once — the result of any starting numbers you set, and a Tax Authority connect link for its owner.
Body Parameters
| Name | Type | Description | |
|---|---|---|---|
name | string | required | The business's name as it appears on its documents, 1-255 characters. |
taxId | string | required | The Israeli business id (ח.פ. / ע.מ. / ת.ז.). Must pass the check-digit test, and must not already belong to a business on Glance. |
type | string | required | "MURSHE" (licensed dealer), "COMPANY" or "PATOOR" (exempt dealer). |
email | string | The business's email. Defaults to the developer account's email. | |
taxAmount | number | VAT rate as a fraction, 0-1. Defaults to 0.18. | |
keyName | string | Name of the first API key, 1-100 characters. Defaults to "Production". | |
startingNumbers | object | Where each tax document type's numbering starts — for a business moving from other software that must continue its sequence. Keys: `invoice`, `invoiceReceipt`, `receipt`, `refund` (credit note); any other key is rejected. Each value is either a positive integer (the starting number) or an object: | |
start | number | required | The number the next document of this type gets. A positive integer. |
prefix | string | Printed before the number, e.g. "R-". Up to 20 characters. | |
paddingLength | number | Pad the number with leading zeros to this many digits, 0-12. |
Request
curl -X POST "https://api.glance.co.il/platform/businesses" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "example_name",
"taxId": "example_taxId",
"type": "example_type",
"email": "example_email",
"taxAmount": 0,
"keyName": "example_keyName",
"startingNumbers": {}
}'Response
{
"business": {
"id": "7c1e2a90-4b6d-4f1e-9a3b-2d5f8e0c1a77",
"name": "סטודיו לוטם",
"taxId": "514000003"
},
"apiKey": "gk_live_9b2f4c7e1a3d5f8b0c2e4a6d8f1b3c5e7a9d2f4b6c8e0a1c3e5f7b9d1a3c5e7f",
"numbering": {
"invoice": {
"status": "set",
"start": 1001
},
"receipt": {
"status": "set",
"start": 500
}
},
"taxAuthorityConnect": {
"url": "https://app.glance.co.il/connect/tax-authority?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…",
"expiresAt": "2026-11-14T09:30:00.000Z"
}
}/platform/businesses/:idOne business with its documents in a month, its Tax Authority connection and its API keys.
Path Parameters
| Name | Type | Description | |
|---|---|---|---|
id | string | required | The business's `id` (a UUID) as POST /platform/businesses and GET /platform/businesses return it. |
Query Parameters
| Name | Type | Description | |
|---|---|---|---|
month | string | The month to report documents for, as `YYYY-MM`. Defaults to the current month. |
Request
curl -X GET "https://api.glance.co.il/platform/businesses/:id" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Response
{
"business": {
"id": "7c1e2a90-4b6d-4f1e-9a3b-2d5f8e0c1a77",
"name": "סטודיו לוטם",
"taxId": "514000003",
"isPlatform": false,
"active": true,
"closesAt": null,
"usage": {
"month": "2026-11",
"documents": 132,
"fairUseDocuments": 10000,
"overFairUse": false
},
"taxAuthority": {
"connected": true,
"expiresAt": "2027-02-03T10:15:00.000Z"
}
},
"apiKeys": [
{
"id": 913,
"name": "Production",
"createdAt": "2026-11-02T09:30:00.000Z",
"lastUsed": "2026-11-07T07:12:44.000Z",
"last4": "5e7f"
}
]
}/platform/businesses/:id/numberingSet where a business's numbering starts, per tax document type — typically right after opening it, when the customer moves from other software and must continue its sequence.
Path Parameters
| Name | Type | Description | |
|---|---|---|---|
id | string | required | The business's `id` (a UUID) as POST /platform/businesses and GET /platform/businesses return it. |
Body Parameters
| Name | Type | Description | |
|---|---|---|---|
startingNumbers | object | required | Where each tax document type's numbering starts — for a business moving from other software that must continue its sequence. Keys: `invoice`, `invoiceReceipt`, `receipt`, `refund` (credit note); any other key is rejected. Each value is either a positive integer (the starting number) or an object: |
start | number | required | The number the next document of this type gets. A positive integer. |
prefix | string | Printed before the number, e.g. "R-". Up to 20 characters. | |
paddingLength | number | Pad the number with leading zeros to this many digits, 0-12. |
Request
curl -X PUT "https://api.glance.co.il/platform/businesses/:id/numbering" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"startingNumbers": {}
}'Response
{
"success": true,
"numbering": {
"invoice": {
"status": "set",
"start": 1001
},
"receipt": {
"status": "locked",
"start": 500
}
}
}/platform/businesses/:id/keysIssue another API key for a business — to rotate a key, or to give a second service its own.
Path Parameters
| Name | Type | Description | |
|---|---|---|---|
id | string | required | The business's `id` (a UUID) as POST /platform/businesses and GET /platform/businesses return it. |
Body Parameters
| Name | Type | Description | |
|---|---|---|---|
name | string | A name for the key, up to 100 characters. Defaults to "API key". |
Request
curl -X POST "https://api.glance.co.il/platform/businesses/:id/keys" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "example_name"
}'Response
{
"id": 914,
"apiKey": "gk_live_0d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a3c5e7b9d1f3a5c7e9b1d3f"
}/platform/businesses/:id/keys/:keyIdRevoke one API key of a business. It stops working immediately.
Path Parameters
| Name | Type | Description | |
|---|---|---|---|
id | string | required | The business's `id` (a UUID) as POST /platform/businesses and GET /platform/businesses return it. |
keyId | number | required | The key's `id` from GET /platform/businesses/:id. |
Request
curl -X DELETE "https://api.glance.co.il/platform/businesses/:id/keys/:keyId" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Response
{
"success": true
}/platform/businesses/:id/tax-connect-linkA fresh Tax Authority connect link for the business owner. The owner opens it, logs in to the Israel Tax Authority and approves — after that the business gets allocation numbers on its own authorization.
Path Parameters
| Name | Type | Description | |
|---|---|---|---|
id | string | required | The business's `id` (a UUID) as POST /platform/businesses and GET /platform/businesses return it. |
Request
curl -X POST "https://api.glance.co.il/platform/businesses/:id/tax-connect-link" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Response
{
"url": "https://app.glance.co.il/connect/tax-authority?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…",
"expiresAt": "2026-11-14T09:30:00.000Z"
}/platform/businesses/:idClose a business: its API keys stop working now. It still counts as connected for the current month, and not for the next.
Path Parameters
| Name | Type | Description | |
|---|---|---|---|
id | string | required | The business's `id` (a UUID) as POST /platform/businesses and GET /platform/businesses return it. |
Request
curl -X DELETE "https://api.glance.co.il/platform/businesses/:id" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Response
{
"success": true
}