Getting Started
Catalog Update
Order Management
Total Sales
Suppliers Details
Buyers Details
Getting started
Getting started
How to create a new customer?
To create a new user, you must send a unique customer ID, the customer’s Business registration number, and the customer name.
Customer_number: your unique customer ID number
accountingId: The customer’s business official registration number
companyName: The customer’s business name
Force: force the system to create a new customer regardless of the matching existing customer
Once a customer is created, a response is generated with a link to complete his registration:
Response options:
1. New Customer: Creates a new customer and provides a new user registration unique URL.
2. Existing accounting ID: See the extended explanation below (Under ‘Failure’ paragraph)
Sample Request:
- Method: GET
- URL: https://api.zester.co.il/api/Account/GetCustomerRegistrationURL
- Params:
- customerNumber: string
- force: false
- accountingid: string
- companyName: string
- {OPTIONAL} operatorId: number
- Authorization type: Bearer Token
Request sample:
Method: GET
Header:
Authorization: Bearer {token}
URL: https:test-api.co.il/api/Account/GetCustomerRegistrationURL/customerNumber=22561&force=false&accountingId=458756&companyName=companytest
Sample Response:
Status: 200 OK
{
"Success": Boolean,
"FullFillId": guid| string,
"AccountingOptions": [
{
"Name": string,
"Id": number | int64,
"customerNumber": string
}
],
"RegisterUrl": string
Success:
Sucessfull case a connexion URL will be returned.
Successfull account setup will occure once a user is connected with a unique costumer ID.
If Force parameter is used – URL will always be returned, since it will delete a current user, if exists.
Failure
In case of exsiting customer (i.e same customer id number), the request will send success: false.
In this case, there are two options:
- Merge a created customer with an exsiting one:
Select an id from the AccountingOptions
insert the selected id inside the parameter operatorId and send a new request: GetCustomerRegistrationURL
You can also use this option to update customer’s operator number. - In case you want to add a new customer under an existing Accounting Id,
send a fulfillment request: insertFullFillId
from the response inside the parameter FullfillmentId
(i.e: same company owns several business under one tax id number)
Fulfillment request:
Method: Get
URL:/Account/GetCustomerRegistrationURLFullfillment
params:
FullfillmentId:guid
Fulfillment response:
https://test-app.zester.co.il/#/register-customer/?FullfillmentId=47464351-ec66-4d98-b0b3-791e4914d5e0
Returns registration URL