Register a Company
Provision a new user and company under your reseller account. The response contains the Partner API Key used for every other action on that company.
Use cases: Onboard a merchant from your own signup flow, then configure their company using the returned Partner API Key.
POST
/auth/register/partnerCreate a user (without a password) and a company, associate the company with your reseller, and receive a company-scoped Partner API Key. This endpoint is public and does not require authentication.
The created user has no password and receives no email — they operate entirely through the returned Partner API Key. Store the key securely; it is returned only once. The key is scoped to this single company with editor permissions.
Body Parameters
| Name | Type | Description | |
|---|---|---|---|
email | string | required | The user's email address. Must be unique across Glance. |
firstName | string | required | The user's first name. |
lastName | string | required | The user's last name. |
phoneNumber | string | required | The user's phone number. Validated and normalized to international format. |
companyId | string | required | The company's registration / tax ID (ח.פ. or ע.מ.). |
companyName | string | required | The company's display name. |
companyType | string | required | The company type. One of "MURSHE", "COMPANY", or "PATOOR". |
companyEmail | string | The company's contact email. Defaults to the user's email when omitted. | |
companyTaxAmount | number | Default VAT rate as a decimal (e.g. 0.18). Defaults to 0.18. | |
companyAddressId | number | ID of an existing address to attach to the company. | |
companyLogoFileId | number | ID of an uploaded file to use as the company logo. | |
companySignatureFileId | number | ID of an uploaded file to use as the company signature. | |
resellerSlug | string | Your reseller slug. When provided, the created company is associated with your reseller. An unknown slug returns 404 RESELLER_NOT_FOUND. |
Request
curl -X POST "https://api.glance.co.il/auth/register/partner" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "example_email",
"firstName": "example_firstName",
"lastName": "example_lastName",
"phoneNumber": "example_phoneNumber",
"companyId": "example_companyId",
"companyName": "example_companyName",
"companyType": "example_companyType",
"companyEmail": "example_companyEmail",
"companyTaxAmount": 0,
"companyAddressId": 0,
"companyLogoFileId": 0,
"companySignatureFileId": 0,
"resellerSlug": "example_resellerSlug"
}'Response
Response
{
"success": true,
"apiKey": "gk_live_1a2b3c4d5e6f7890abcdef1234567890abcdef1234567890abcdef1234567890"
}