Subscribe

Creates a new API user


URI

https://analytics.eatlab.ai/v1/users/subscribe

HTTP Method

POST

Request Structure

{

   "restaurant_name": "string",

   "total_table": integer,

   "pos_type": "string",

   "total_outlets": integer,

   "total_menus": integer,

   "store_id": "string",

   "contact": {

       "first_name": "string",

       "last_name": "string",

       "role": "string",

       "tel": "string",

       "line_id": "string",

       "email": "string"

   }

}

Response Structure

{

   body: {

       code: <reserve for constant code>

       message: <text>

       data: <null | object | array>

   }

}

Sample Request

{

   "restaurant_name": "FoC",

   "total_table": 20,

   "pos_type": "FoC",

   "total_outlets": 20,

   "total_menus": 20,

   "store_id": "ss-1",

   "contact": {

       "first_name": "John",

       "last_name": "Doe",

       "role": "dev",

       "tel": "0844343434",

       "line_id": "@foc_org5",

       "email": "foc.test.eatlab@gmail.com"

   }

}

Sample Response

 

 

Notes

Name

Need

Data type

Note 

 

restaurant_name

Mandatory

string(255)

Unique name

ชื่อร้านค้าที่ต้องการมา register

total_table

Mandatory

Int | string(255)

 

จำนวนโต๊ะในร้านอาหาร

pos_type

Mandatory

string(255)

 

ยี่ห้อ POS ที่ใช้ 

total_outlets

Optional

Int | string(255)

 

จำนวนสาขาที่ลูกค้ามี

total_menus

Optional

Int | string(255)

 

จำนวนเมนูที่ลูกค้ามี

store_id

Mandatory

string(255)

Your internal id

ร้านค้า ID ของ POS หรือของลูกค้าที่สร้างไว้เพื่ออ้างกับระบบ ที่จะถูกนำมาใข้เป็น ID อ้างอิงกับ API สำหรับใช้ในการระบุตัวตนร้านค้า

contact

Mandatory

Object

 

Object ของข้อมูลการติดต่อ

  first_name

Mandatory

string(255)

 

ชื่อเพื่อสำหรับติดต่อร้านอาหาร

  last_name

Mandatory

string(255)

 

นามสกุลเพื่อสำหรับติดต่อร้านอาหาร

  role

Mandatory

string(255)

 

ตำแหน่ง

  tel

Mandatory

string(255)

 

เบอร์โทรศัพท์

  line_id

Mandatory

string(255)

 

Line id ถ้ามี

  email

Mandatory

string(255)

 

Email ถ้ามี