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/partner

Create 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

NameTypeDescription
email
stringrequiredThe user's email address. Must be unique across Glance.
firstName
stringrequiredThe user's first name.
lastName
stringrequiredThe user's last name.
phoneNumber
stringrequiredThe user's phone number. Validated and normalized to international format.
companyId
stringrequiredThe company's registration / tax ID (ח.פ. or ע.מ.).
companyName
stringrequiredThe company's display name.
companyType
stringrequiredThe company type. One of "MURSHE", "COMPANY", or "PATOOR".
companyEmail
stringThe company's contact email. Defaults to the user's email when omitted.
companyTaxAmount
numberDefault VAT rate as a decimal (e.g. 0.18). Defaults to 0.18.
companyAddressId
numberID of an existing address to attach to the company.
companyLogoFileId
numberID of an uploaded file to use as the company logo.
companySignatureFileId
numberID of an uploaded file to use as the company signature.
resellerSlug
stringYour 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"
}