Maplife Backend API

Operations
Find all instances of the model matched by filter from the data source
GET /News

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of News
Create a new instance of the model and persist it into the data source
POST /News

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /News

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /News/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /News/{id}

Path variables

id
string JSON required

News id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /News/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /News/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /News/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /NewsCategories

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of NewsCategory
Create a new instance of the model and persist it into the data source
POST /NewsCategories

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /NewsCategories

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /NewsCategories/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /NewsCategories/{id}

Path variables

id
string JSON required

NewsCategory id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /NewsCategories/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /NewsCategories/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /NewsCategories/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /AppSettings

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of AppSetting
Create a new instance of the model and persist it into the data source
POST /AppSettings

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /AppSettings

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /AppSettings/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /AppSettings/{id}

Path variables

id
string JSON required

AppSetting id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /AppSettings/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /AppSettings/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /AppSettings/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
UserApp
GET /UserApps/{id}/accessTokens/{fk}
PUT /UserApps/{id}/accessTokens/{fk}
DELETE /UserApps/{id}/accessTokens/{fk}
GET /UserApps/{id}/tier
GET /UserApps/{id}/groups/{fk}
PUT /UserApps/{id}/groups/{fk}
DELETE /UserApps/{id}/groups/{fk}
PUT /UserApps/{id}/groups/rel/{fk}
DELETE /UserApps/{id}/groups/rel/{fk}
HEAD /UserApps/{id}/groups/rel/{fk}
GET /UserApps/{id}/accessTokens
DELETE /UserApps/{id}/accessTokens
GET /UserApps/{id}/accessTokens/count
GET /UserApps/{id}/groups
DELETE /UserApps/{id}/groups
GET /UserApps/{id}/groups/count
POST /UserApps/logout
POST /UserApps/portalLogin
POST /UserApps/portalChangePassword
POST /UserApps/portalRegisterAccount
POST /UserApps/portalResetPassword
POST /UserApps/portalCheckAccount
POST /UserApps/portalSendPassSMS
POST /UserApps/portalSendPassAddress
POST /UserApps/{id}/getEgiftCodeFromPoints
POST /UserApps/{id}/getRewardFromNotification
POST /UserApps/{id}/getRewardFromPromotion
POST /UserApps/{id}/checkAction
GET /UserApps/{id}/getInfo
POST /UserApps/calculateTierByPoints
POST /UserApps/calculateTierByMoney
GET /UserApps/{id}/getQuestState
GET /UserApps/{id}/getContracts
GET /UserApps/{id}/getContractInfo
POST /UserApps/{id}/openPartnerPromotion
Find a related item by id for accessTokens
GET /UserApps/{id}/accessTokens/{fk}

Path variables

id
string JSON required

UserApp id

fk
string JSON required

Foreign key for accessTokens

Responses

200 200

Request was successful

Update a related item by id for accessTokens
PUT /UserApps/{id}/accessTokens/{fk}

Path variables

id
string JSON required

UserApp id

fk
string JSON required

Foreign key for accessTokens

Request body

Responses

200 200

Request was successful

Delete a related item by id for accessTokens
DELETE /UserApps/{id}/accessTokens/{fk}

Path variables

id
string JSON required

UserApp id

fk
string JSON required

Foreign key for accessTokens

Responses

204 204

Request was successful

Fetches belongsTo relation tier
GET /UserApps/{id}/tier

Path variables

id
string JSON required

UserApp id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Body
Find a related item by id for groups
GET /UserApps/{id}/groups/{fk}

Path variables

id
string JSON required

UserApp id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

Update a related item by id for groups
PUT /UserApps/{id}/groups/{fk}

Path variables

id
string JSON required

UserApp id

fk
string JSON required

Foreign key for groups

Request body

Responses

200 200

Request was successful

Delete a related item by id for groups
DELETE /UserApps/{id}/groups/{fk}

Path variables

id
string JSON required

UserApp id

fk
string JSON required

Foreign key for groups

Responses

204 204

Request was successful

PUT /UserApps/{id}/groups/rel/{fk}

Path variables

id
string JSON required

UserApp id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

DELETE /UserApps/{id}/groups/rel/{fk}

Path variables

id
string JSON required

UserApp id

fk
string JSON required

Foreign key for groups

Responses

204 204

Request was successful

Check the existence of groups relation to an item by id
HEAD /UserApps/{id}/groups/rel/{fk}

Path variables

id
string JSON required

UserApp id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

Body
boolean
Queries accessTokens of UserApp
GET /UserApps/{id}/accessTokens

Path variables

id
string JSON required

UserApp id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Creates a new instance in accessTokens of this model
POST /UserApps/{id}/accessTokens

Path variables

id
string JSON required

UserApp id

Request body

Responses

200 200

Request was successful

Deletes all accessTokens of this model
DELETE /UserApps/{id}/accessTokens

Path variables

id
string JSON required

UserApp id

Responses

204 204

Request was successful

Counts accessTokens of UserApp
GET /UserApps/{id}/accessTokens/count

Path variables

id
string JSON required

UserApp id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Queries groups of UserApp
GET /UserApps/{id}/groups

Path variables

id
string JSON required

UserApp id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Array of CustomerGroup
Creates a new instance in groups of this model
POST /UserApps/{id}/groups

Path variables

id
string JSON required

UserApp id

Request body

Responses

200 200

Request was successful

Deletes all groups of this model
DELETE /UserApps/{id}/groups

Path variables

id
string JSON required

UserApp id

Responses

204 204

Request was successful

Counts groups of UserApp
GET /UserApps/{id}/groups/count

Path variables

id
string JSON required

UserApp id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /UserApps

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of UserApp
Create a new instance of the model and persist it into the data source
POST /UserApps

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /UserApps

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /UserApps/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /UserApps/{id}

Path variables

id
string JSON required

UserApp id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /UserApps/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /UserApps/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /UserApps/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Logout a user with access token
POST /UserApps/logout

Responses

204 204

Request was successful

Login user through portal
POST /UserApps/portalLogin

Request parameters

forceFirstLogin
boolean optional

Request body

Object
username
string required
password
string required

Responses

200 200

Request was successful

Body
Object
username
string
data
accessToken
firstLogin
boolean
portal
boolean
Change user password through portal
POST /UserApps/portalChangePassword

Request body

Object
oldPassword
string required
newPassword
string required

Responses

200 200

Request was successful

Body
Object

return data

Create new account through portal
POST /UserApps/portalRegisterAccount

Request body

Object
username
string required
password
string required
birthday
string required
idNumber
string required
contractName
string required

Responses

200 200

Request was successful

Body
Object
username
string
data
accessToken
Reset user password
POST /UserApps/portalResetPassword

Request body

Object
username
string required
birthday
string required

Responses

200 200

Request was successful

Body
Object

return data

call CheckAccount cua portal
POST /UserApps/portalCheckAccount

Request body

Object
username
string required
birthday
string required

Responses

200 200

Request was successful

Body
Object

return data

call CheckAccount cua portal
POST /UserApps/portalSendPassSMS

Request body

Object
username
string required
phoneNumber
string required

Responses

200 200

Request was successful

Body
Object

return data

call SendPassAddress cua portal
POST /UserApps/portalSendPassAddress

Request body

Object
username
string required
phoneNumber
string required
address
string

Responses

200 200

Request was successful

Body
Object

return data

Sử dụng điểm đổi EgiftCode
POST /UserApps/{id}/getEgiftCodeFromPoints

Path variables

id
string JSON required

UserApp id

Request body

Object
eGiftId
number required

Responses

200 200

Request was successful

Body
Nhận quà từ notification
POST /UserApps/{id}/getRewardFromNotification

Path variables

id
string JSON required

UserApp id

Request body

Object
notificationId
number required

Responses

200 200

Request was successful

Body
Object

return UserApp or EGiftCode depend on hasGift value

Nhận quà từ promotion
POST /UserApps/{id}/getRewardFromPromotion

Path variables

id
string JSON required

UserApp id

Request body

Object
promotionId
number required

Responses

200 200

Request was successful

Body
Object

return UserApp or EGiftCode depend on hasGift value

kiễm tra lịch sử hành động
POST /UserApps/{id}/checkAction

Path variables

id
string JSON required

UserApp id

Request body

Object
itemId
number required
actionName
string required

Responses

200 200

Request was successful

Body
Object

return LoyaltyActionHistory if exists

get user info with trigger update tier
GET /UserApps/{id}/getInfo

Path variables

id
string JSON required

UserApp id

Responses

200 200

Request was successful

Body
Tính tier của toàn bộ user bằng điểm
POST /UserApps/calculateTierByPoints

Responses

200 200

Request was successful

Body
Object
success
boolean

success

Tính tier của users bằng giá trị hợp đồng
POST /UserApps/calculateTierByMoney

Responses

200 200

Request was successful

Body
Object
success
boolean

success

Lấy trạng thái các quest của user
GET /UserApps/{id}/getQuestState

Path variables

id
string JSON required

UserApp id

Responses

200 200

Request was successful

Body
Array of x-any

Quest state list

Lấy danh sách hợp đồng
GET /UserApps/{id}/getContracts

Path variables

id
string JSON required

UserApp id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Array of x-any

Danh sách hợp đồng

Lấy thông tin chi tiết của 1 hợp đồng
GET /UserApps/{id}/getContractInfo

Path variables

id
string JSON required

UserApp id

Request parameters

contractId
string required

Responses

200 200

Request was successful

Body
Object

Thông tin hợp đồng

Sử dụng điểm để truy cập promotion của partner
POST /UserApps/{id}/openPartnerPromotion

Path variables

id
string JSON required

UserApp id

Request body

Object
partnerPromotionId
number required

Responses

200 200

Request was successful

Body
Object
user
partnerPromotion
UserDeviceToken
GET /UserDeviceTokens/sendPushNoti_All_Devices
GET /UserDeviceTokens/sendPushNoti_Subscribed_Topic
GET /UserDeviceTokens/sendPushNoti_Specific_Device
GET /UserDeviceTokens/sendPushNoti_Multiple_Devices
GET /UserDeviceTokens/sendPushNoti_To_ListUserId
GET /UserDeviceTokens/sendPushNoti_To_UserId
Find all instances of the model matched by filter from the data source
GET /UserDeviceTokens

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of UserDeviceToken
Create a new instance of the model and persist it into the data source
POST /UserDeviceTokens

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /UserDeviceTokens

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /UserDeviceTokens/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /UserDeviceTokens/{id}

Path variables

id
string JSON required

UserDeviceToken id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /UserDeviceTokens/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /UserDeviceTokens/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /UserDeviceTokens/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
UserDeviceTokensendPushNoti_All_Devices
GET /UserDeviceTokens/sendPushNoti_All_Devices

Request parameters

title
string optional
body
string optional

Responses

200 200

Request was successful

Body
Object
item
Object
UserDeviceTokensendPushNoti_Subscribed_Topic
GET /UserDeviceTokens/sendPushNoti_Subscribed_Topic

Request parameters

title
string optional
body
string optional
topic
string optional

Responses

200 200

Request was successful

Body
Object
item
Object
UserDeviceTokensendPushNoti_Specific_Device
GET /UserDeviceTokens/sendPushNoti_Specific_Device

Request parameters

title
string optional
body
string optional
token
string optional

Responses

200 200

Request was successful

Body
Object
item
Object
UserDeviceTokensendPushNoti_Multiple_Devices
GET /UserDeviceTokens/sendPushNoti_Multiple_Devices

Request parameters

title
string optional
body
string optional
tokens
string JSON optional

Responses

200 200

Request was successful

Body
Object
item
Object
UserDeviceTokensendPushNoti_To_ListUserId
GET /UserDeviceTokens/sendPushNoti_To_ListUserId

Request parameters

title
string optional
body
string optional
listuserid
string JSON optional

Responses

200 200

Request was successful

Body
Object
item
Object
UserDeviceTokensendPushNoti_To_UserId
GET /UserDeviceTokens/sendPushNoti_To_UserId

Request parameters

title
string optional
body
string optional
userid
number double optional

Responses

200 200

Request was successful

Body
Object
item
Object
Find a related item by id for accessTokens
GET /UserAdmins/{id}/accessTokens/{fk}

Path variables

id
string JSON required

UserAdmin id

fk
string JSON required

Foreign key for accessTokens

Responses

200 200

Request was successful

Update a related item by id for accessTokens
PUT /UserAdmins/{id}/accessTokens/{fk}

Path variables

id
string JSON required

UserAdmin id

fk
string JSON required

Foreign key for accessTokens

Request body

Responses

200 200

Request was successful

Delete a related item by id for accessTokens
DELETE /UserAdmins/{id}/accessTokens/{fk}

Path variables

id
string JSON required

UserAdmin id

fk
string JSON required

Foreign key for accessTokens

Responses

204 204

Request was successful

Fetches belongsTo relation department
GET /UserAdmins/{id}/department

Path variables

id
string JSON required

UserAdmin id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Body
Queries accessTokens of UserAdmin
GET /UserAdmins/{id}/accessTokens

Path variables

id
string JSON required

UserAdmin id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Creates a new instance in accessTokens of this model
POST /UserAdmins/{id}/accessTokens

Path variables

id
string JSON required

UserAdmin id

Request body

Responses

200 200

Request was successful

Deletes all accessTokens of this model
DELETE /UserAdmins/{id}/accessTokens

Path variables

id
string JSON required

UserAdmin id

Responses

204 204

Request was successful

Counts accessTokens of UserAdmin
GET /UserAdmins/{id}/accessTokens/count

Path variables

id
string JSON required

UserAdmin id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /UserAdmins

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of UserAdmin
Create a new instance of the model and persist it into the data source
POST /UserAdmins

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /UserAdmins

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /UserAdmins/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /UserAdmins/{id}

Path variables

id
string JSON required

UserAdmin id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /UserAdmins/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /UserAdmins/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /UserAdmins/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Login a user with usernameemail and password
POST /UserAdmins/login

Request parameters

include
string JSON optional

Related objects to include in the response. See the description of return value for more details.

Request body

Object

Responses

200 200

Request was successful

Body
Object

The response body contains properties of the AccessToken created on login. Depending on the value of include parameter, the body may contain additional properties:

  • user - U+007BUserU+007D - Data of the currently logged in user. (include=user)
Logout a user with access token
POST /UserAdmins/logout

Responses

204 204

Request was successful

Find all instances of the model matched by filter from the data source
GET /Tiers

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of Tier
Create a new instance of the model and persist it into the data source
POST /Tiers

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /Tiers

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /Tiers/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /Tiers/{id}

Path variables

id
string JSON required

Tier id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /Tiers/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /Tiers/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /Tiers/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /PointHistories

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of PointHistory
Create a new instance of the model and persist it into the data source
POST /PointHistories

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /PointHistories

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /PointHistories/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /PointHistories/{id}

Path variables

id
string JSON required

PointHistory id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /PointHistories/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /PointHistories/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /PointHistories/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /PointsRewards

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of PointsReward
Create a new instance of the model and persist it into the data source
POST /PointsRewards

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /PointsRewards

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /PointsRewards/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /PointsRewards/{id}

Path variables

id
string JSON required

PointsReward id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /PointsRewards/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /PointsRewards/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /PointsRewards/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /PromotionCategories

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Create a new instance of the model and persist it into the data source
POST /PromotionCategories

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /PromotionCategories

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /PromotionCategories/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /PromotionCategories/{id}

Path variables

id
string JSON required

PromotionCategory id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /PromotionCategories/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /PromotionCategories/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /PromotionCategories/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find a related item by id for groups
GET /Promotions/{id}/groups/{fk}

Path variables

id
string JSON required

Promotion id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

Update a related item by id for groups
PUT /Promotions/{id}/groups/{fk}

Path variables

id
string JSON required

Promotion id

fk
string JSON required

Foreign key for groups

Request body

Responses

200 200

Request was successful

Delete a related item by id for groups
DELETE /Promotions/{id}/groups/{fk}

Path variables

id
string JSON required

Promotion id

fk
string JSON required

Foreign key for groups

Responses

204 204

Request was successful

PUT /Promotions/{id}/groups/rel/{fk}

Path variables

id
string JSON required

Promotion id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

DELETE /Promotions/{id}/groups/rel/{fk}

Path variables

id
string JSON required

Promotion id

fk
string JSON required

Foreign key for groups

Responses

204 204

Request was successful

Check the existence of groups relation to an item by id
HEAD /Promotions/{id}/groups/rel/{fk}

Path variables

id
string JSON required

Promotion id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

Body
boolean
Queries groups of Promotion
GET /Promotions/{id}/groups

Path variables

id
string JSON required

Promotion id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Array of CustomerGroup
Creates a new instance in groups of this model
POST /Promotions/{id}/groups

Path variables

id
string JSON required

Promotion id

Request body

Responses

200 200

Request was successful

Deletes all groups of this model
DELETE /Promotions/{id}/groups

Path variables

id
string JSON required

Promotion id

Responses

204 204

Request was successful

Counts groups of Promotion
GET /Promotions/{id}/groups/count

Path variables

id
string JSON required

Promotion id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /Promotions

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of Promotion
Create a new instance of the model and persist it into the data source
POST /Promotions

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /Promotions

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /Promotions/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /Promotions/{id}

Path variables

id
string JSON required

Promotion id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /Promotions/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /Promotions/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /Promotions/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Xuất kết quả ra excel
GET /Promotions/{id}/exportExcel

Path variables

id
string JSON required

Promotion id

Responses

200 200

Request was successful

Body
string binary
Find a related item by id for groups
GET /Partners/{id}/groups/{fk}

Path variables

id
string JSON required

Partner id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

Update a related item by id for groups
PUT /Partners/{id}/groups/{fk}

Path variables

id
string JSON required

Partner id

fk
string JSON required

Foreign key for groups

Request body

Responses

200 200

Request was successful

Delete a related item by id for groups
DELETE /Partners/{id}/groups/{fk}

Path variables

id
string JSON required

Partner id

fk
string JSON required

Foreign key for groups

Responses

204 204

Request was successful

PUT /Partners/{id}/groups/rel/{fk}

Path variables

id
string JSON required

Partner id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

DELETE /Partners/{id}/groups/rel/{fk}

Path variables

id
string JSON required

Partner id

fk
string JSON required

Foreign key for groups

Responses

204 204

Request was successful

Check the existence of groups relation to an item by id
HEAD /Partners/{id}/groups/rel/{fk}

Path variables

id
string JSON required

Partner id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

Body
boolean
Queries groups of Partner
GET /Partners/{id}/groups

Path variables

id
string JSON required

Partner id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Array of CustomerGroup
Creates a new instance in groups of this model
POST /Partners/{id}/groups

Path variables

id
string JSON required

Partner id

Request body

Responses

200 200

Request was successful

Deletes all groups of this model
DELETE /Partners/{id}/groups

Path variables

id
string JSON required

Partner id

Responses

204 204

Request was successful

Counts groups of Partner
GET /Partners/{id}/groups/count

Path variables

id
string JSON required

Partner id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /Partners

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of Partner
Create a new instance of the model and persist it into the data source
POST /Partners

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /Partners

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /Partners/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /Partners/{id}

Path variables

id
string JSON required

Partner id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /Partners/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /Partners/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /Partners/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /EmailHistories

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of EmailHistory
Create a new instance of the model and persist it into the data source
POST /EmailHistories

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /EmailHistories

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /EmailHistories/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /EmailHistories/{id}

Path variables

id
string JSON required

EmailHistory id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /EmailHistories/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /EmailHistories/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /EmailHistories/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /HotlineClickHistories

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Create a new instance of the model and persist it into the data source
POST /HotlineClickHistories

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /HotlineClickHistories

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /HotlineClickHistories/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /HotlineClickHistories/{id}

Path variables

id
string JSON required

HotlineClickHistory id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /HotlineClickHistories/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /HotlineClickHistories/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /HotlineClickHistories/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /PromotionHistories

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Create a new instance of the model and persist it into the data source
POST /PromotionHistories

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /PromotionHistories

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /PromotionHistories/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /PromotionHistories/{id}

Path variables

id
string JSON required

PromotionHistory id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /PromotionHistories/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /PromotionHistories/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /PromotionHistories/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /Affiliates

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of Affiliate
Create a new instance of the model and persist it into the data source
POST /Affiliates

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /Affiliates

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /Affiliates/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /Affiliates/{id}

Path variables

id
string JSON required

Affiliate id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /Affiliates/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /Affiliates/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /Affiliates/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Fetches belongsTo relation user
GET /Reminders/{id}/user

Path variables

id
string JSON required

Reminder id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Body
Find a related item by id for groups
GET /Reminders/{id}/groups/{fk}

Path variables

id
string JSON required

Reminder id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

Update a related item by id for groups
PUT /Reminders/{id}/groups/{fk}

Path variables

id
string JSON required

Reminder id

fk
string JSON required

Foreign key for groups

Request body

Responses

200 200

Request was successful

Delete a related item by id for groups
DELETE /Reminders/{id}/groups/{fk}

Path variables

id
string JSON required

Reminder id

fk
string JSON required

Foreign key for groups

Responses

204 204

Request was successful

PUT /Reminders/{id}/groups/rel/{fk}

Path variables

id
string JSON required

Reminder id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

DELETE /Reminders/{id}/groups/rel/{fk}

Path variables

id
string JSON required

Reminder id

fk
string JSON required

Foreign key for groups

Responses

204 204

Request was successful

Check the existence of groups relation to an item by id
HEAD /Reminders/{id}/groups/rel/{fk}

Path variables

id
string JSON required

Reminder id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

Body
boolean
Queries groups of Reminder
GET /Reminders/{id}/groups

Path variables

id
string JSON required

Reminder id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Array of CustomerGroup
Creates a new instance in groups of this model
POST /Reminders/{id}/groups

Path variables

id
string JSON required

Reminder id

Request body

Responses

200 200

Request was successful

Deletes all groups of this model
DELETE /Reminders/{id}/groups

Path variables

id
string JSON required

Reminder id

Responses

204 204

Request was successful

Counts groups of Reminder
GET /Reminders/{id}/groups/count

Path variables

id
string JSON required

Reminder id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /Reminders

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of Reminder
Create a new instance of the model and persist it into the data source
POST /Reminders

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /Reminders

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /Reminders/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /Reminders/{id}

Path variables

id
string JSON required

Reminder id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /Reminders/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /Reminders/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /Reminders/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /Emails

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of Email
Create a new instance of the model and persist it into the data source
POST /Emails

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /Emails

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /Emails/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /Emails/{id}

Path variables

id
string JSON required

Email id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /Emails/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /Emails/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /Emails/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /NotificationCategories

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Create a new instance of the model and persist it into the data source
POST /NotificationCategories

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /NotificationCategories

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /NotificationCategories/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /NotificationCategories/{id}

Path variables

id
string JSON required

NotificationCategory id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /NotificationCategories/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /NotificationCategories/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /NotificationCategories/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /Departments

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of Department
Create a new instance of the model and persist it into the data source
POST /Departments

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /Departments

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /Departments/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /Departments/{id}

Path variables

id
string JSON required

Department id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /Departments/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /Departments/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /Departments/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find a related item by id for groups
GET /Notifications/{id}/groups/{fk}

Path variables

id
string JSON required

Notification id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

Update a related item by id for groups
PUT /Notifications/{id}/groups/{fk}

Path variables

id
string JSON required

Notification id

fk
string JSON required

Foreign key for groups

Request body

Responses

200 200

Request was successful

Delete a related item by id for groups
DELETE /Notifications/{id}/groups/{fk}

Path variables

id
string JSON required

Notification id

fk
string JSON required

Foreign key for groups

Responses

204 204

Request was successful

PUT /Notifications/{id}/groups/rel/{fk}

Path variables

id
string JSON required

Notification id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

DELETE /Notifications/{id}/groups/rel/{fk}

Path variables

id
string JSON required

Notification id

fk
string JSON required

Foreign key for groups

Responses

204 204

Request was successful

Check the existence of groups relation to an item by id
HEAD /Notifications/{id}/groups/rel/{fk}

Path variables

id
string JSON required

Notification id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

Body
boolean
Queries groups of Notification
GET /Notifications/{id}/groups

Path variables

id
string JSON required

Notification id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Array of CustomerGroup
Creates a new instance in groups of this model
POST /Notifications/{id}/groups

Path variables

id
string JSON required

Notification id

Request body

Responses

200 200

Request was successful

Deletes all groups of this model
DELETE /Notifications/{id}/groups

Path variables

id
string JSON required

Notification id

Responses

204 204

Request was successful

Counts groups of Notification
GET /Notifications/{id}/groups/count

Path variables

id
string JSON required

Notification id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /Notifications

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of Notification
Create a new instance of the model and persist it into the data source
POST /Notifications

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /Notifications

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /Notifications/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /Notifications/{id}

Path variables

id
string JSON required

Notification id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /Notifications/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /Notifications/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /Notifications/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /Egifts

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of Egift
Create a new instance of the model and persist it into the data source
POST /Egifts

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /Egifts

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /Egifts/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /Egifts/{id}

Path variables

id
string JSON required

Egift id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /Egifts/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /Egifts/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /Egifts/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Import danh sách phẳng voucher mệnh giá của GotIt
POST /Egifts/importGotItProducts

Responses

204 204

Request was successful

Lấy EgiftCode từ vendor
POST /Egifts/{id}/stockFromVendor

Path variables

id
string JSON required

Egift id

Request body

Object
number
number required
expireTime
string

Responses

200 200

Request was successful

Body
Array of x-any

list of new EgiftCode

Fetches belongsTo relation eGift
GET /EgiftCodes/{id}/eGift

Path variables

id
string JSON required

EgiftCode id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Body
Find all instances of the model matched by filter from the data source
GET /EgiftCodes

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of EgiftCode
Create a new instance of the model and persist it into the data source
POST /EgiftCodes

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /EgiftCodes

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /EgiftCodes/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /EgiftCodes/{id}

Path variables

id
string JSON required

EgiftCode id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /EgiftCodes/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /EgiftCodes/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /EgiftCodes/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Đánh dấu gift code đã sử dụng
POST /EgiftCodes/markUsed

Request body

Object
vendor
string required
code
string required

Responses

204 204

Request was successful

Find a related item by id for groups
GET /Articles/{id}/groups/{fk}

Path variables

id
string JSON required

Article id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

Update a related item by id for groups
PUT /Articles/{id}/groups/{fk}

Path variables

id
string JSON required

Article id

fk
string JSON required

Foreign key for groups

Request body

Responses

200 200

Request was successful

Delete a related item by id for groups
DELETE /Articles/{id}/groups/{fk}

Path variables

id
string JSON required

Article id

fk
string JSON required

Foreign key for groups

Responses

204 204

Request was successful

Add a related item by id for groups
PUT /Articles/{id}/groups/rel/{fk}

Path variables

id
string JSON required

Article id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

Remove the groups relation to an item by id
DELETE /Articles/{id}/groups/rel/{fk}

Path variables

id
string JSON required

Article id

fk
string JSON required

Foreign key for groups

Responses

204 204

Request was successful

Check the existence of groups relation to an item by id
HEAD /Articles/{id}/groups/rel/{fk}

Path variables

id
string JSON required

Article id

fk
string JSON required

Foreign key for groups

Responses

200 200

Request was successful

Body
boolean
Queries groups of Article
GET /Articles/{id}/groups

Path variables

id
string JSON required

Article id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Array of CustomerGroup
Creates a new instance in groups of this model
POST /Articles/{id}/groups

Path variables

id
string JSON required

Article id

Request body

Responses

200 200

Request was successful

Deletes all groups of this model
DELETE /Articles/{id}/groups

Path variables

id
string JSON required

Article id

Responses

204 204

Request was successful

Counts groups of Article
GET /Articles/{id}/groups/count

Path variables

id
string JSON required

Article id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /Articles

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of Article
Create a new instance of the model and persist it into the data source
POST /Articles

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /Articles

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /Articles/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /Articles/{id}

Path variables

id
string JSON required

Article id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /Articles/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /Articles/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /Articles/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /NotificationHistories

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Create a new instance of the model and persist it into the data source
POST /NotificationHistories

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /NotificationHistories

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /NotificationHistories/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /NotificationHistories/{id}

Path variables

id
string JSON required

NotificationHistory id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /NotificationHistories/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /NotificationHistories/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /NotificationHistories/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
CustomerGroup
GET /CustomerGroups/{id}/notifications/{fk}
PUT /CustomerGroups/{id}/notifications/{fk}
DELETE /CustomerGroups/{id}/notifications/{fk}
PUT /CustomerGroups/{id}/notifications/rel/{fk}
DELETE /CustomerGroups/{id}/notifications/rel/{fk}
HEAD /CustomerGroups/{id}/notifications/rel/{fk}
GET /CustomerGroups/{id}/Partners/{fk}
PUT /CustomerGroups/{id}/Partners/{fk}
DELETE /CustomerGroups/{id}/Partners/{fk}
PUT /CustomerGroups/{id}/Partners/rel/{fk}
DELETE /CustomerGroups/{id}/Partners/rel/{fk}
HEAD /CustomerGroups/{id}/Partners/rel/{fk}
GET /CustomerGroups/{id}/promotions/{fk}
PUT /CustomerGroups/{id}/promotions/{fk}
DELETE /CustomerGroups/{id}/promotions/{fk}
PUT /CustomerGroups/{id}/promotions/rel/{fk}
DELETE /CustomerGroups/{id}/promotions/rel/{fk}
HEAD /CustomerGroups/{id}/promotions/rel/{fk}
GET /CustomerGroups/{id}/userApps/{fk}
PUT /CustomerGroups/{id}/userApps/{fk}
DELETE /CustomerGroups/{id}/userApps/{fk}
PUT /CustomerGroups/{id}/userApps/rel/{fk}
DELETE /CustomerGroups/{id}/userApps/rel/{fk}
HEAD /CustomerGroups/{id}/userApps/rel/{fk}
GET /CustomerGroups/{id}/notifications
POST /CustomerGroups/{id}/notifications
DELETE /CustomerGroups/{id}/notifications
GET /CustomerGroups/{id}/notifications/count
GET /CustomerGroups/{id}/Partners
POST /CustomerGroups/{id}/Partners
DELETE /CustomerGroups/{id}/Partners
GET /CustomerGroups/{id}/Partners/count
GET /CustomerGroups/{id}/promotions
POST /CustomerGroups/{id}/promotions
DELETE /CustomerGroups/{id}/promotions
GET /CustomerGroups/{id}/promotions/count
GET /CustomerGroups/{id}/userApps
POST /CustomerGroups/{id}/userApps
DELETE /CustomerGroups/{id}/userApps
GET /CustomerGroups/{id}/userApps/count
GET /CustomerGroups/area
Find a related item by id for notifications
GET /CustomerGroups/{id}/notifications/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for notifications

Responses

200 200

Request was successful

Update a related item by id for notifications
PUT /CustomerGroups/{id}/notifications/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for notifications

Request body

Responses

200 200

Request was successful

Delete a related item by id for notifications
DELETE /CustomerGroups/{id}/notifications/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for notifications

Responses

204 204

Request was successful

PUT /CustomerGroups/{id}/notifications/rel/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for notifications

Responses

200 200

Request was successful

DELETE /CustomerGroups/{id}/notifications/rel/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for notifications

Responses

204 204

Request was successful

Check the existence of notifications relation to an item by id
HEAD /CustomerGroups/{id}/notifications/rel/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for notifications

Responses

200 200

Request was successful

Body
boolean
Find a related item by id for Partners
GET /CustomerGroups/{id}/Partners/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for Partners

Responses

200 200

Request was successful

Body
Update a related item by id for Partners
PUT /CustomerGroups/{id}/Partners/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for Partners

Request body

Responses

200 200

Request was successful

Body
Delete a related item by id for Partners
DELETE /CustomerGroups/{id}/Partners/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for Partners

Responses

204 204

Request was successful

PUT /CustomerGroups/{id}/Partners/rel/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for Partners

Responses

200 200

Request was successful

DELETE /CustomerGroups/{id}/Partners/rel/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for Partners

Responses

204 204

Request was successful

Check the existence of Partners relation to an item by id
HEAD /CustomerGroups/{id}/Partners/rel/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for Partners

Responses

200 200

Request was successful

Body
boolean
Find a related item by id for promotions
GET /CustomerGroups/{id}/promotions/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for promotions

Responses

200 200

Request was successful

Body
Update a related item by id for promotions
PUT /CustomerGroups/{id}/promotions/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for promotions

Request body

Responses

200 200

Request was successful

Body
Delete a related item by id for promotions
DELETE /CustomerGroups/{id}/promotions/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for promotions

Responses

204 204

Request was successful

PUT /CustomerGroups/{id}/promotions/rel/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for promotions

Responses

200 200

Request was successful

DELETE /CustomerGroups/{id}/promotions/rel/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for promotions

Responses

204 204

Request was successful

Check the existence of promotions relation to an item by id
HEAD /CustomerGroups/{id}/promotions/rel/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for promotions

Responses

200 200

Request was successful

Body
boolean
Find a related item by id for userApps
GET /CustomerGroups/{id}/userApps/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for userApps

Responses

200 200

Request was successful

Body
Update a related item by id for userApps
PUT /CustomerGroups/{id}/userApps/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for userApps

Request body

Responses

200 200

Request was successful

Body
Delete a related item by id for userApps
DELETE /CustomerGroups/{id}/userApps/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for userApps

Responses

204 204

Request was successful

PUT /CustomerGroups/{id}/userApps/rel/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for userApps

Responses

200 200

Request was successful

DELETE /CustomerGroups/{id}/userApps/rel/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for userApps

Responses

204 204

Request was successful

Check the existence of userApps relation to an item by id
HEAD /CustomerGroups/{id}/userApps/rel/{fk}

Path variables

id
string JSON required

CustomerGroup id

fk
string JSON required

Foreign key for userApps

Responses

200 200

Request was successful

Body
boolean
Queries notifications of CustomerGroup
GET /CustomerGroups/{id}/notifications

Path variables

id
string JSON required

CustomerGroup id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Array of Notification
Creates a new instance in notifications of this model
POST /CustomerGroups/{id}/notifications

Path variables

id
string JSON required

CustomerGroup id

Request body

Responses

200 200

Request was successful

Deletes all notifications of this model
DELETE /CustomerGroups/{id}/notifications

Path variables

id
string JSON required

CustomerGroup id

Responses

204 204

Request was successful

Counts notifications of CustomerGroup
GET /CustomerGroups/{id}/notifications/count

Path variables

id
string JSON required

CustomerGroup id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Queries Partners of CustomerGroup
GET /CustomerGroups/{id}/Partners

Path variables

id
string JSON required

CustomerGroup id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Array of Partner
Creates a new instance in Partners of this model
POST /CustomerGroups/{id}/Partners

Path variables

id
string JSON required

CustomerGroup id

Request body

Responses

200 200

Request was successful

Body
Deletes all Partners of this model
DELETE /CustomerGroups/{id}/Partners

Path variables

id
string JSON required

CustomerGroup id

Responses

204 204

Request was successful

Counts Partners of CustomerGroup
GET /CustomerGroups/{id}/Partners/count

Path variables

id
string JSON required

CustomerGroup id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Queries promotions of CustomerGroup
GET /CustomerGroups/{id}/promotions

Path variables

id
string JSON required

CustomerGroup id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Array of Promotion
Creates a new instance in promotions of this model
POST /CustomerGroups/{id}/promotions

Path variables

id
string JSON required

CustomerGroup id

Request body

Responses

200 200

Request was successful

Body
Deletes all promotions of this model
DELETE /CustomerGroups/{id}/promotions

Path variables

id
string JSON required

CustomerGroup id

Responses

204 204

Request was successful

Counts promotions of CustomerGroup
GET /CustomerGroups/{id}/promotions/count

Path variables

id
string JSON required

CustomerGroup id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Queries userApps of CustomerGroup
GET /CustomerGroups/{id}/userApps

Path variables

id
string JSON required

CustomerGroup id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Array of UserApp
Creates a new instance in userApps of this model
POST /CustomerGroups/{id}/userApps

Path variables

id
string JSON required

CustomerGroup id

Request body

Responses

200 200

Request was successful

Body
Deletes all userApps of this model
DELETE /CustomerGroups/{id}/userApps

Path variables

id
string JSON required

CustomerGroup id

Responses

204 204

Request was successful

Counts userApps of CustomerGroup
GET /CustomerGroups/{id}/userApps/count

Path variables

id
string JSON required

CustomerGroup id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /CustomerGroups

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of CustomerGroup
Create a new instance of the model and persist it into the data source
POST /CustomerGroups

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /CustomerGroups

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /CustomerGroups/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /CustomerGroups/{id}

Path variables

id
string JSON required

CustomerGroup id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /CustomerGroups/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /CustomerGroups/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /CustomerGroups/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Get các khu vực của
GET /CustomerGroups/area

Responses

200 200

Request was successful

Body
Array of x-any

tree of area

Container
GET /Containers
POST /Containers
GET /Containers/{container}
GET /Containers/{container}/files
GET /Containers/{container}/files/{file}
POST /Containers/{container}/upload
GET /Containers/{container}/download/{file}
GET /Containers/get-token
ContainergetContainers
GET /Containers

Responses

200 200

Request was successful

Body
Array of x-any
ContainercreateContainer
POST /Containers

Request body

Object

Responses

200 200

Request was successful

Body
Object
ContainergetContainer
GET /Containers/{container}

Path variables

container
string required

Responses

200 200

Request was successful

Body
Object
ContainergetFiles
GET /Containers/{container}/files

Path variables

container
string required

Responses

200 200

Request was successful

Body
Array of x-any
ContainergetFile
GET /Containers/{container}/files/{file}

Path variables

container
string required
file
string required

Responses

200 200

Request was successful

Body
Object
Containerupload
POST /Containers/{container}/upload

Path variables

container
string required

Responses

200 200

Request was successful

Body
Object
result
Object
Containerdownload
GET /Containers/{container}/download/{file}

Path variables

container
string required
file
string required

Responses

204 204

Request was successful

ContainergetToken
GET /Containers/get-token

Responses

200 200

Request was successful

Body
string binary
ContainerImage
GET /ContainerImages
POST /ContainerImages
GET /ContainerImages/{container}
DELETE /ContainerImages/{container}
GET /ContainerImages/{container}/files
GET /ContainerImages/{container}/files/{file}
DELETE /ContainerImages/{container}/files/{file}
POST /ContainerImages/{container}/upload
GET /ContainerImages/{container}/download/{file}
ContainerImagegetContainers
GET /ContainerImages

Responses

200 200

Request was successful

Body
Array of x-any
ContainerImagecreateContainer
POST /ContainerImages

Request body

Object

Responses

200 200

Request was successful

Body
Object
ContainerImagegetContainer
GET /ContainerImages/{container}

Path variables

container
string required

Responses

200 200

Request was successful

Body
Object
ContainerImagedestroyContainer
DELETE /ContainerImages/{container}

Path variables

container
string required

Responses

200 200

Request was successful

Body
Object
undefined
Object
ContainerImagegetFiles
GET /ContainerImages/{container}/files

Path variables

container
string required

Responses

200 200

Request was successful

Body
Array of x-any
ContainerImagegetFile
GET /ContainerImages/{container}/files/{file}

Path variables

container
string required
file
string required

Responses

200 200

Request was successful

Body
Object
ContainerImageremoveFile
DELETE /ContainerImages/{container}/files/{file}

Path variables

container
string required
file
string required

Responses

200 200

Request was successful

Body
Object
undefined
Object
ContainerImageupload
POST /ContainerImages/{container}/upload

Path variables

container
string required

Responses

200 200

Request was successful

Body
Object
result
Object
ContainerImagedownload
GET /ContainerImages/{container}/download/{file}

Path variables

container
string required
file
string required

Responses

204 204

Request was successful

Fetches belongsTo relation user
GET /Chats/{id}/user

Path variables

id
string JSON required

Chat id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /Chats

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of Chat
Create a new instance of the model and persist it into the data source
POST /Chats

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /Chats

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /Chats/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /Chats/{id}

Path variables

id
string JSON required

Chat id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /Chats/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /Chats/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /Chats/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
kiểm tra xem có new message không
GET /Chats/{id}/gotNews

Path variables

id
string JSON required

Chat id

Responses

200 200

Request was successful

Body
boolean

value indicated had new chat msg or not

Đánh dấu client đã seen chat của UserAdmin
GET /Chats/markSeen

Responses

204 204

Request was successful

GET /UserSocialLinks/{id}/user

Path variables

id
string JSON required

UserSocialLink id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Body
GET /UserSocialLinks

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of UserSocialLink
POST /UserSocialLinks

Request body

Model instance data

Responses

200 200

Request was successful

PATCH /UserSocialLinks

Request body

Model instance data

Responses

200 200

Request was successful

GET /UserSocialLinks/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

PATCH /UserSocialLinks/{id}

Path variables

id
string JSON required

UserSocialLink id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

DELETE /UserSocialLinks/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
GET /UserSocialLinks/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

GET /UserSocialLinks/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
GET /UserSocialLinks/googleCallBack

Request parameters

code
string optional
state
string optional

Responses

200 200

Request was successful

Body
string binary
GET /UserSocialLinks/youtubeCallBack

Request parameters

code
string optional
state
string optional

Responses

200 200

Request was successful

Body
string binary
GET /UserSocialLinks/facebookCallBack

Request parameters

code
string optional
state
string optional

Responses

200 200

Request was successful

Body
string binary
GET /UserSocialLinks/zaloCallBack

Request parameters

code
string optional
uid
string optional
state
string optional

Responses

200 200

Request was successful

Body
string binary
GET /UserSocialLinks/status

Responses

200 200

Request was successful

Body
Array of x-any

list of user’s social link

GET /UserSocialLinks/unlink

Request parameters

platform
string optional

Responses

204 204

Request was successful

Find all instances of the model matched by filter from the data source
GET /SurveyResults

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of SurveyResult
Create a new instance of the model and persist it into the data source
POST /SurveyResults

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /SurveyResults

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /SurveyResults/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /SurveyResults/{id}

Path variables

id
string JSON required

SurveyResult id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /SurveyResults/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /SurveyResults/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /SurveyResults/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /Surveys

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of Survey
Create a new instance of the model and persist it into the data source
POST /Surveys

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /Surveys

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /Surveys/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /Surveys/{id}

Path variables

id
string JSON required

Survey id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /Surveys/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /Surveys/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /Surveys/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
gửi survey theo id
POST /Surveys/{id}/submit

Path variables

id
string JSON required

Survey id

Request body

Responses

200 200

Request was successful

Body
Find all instances of the model matched by filter from the data source
GET /LoyaltyActions

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of LoyaltyAction
Create a new instance of the model and persist it into the data source
POST /LoyaltyActions

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /LoyaltyActions

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /LoyaltyActions/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /LoyaltyActions/{id}

Path variables

id
string JSON required

LoyaltyAction id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /LoyaltyActions/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /LoyaltyActions/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /LoyaltyActions/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Fetches belongsTo relation user
GET /LoyaltyActionHistories/{id}/user

Path variables

id
string JSON required

LoyaltyActionHistory id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Body
Find all instances of the model matched by filter from the data source
GET /LoyaltyActionHistories

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Create a new instance of the model and persist it into the data source
POST /LoyaltyActionHistories

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /LoyaltyActionHistories

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /LoyaltyActionHistories/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /LoyaltyActionHistories/{id}

Path variables

id
string JSON required

LoyaltyActionHistory id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /LoyaltyActionHistories/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /LoyaltyActionHistories/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /LoyaltyActionHistories/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /PartnerPromotions

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Create a new instance of the model and persist it into the data source
POST /PartnerPromotions

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /PartnerPromotions

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /PartnerPromotions/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /PartnerPromotions/{id}

Path variables

id
string JSON required

PartnerPromotion id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /PartnerPromotions/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /PartnerPromotions/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /PartnerPromotions/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /Minigames

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of Minigame
Create a new instance of the model and persist it into the data source
POST /Minigames

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /Minigames

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /Minigames/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /Minigames/{id}

Path variables

id
string JSON required

Minigame id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /Minigames/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /Minigames/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /Minigames/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
import users to a mini game
POST /Minigames/importPlayers

Request body

Array of x-any

Responses

204 204

Request was successful

import winners to a mini game
POST /Minigames/importWinners

Request body

Array of x-any

Responses

204 204

Request was successful

lấy danh sách players
GET /Minigames/exportPlayers

Responses

200 200

Request was successful

Body
string binary
lấy danh sách players
GET /Minigames/exportWinners

Responses

200 200

Request was successful

Body
string binary
lấy trạng thái minigame
GET /Minigames/status

Responses

200 200

Request was successful

Body
Object
playableUsers
number double

số lượng user tham gia

playedUsers
number double

số lượng user đã đổi mã

Fetches belongsTo relation user
GET /MinigameUsers/{id}/user

Path variables

id
string JSON required

MinigameUser id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Body
Find all instances of the model matched by filter from the data source
GET /MinigameUsers

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of MinigameUser
Create a new instance of the model and persist it into the data source
POST /MinigameUsers

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /MinigameUsers

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /MinigameUsers/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /MinigameUsers/{id}

Path variables

id
string JSON required

MinigameUser id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /MinigameUsers/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /MinigameUsers/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /MinigameUsers/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Thay đổi mã dự thưởng
POST /MinigameUsers/changeCode

Request body

Object
newCode
string required

Responses

200 200

Request was successful

Lấy danh sách user trúng thưởng
GET /MinigameUsers/winners

Responses

200 200

Request was successful

Body
Array of x-any

list MinigameUser trúng thưởng

Lấy trạng thái game của user
GET /MinigameUsers/status

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /Quests

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of Quest
Create a new instance of the model and persist it into the data source
POST /Quests

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /Quests

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /Quests/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /Quests/{id}

Path variables

id
string JSON required

Quest id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /Quests/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /Quests/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /Quests/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /QuestHistories

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of QuestHistory
Create a new instance of the model and persist it into the data source
POST /QuestHistories

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /QuestHistories

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /QuestHistories/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /QuestHistories/{id}

Path variables

id
string JSON required

QuestHistory id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /QuestHistories/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /QuestHistories/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /QuestHistories/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /ReminderHistories

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of ReminderHistory
Create a new instance of the model and persist it into the data source
POST /ReminderHistories

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /ReminderHistories

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /ReminderHistories/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /ReminderHistories/{id}

Path variables

id
string JSON required

ReminderHistory id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /ReminderHistories/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /ReminderHistories/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /ReminderHistories/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Fetches belongsTo relation user
GET /Messages/{id}/user

Path variables

id
string JSON required

Message id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Fetches belongsTo relation thread
GET /Messages/{id}/thread

Path variables

id
string JSON required

Message id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /Messages

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of Message
Create a new instance of the model and persist it into the data source
POST /Messages

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /Messages

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /Messages/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /Messages/{id}

Path variables

id
string JSON required

Message id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /Messages/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /Messages/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /Messages/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Fetches belongsTo relation owner
GET /MessageThreads/{id}/owner

Path variables

id
string JSON required

MessageThread id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Body
Find all instances of the model matched by filter from the data source
GET /MessageThreads

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of MessageThread
Create a new instance of the model and persist it into the data source
POST /MessageThreads

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /MessageThreads

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /MessageThreads/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /MessageThreads/{id}

Path variables

id
string JSON required

MessageThread id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /MessageThreads/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /MessageThreads/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /MessageThreads/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Create new message thread
POST /MessageThreads/new

Request body

Object
phoneNumber
string
email
string
name
string required
body
string required

Responses

200 200

Request was successful

create message in a thread
POST /MessageThreads/{id}/reply

Path variables

id
string JSON required

MessageThread id

Request body

Object
body
string

Responses

200 200

Request was successful

Body
mark thread seen by UserApp
POST /MessageThreads/{id}/seen

Path variables

id
string JSON required

MessageThread id

Responses

200 200

Request was successful

kiểm tra xem có new email không
GET /MessageThreads/{id}/gotNews

Path variables

id
string JSON required

MessageThread id

Responses

200 200

Request was successful

Body
boolean

value indicated had new email or not

Find all instances of the model matched by filter from the data source
GET /OnlineInsurances

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of OnlineInsurance
Create a new instance of the model and persist it into the data source
POST /OnlineInsurances

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /OnlineInsurances

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /OnlineInsurances/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /OnlineInsurances/{id}

Path variables

id
string JSON required

OnlineInsurance id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /OnlineInsurances/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /OnlineInsurances/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /OnlineInsurances/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /Edocuments

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of Edocument
Create a new instance of the model and persist it into the data source
POST /Edocuments

Request body

Model instance data

Responses

200 200

Request was successful

Body
Patch an existing model instance or insert a new one into the data source
PATCH /Edocuments

Request body

Model instance data

Responses

200 200

Request was successful

Body
Find a model instance by id from the data source
GET /Edocuments/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Body
Patch attributes for a model instance and persist it into the data source
PATCH /Edocuments/{id}

Path variables

id
string JSON required

Edocument id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Body
Delete a model instance by id from the data source
DELETE /Edocuments/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /Edocuments/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Count instances of the model matched by where from the data source
GET /Edocuments/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /AllCategories

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of AllCategory
Create a new instance of the model and persist it into the data source
POST /AllCategories

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /AllCategories

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /AllCategories/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /AllCategories/{id}

Path variables

id
string JSON required

AllCategory id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /AllCategories/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /AllCategories/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /AllCategories/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Fetches belongsTo relation voucher
GET /QuestEngagements/{id}/voucher

Path variables

id
string JSON required

QuestEngagement id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Body
Find all instances of the model matched by filter from the data source
GET /QuestEngagements

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of QuestEngagement
Create a new instance of the model and persist it into the data source
POST /QuestEngagements

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /QuestEngagements

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /QuestEngagements/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /QuestEngagements/{id}

Path variables

id
string JSON required

QuestEngagement id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /QuestEngagements/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /QuestEngagements/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /QuestEngagements/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /QuestEngagementHistories

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Create a new instance of the model and persist it into the data source
POST /QuestEngagementHistories

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /QuestEngagementHistories

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /QuestEngagementHistories/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /QuestEngagementHistories/{id}

Path variables

id
string JSON required

QuestEngagementHistory id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /QuestEngagementHistories/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /QuestEngagementHistories/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /QuestEngagementHistories/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find all instances of the model matched by filter from the data source
GET /SocialPlatforms

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of SocialPlatform
Create a new instance of the model and persist it into the data source
POST /SocialPlatforms

Request body

Model instance data

Responses

200 200

Request was successful

Patch an existing model instance or insert a new one into the data source
PATCH /SocialPlatforms

Request body

Model instance data

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /SocialPlatforms/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Patch attributes for a model instance and persist it into the data source
PATCH /SocialPlatforms/{id}

Path variables

id
string JSON required

SocialPlatform id

Request body

An object of model property name/value pairs

Responses

200 200

Request was successful

Delete a model instance by id from the data source
DELETE /SocialPlatforms/{id}

Path variables

id
string JSON required

Model id

Responses

200 200

Request was successful

Body
Object
Find first instance of the model matched by filter from the data source
GET /SocialPlatforms/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /SocialPlatforms/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find a model instance by id from the data source
GET /dwh_parties/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /dwh_parties

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of dwh_parties
Find first instance of the model matched by filter from the data source
GET /dwh_parties/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /dwh_parties/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
dwh_contracts
GET /dwh_contracts/{id}/subscriber
GET /dwh_contracts/{id}/mainCoveredParty
GET /dwh_contracts/{id}/bills/{fk}
GET /dwh_contracts/{id}/product
GET /dwh_contracts/{id}/coverages/{fk}
GET /dwh_contracts/{id}/agent
GET /dwh_contracts/{id}/bills
GET /dwh_contracts/{id}/bills/count
GET /dwh_contracts/{id}/coverages
GET /dwh_contracts/{id}/coverages/count
Fetches belongsTo relation subscriber
GET /dwh_contracts/{id}/subscriber

Path variables

id
string JSON required

dwh_contracts id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Fetches belongsTo relation mainCoveredParty
GET /dwh_contracts/{id}/mainCoveredParty

Path variables

id
string JSON required

dwh_contracts id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Find a related item by id for bills
GET /dwh_contracts/{id}/bills/{fk}

Path variables

id
string JSON required

dwh_contracts id

fk
string JSON required

Foreign key for bills

Responses

200 200

Request was successful

Fetches belongsTo relation product
GET /dwh_contracts/{id}/product

Path variables

id
string JSON required

dwh_contracts id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Find a related item by id for coverages
GET /dwh_contracts/{id}/coverages/{fk}

Path variables

id
string JSON required

dwh_contracts id

fk
string JSON required

Foreign key for coverages

Responses

200 200

Request was successful

Fetches belongsTo relation agent
GET /dwh_contracts/{id}/agent

Path variables

id
string JSON required

dwh_contracts id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Queries bills of dwh_contracts
GET /dwh_contracts/{id}/bills

Path variables

id
string JSON required

dwh_contracts id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Array of dwh_billlines
Counts bills of dwh_contracts
GET /dwh_contracts/{id}/bills/count

Path variables

id
string JSON required

dwh_contracts id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Queries coverages of dwh_contracts
GET /dwh_contracts/{id}/coverages

Path variables

id
string JSON required

dwh_contracts id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Counts coverages of dwh_contracts
GET /dwh_contracts/{id}/coverages/count

Path variables

id
string JSON required

dwh_contracts id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find a model instance by id from the data source
GET /dwh_contracts/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /dwh_contracts

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of dwh_contracts
Find first instance of the model matched by filter from the data source
GET /dwh_contracts/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /dwh_contracts/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Fetches belongsTo relation productCoverage
GET /dwh_billlines/{id}/productCoverage

Path variables

id
string JSON required

dwh_billlines id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /dwh_billlines/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /dwh_billlines

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of dwh_billlines
Find first instance of the model matched by filter from the data source
GET /dwh_billlines/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /dwh_billlines/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find a model instance by id from the data source
GET /dwh_products/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /dwh_products

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of dwh_products
Find first instance of the model matched by filter from the data source
GET /dwh_products/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /dwh_products/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
dwh_contractcoverages
GET /dwh_contractcoverages/{id}/coveredParty
GET /dwh_contractcoverages/{id}/bills/{fk}
GET /dwh_contractcoverages/{id}/bills
GET /dwh_contractcoverages/{id}/bills/count
GET /dwh_contractcoverages/{id}
Fetches belongsTo relation coveredParty
GET /dwh_contractcoverages/{id}/coveredParty

Path variables

id
string JSON required

dwh_contractcoverages id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Find a related item by id for bills
GET /dwh_contractcoverages/{id}/bills/{fk}

Path variables

id
string JSON required

dwh_contractcoverages id

fk
string JSON required

Foreign key for bills

Responses

200 200

Request was successful

Queries bills of dwh_contractcoverages
GET /dwh_contractcoverages/{id}/bills

Path variables

id
string JSON required

dwh_contractcoverages id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Array of dwh_billlines
Counts bills of dwh_contractcoverages
GET /dwh_contractcoverages/{id}/bills/count

Path variables

id
string JSON required

dwh_contractcoverages id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find a model instance by id from the data source
GET /dwh_contractcoverages/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /dwh_contractcoverages

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Find first instance of the model matched by filter from the data source
GET /dwh_contractcoverages/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /dwh_contractcoverages/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find a model instance by id from the data source
GET /dwh_ncbproposals/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /dwh_ncbproposals

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of dwh_ncbproposal
Find first instance of the model matched by filter from the data source
GET /dwh_ncbproposals/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /dwh_ncbproposals/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find a model instance by id from the data source
GET /dwh_organizationunits/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /dwh_organizationunits

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Find first instance of the model matched by filter from the data source
GET /dwh_organizationunits/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /dwh_organizationunits/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find a model instance by id from the data source
GET /app_parties/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /app_parties

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of app_parties
Find first instance of the model matched by filter from the data source
GET /app_parties/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /app_parties/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
app_contracts
GET /app_contracts/{id}/subscriber
GET /app_contracts/{id}/mainCoveredParty
GET /app_contracts/{id}/bills/{fk}
GET /app_contracts/{id}/product
GET /app_contracts/{id}/coverages/{fk}
GET /app_contracts/{id}/agent
GET /app_contracts/{id}/bills
GET /app_contracts/{id}/bills/count
GET /app_contracts/{id}/coverages
GET /app_contracts/{id}/coverages/count
Fetches belongsTo relation subscriber
GET /app_contracts/{id}/subscriber

Path variables

id
string JSON required

app_contracts id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Fetches belongsTo relation mainCoveredParty
GET /app_contracts/{id}/mainCoveredParty

Path variables

id
string JSON required

app_contracts id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Find a related item by id for bills
GET /app_contracts/{id}/bills/{fk}

Path variables

id
string JSON required

app_contracts id

fk
string JSON required

Foreign key for bills

Responses

200 200

Request was successful

Fetches belongsTo relation product
GET /app_contracts/{id}/product

Path variables

id
string JSON required

app_contracts id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Find a related item by id for coverages
GET /app_contracts/{id}/coverages/{fk}

Path variables

id
string JSON required

app_contracts id

fk
string JSON required

Foreign key for coverages

Responses

200 200

Request was successful

Fetches belongsTo relation agent
GET /app_contracts/{id}/agent

Path variables

id
string JSON required

app_contracts id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Queries bills of app_contracts
GET /app_contracts/{id}/bills

Path variables

id
string JSON required

app_contracts id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Array of app_billlines
Counts bills of app_contracts
GET /app_contracts/{id}/bills/count

Path variables

id
string JSON required

app_contracts id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Queries coverages of app_contracts
GET /app_contracts/{id}/coverages

Path variables

id
string JSON required

app_contracts id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Counts coverages of app_contracts
GET /app_contracts/{id}/coverages/count

Path variables

id
string JSON required

app_contracts id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find a model instance by id from the data source
GET /app_contracts/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /app_contracts

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of app_contracts
Find first instance of the model matched by filter from the data source
GET /app_contracts/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /app_contracts/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Fetches belongsTo relation productCoverage
GET /app_billlines/{id}/productCoverage

Path variables

id
string JSON required

app_billlines id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Find a model instance by id from the data source
GET /app_billlines/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /app_billlines

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of app_billlines
Find first instance of the model matched by filter from the data source
GET /app_billlines/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /app_billlines/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find a model instance by id from the data source
GET /app_products/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /app_products

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of app_products
Find first instance of the model matched by filter from the data source
GET /app_products/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /app_products/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
app_contractcoverages
GET /app_contractcoverages/{id}/coveredParty
GET /app_contractcoverages/{id}/bills/{fk}
GET /app_contractcoverages/{id}/bills
GET /app_contractcoverages/{id}/bills/count
GET /app_contractcoverages/{id}
Fetches belongsTo relation coveredParty
GET /app_contractcoverages/{id}/coveredParty

Path variables

id
string JSON required

app_contractcoverages id

Request parameters

refresh
boolean optional

Responses

200 200

Request was successful

Find a related item by id for bills
GET /app_contractcoverages/{id}/bills/{fk}

Path variables

id
string JSON required

app_contractcoverages id

fk
string JSON required

Foreign key for bills

Responses

200 200

Request was successful

Queries bills of app_contractcoverages
GET /app_contractcoverages/{id}/bills

Path variables

id
string JSON required

app_contractcoverages id

Request parameters

filter
string JSON optional

Responses

200 200

Request was successful

Body
Array of app_billlines
Counts bills of app_contractcoverages
GET /app_contractcoverages/{id}/bills/count

Path variables

id
string JSON required

app_contractcoverages id

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find a model instance by id from the data source
GET /app_contractcoverages/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /app_contractcoverages

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Find first instance of the model matched by filter from the data source
GET /app_contractcoverages/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /app_contractcoverages/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find a model instance by id from the data source
GET /app_ncbproposals/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /app_ncbproposals

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Array of app_ncbproposal
Find first instance of the model matched by filter from the data source
GET /app_ncbproposals/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /app_ncbproposals/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Find a model instance by id from the data source
GET /app_organizationunits/{id}

Path variables

id
string JSON required

Model id

Request parameters

filter
string JSON optional

Filter defining fields and include - must be a JSON-encoded string ({“something”:“value”})

Responses

200 200

Request was successful

Find all instances of the model matched by filter from the data source
GET /app_organizationunits

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Body
Find first instance of the model matched by filter from the data source
GET /app_organizationunits/findOne

Request parameters

filter
string JSON optional

Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"where":{"something":"value"}}). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.

Responses

200 200

Request was successful

Count instances of the model matched by where from the data source
GET /app_organizationunits/count

Request parameters

where
string JSON optional

Criteria to match model instances

Responses

200 200

Request was successful

Body
Object
count
number double
Type Definitions
$new_News
Object
title
string required
thumbnail
string required
description
string
createdDate
string date-time required
News
Object
title
string required
thumbnail
string required
description
string
createdDate
string date-time required
id
number double
x-any
Object
$new_NewsCategory
Object
name
string required
code
string required
languageType
string required
description
string
createdDate
string date-time required
NewsCategory
Object
name
string required
code
string required
languageType
string required
description
string
createdDate
string date-time required
id
number double
$new_AppSetting
Object
key
string required
value
AppSetting
Object
key
string required
value
id
number double
AccessTokenMultiple
Object
principalType
string
id
string required
ttl
number double

time to live in seconds (2 weeks by default)

scopes
Array of string

Array of scopes granted to this access token.

created
string date-time
userId
number double
Tier
Object
title
string required
cardUrl
string required
agent
string
interestList
Array of string
createdDate
string date-time required
minPoint
number double
minMoney
number double
status
string
id
number double
CustomerGroup
Object
name
string required
description
string
Max length: 65,536
filters
Array
Object
status
string
createTime
string date-time
id
number double
PivotCustomerGroupUserApp
Object
customerGroupId
number double required
userAppId
number double required
id
number double
$new_CustomerGroup
Object
name
string required
description
string
Max length: 65,536
filters
Array
Object
status
string
createTime
string date-time
$new_UserApp
Object
name
string
email
string
tierId
number double
points
number double
agentId
string
gender
number double
birthday
string
updateTime
string date-time
createdDate
string date-time
address
string
phoneNumber
string
hasUpdateProfile
boolean
clientId
string
idNumber
string
contractName
string
passwordRaw
string
avatar
string
status
string
organizationUnitsId
string
realm
string
username
string
emailVerified
boolean
UserApp
Object
name
string
email
string
tierId
number double
points
number double
agentId
string
gender
number double
birthday
string
updateTime
string date-time
createdDate
string date-time
address
string
phoneNumber
string
hasUpdateProfile
boolean
clientId
string
idNumber
string
contractName
string
passwordRaw
string
avatar
string
status
string
organizationUnitsId
string
realm
string
username
string
emailVerified
boolean
id
number double
EgiftCode
Object
voucherId
number double required
vendor
string required
voucherRefId
string
voucherCode
string required
voucherLink
string
voucherLinkCode
string
voucherImageLink
string
expireTime
string date-time
usedTime
string date-time
status
string required
customerId
number double required
sendTime
string date-time
createTime
string date-time
staffId
number double required
reminderSendTime
string date-time
id
number double
LoyaltyActionHistory
Object
userId
number double
itemId
number double
actionName
string required
createTime
string date-time required
id
number double
$new_UserDeviceToken
Object
userId
number double
deviceToken
string
deviceInfo
createdDate
string date-time
UserDeviceToken
Object
userId
number double
deviceToken
string
deviceInfo
createdDate
string date-time
id
number double
Department
Object
name
string required
description
string
Max length: 65,536
permissions
Object
id
number double
$new_UserAdmin
Object
email
string required
name
string
gender
number double
departmentId
number double
createdDate
string date-time required
isActive
boolean
status
string
realm
string
username
string
emailVerified
boolean
UserAdmin
Object
email
string required
name
string
gender
number double
departmentId
number double
createdDate
string date-time required
isActive
boolean
status
string
realm
string
username
string
emailVerified
boolean
id
number double
$new_Tier
Object
title
string required
cardUrl
string required
agent
string
interestList
Array of string
createdDate
string date-time required
minPoint
number double
minMoney
number double
status
string
$new_PointHistory
Object
customerId
number double required
points
number double required
actionType
string required
actionData
Object
notes
string
createTime
string date-time required
PointHistory
Object
customerId
number double required
points
number double required
actionType
string required
actionData
Object
notes
string
createTime
string date-time required
id
number double
$new_PointsReward
Object
title
string required
action
string required
points
number double required
createdDate
string date-time required
PointsReward
Object
title
string required
action
string required
points
number double required
createdDate
string date-time required
id
number double
$new_PromotionCategory
Object
name
string required
promotionCode
string required
createdDate
string date-time required
PromotionCategory
Object
name
string required
promotionCode
string required
createdDate
string date-time required
id
number double
PivotCustomerGroupPromotion
Object
customerGroupId
number double required
promotionId
number double required
id
number double
$new_Promotion
Object
title
string
category
string
voucherCode
string
voucherUrl
string
expiryDate
string date-time
count
number double
points
number double
description
string
hasGift
number double
voucherId
number double
sendTime
string date-time
content
string
createdDate
string date-time
thumbnail
string
status
string
lang
string
categoryId
number double
isNotification
boolean
customerGroupId
number double
isDemo
boolean
voucherTitle
string
Promotion
Object
title
string
category
string
voucherCode
string
voucherUrl
string
expiryDate
string date-time
count
number double
points
number double
description
string
hasGift
number double
voucherId
number double
sendTime
string date-time
content
string
createdDate
string date-time
thumbnail
string
status
string
lang
string
categoryId
number double
isNotification
boolean
customerGroupId
number double
isDemo
boolean
voucherTitle
string
id
number double
PivotCustomerGroupPartner
Object
customerGroupId
number double required
partnerId
number double required
id
number double
$new_Partner
Object
language
string
title
string
title_en
string
type
string
category
string
description
string
Max length: 65,536
poster
string
thumbnail
string
point
number double
sendTime
string date-time
voucherCode
string
voucherUrl
string
isGift
boolean
createTime
string date-time
partnerId
number double
isNotification
boolean
Partner
Object
language
string
title
string
title_en
string
type
string
category
string
description
string
Max length: 65,536
poster
string
thumbnail
string
point
number double
sendTime
string date-time
voucherCode
string
voucherUrl
string
isGift
boolean
createTime
string date-time
partnerId
number double
isNotification
boolean
id
number double
$new_EmailHistory
Object
title
string required
customerId
number double required
content
string required
sendTime
string date-time required
EmailHistory
Object
title
string required
customerId
number double required
content
string required
sendTime
string date-time required
id
number double
$new_HotlineClickHistory
Object
customerId
number double required
screenName
string required
time
string date-time required
HotlineClickHistory
Object
customerId
number double required
screenName
string required
time
string date-time required
id
number double
$new_PromotionHistory
Object
promotionId
number double required
points
number double required
customerId
number double required
voucherCode
string required
createdDate
string date-time required
PromotionHistory
Object
promotionId
number double required
points
number double required
customerId
number double required
voucherCode
string required
createdDate
string date-time required
id
number double
$new_Affiliate
Object
senderId
number double required
emailReceiver
string required
phoneReceiver
string required
shareLink
string required
timeSender
string date-time required
status
string required
Affiliate
Object
senderId
number double required
emailReceiver
string required
phoneReceiver
string required
shareLink
string required
timeSender
string date-time required
status
string required
id
number double
PivotCustomerGroupReminder
Object
customerGroupId
number double required
reminderId
number double required
id
number double
$new_Reminder
Object
title
string
content
string
expireTime
string date-time
category
string
points
number double
isEgift
boolean
customerId
number double
href
string
itemId
number double
status
string
hideReminder
string
Reminder
Object
title
string
content
string
expireTime
string date-time
category
string
points
number double
isEgift
boolean
customerId
number double
href
string
itemId
number double
status
string
hideReminder
string
id
number double
$new_Email
Object
name
string required
userId
number double
departmentId
number double required
email
string required
createdDate
string date-time required
question
string required
status
string required
Email
Object
name
string required
userId
number double
departmentId
number double required
email
string required
createdDate
string date-time required
question
string required
status
string required
id
number double
$new_NotificationCategory
Object
title
string required
name
string required
createdDate
string date-time required
NotificationCategory
Object
title
string required
name
string required
createdDate
string date-time required
id
number double
$new_Department
Object
name
string required
description
string
Max length: 65,536
permissions
Object
PivotCustomerGroupNotification
Object
customerGroupId
number double required
notificationId
number double required
id
number double
$new_Notification
Object
title
string required
description
string
categoryId
number double
itemId
number double
customerGroupId
number double
sendTime
string date-time
hasGift
number double
points
number double
voucherId
number double
content
string
createdDate
string date-time
thumbnail
string
status
string
lang
string
isNotification
boolean
isDemo
boolean
voucherTitle
string
Notification
Object
title
string required
description
string
categoryId
number double
itemId
number double
customerGroupId
number double
sendTime
string date-time
hasGift
number double
points
number double
voucherId
number double
content
string
createdDate
string date-time
thumbnail
string
status
string
lang
string
isNotification
boolean
isDemo
boolean
voucherTitle
string
id
number double
$new_Egift
Object
title
string required
money
number double required
total
number double required
numOfAvailable
number double
vendor
string required
thumbnail
string required
points
number double required
status
string required
time
string date-time required
vendorProductId
string
vendorPriceId
string
vendorBrandId
string
vendorBrandName
string
Egift
Object
title
string required
money
number double required
total
number double required
numOfAvailable
number double
vendor
string required
thumbnail
string required
points
number double required
status
string required
time
string date-time required
vendorProductId
string
vendorPriceId
string
vendorBrandId
string
vendorBrandName
string
id
number double
$new_EgiftCode
Object
voucherId
number double required
vendor
string required
voucherRefId
string
voucherCode
string required
voucherLink
string
voucherLinkCode
string
voucherImageLink
string
expireTime
string date-time
usedTime
string date-time
status
string required
customerId
number double required
sendTime
string date-time
createTime
string date-time
staffId
number double required
reminderSendTime
string date-time
PivotCustomerGroupArticle
Object
customerGroupId
number double required
articleId
number double required
id
number double
$new_Article
Object
title1
string
title2
string
thumbnail
string
banner
string
description
string
Max length: 65,536
createdDate
string date-time
lang
string
content
string
Article
Object
title1
string
title2
string
thumbnail
string
banner
string
description
string
Max length: 65,536
createdDate
string date-time
lang
string
content
string
id
number double
$new_NotificationHistory
Object
notificationId
number double required
customerListId
string required
failCustomerListId
number double required
status
string required
sendTime
string date-time required
NotificationHistory
Object
notificationId
number double required
customerListId
string required
failCustomerListId
number double required
status
string required
sendTime
string date-time required
id
number double
PersistedModel
Object
id
number double
$new_Chat
Object
sender
string
senderId
number double required
room
string required
message
string required
Max length: 65,536
seen
boolean required
createTime
string date-time required
Chat
Object
sender
string
senderId
number double required
room
string required
message
string required
Max length: 65,536
seen
boolean required
createTime
string date-time required
id
number double
Object
platform
string required
userId
number double required
accessToken
string
refreshToken
string
idToken
string
Max length: 65,536
data
string required
Max length: 65,536
Object
platform
string required
userId
number double required
accessToken
string
refreshToken
string
idToken
string
Max length: 65,536
data
string required
Max length: 65,536
id
number double
$new_SurveyResult
Object
userId
number double
surveyId
number double
surveyName
string
category
string
question1
string
answer1
string
question2
string
answer2
string
question3
string
answer3
string
question4
string
answer4
string
question5
string
answer5
string
notes
string
sendTime
string date-time
SurveyResult
Object
userId
number double
surveyId
number double
surveyName
string
category
string
question1
string
answer1
string
question2
string
answer2
string
question3
string
answer3
string
question4
string
answer4
string
question5
string
answer5
string
notes
string
sendTime
string date-time
id
number double
$new_Survey
Object
name
string
thumbnail
string
title
string
title_en
string
category
string
question1
string
question2
string
question3
string
question4
string
question5
string
question1_en
string
question2_en
string
question3_en
string
question4_en
string
question5_en
string
hasGift
number double
points
number double
voucherId
number double
Survey
Object
name
string
thumbnail
string
title
string
title_en
string
category
string
question1
string
question2
string
question3
string
question4
string
question5
string
question1_en
string
question2_en
string
question3_en
string
question4_en
string
question5_en
string
hasGift
number double
points
number double
voucherId
number double
id
number double
$new_LoyaltyAction
Object
title
string
description
string
points
number double
isGift
boolean
time
string date-time
LoyaltyAction
Object
title
string
description
string
points
number double
isGift
boolean
time
string date-time
id
number double
$new_LoyaltyActionHistory
Object
userId
number double
itemId
number double
actionName
string required
createTime
string date-time required
$new_PartnerPromotion
Object
language
string required
partnerId
number double
type
string
category
string
title
string
description
string
poster
string
thumbnail
string
point
number double
sendTime
string date-time
voucherCode
string
voucherUrl
string
isGift
boolean
createTime
string date-time required
PartnerPromotion
Object
language
string required
partnerId
number double
type
string
category
string
title
string
description
string
poster
string
thumbnail
string
point
number double
sendTime
string date-time
voucherCode
string
voucherUrl
string
isGift
boolean
createTime
string date-time required
id
number double
$new_Minigame
Object
code
string required
imageUrl
string
title
string required
description
string required
Max length: 65,536
startTime
string date-time
endTime
string date-time
Minigame
Object
code
string required
imageUrl
string
title
string required
description
string required
Max length: 65,536
startTime
string date-time
endTime
string date-time
id
number double
$new_MinigameUser
Object
userId
number double
userCode
string
originUserCode
string
createdTime
string date-time
updatedTime
string date-time
isWinner
boolean
winnerTier
string
giftName
string
giftImageUrl
string
giftPrice
string
MinigameUser
Object
userId
number double
userCode
string
originUserCode
string
createdTime
string date-time
updatedTime
string date-time
isWinner
boolean
winnerTier
string
giftName
string
giftImageUrl
string
giftPrice
string
id
number double
$new_Quest
Object
title
string
Quest
Object
title
string
id
number double
$new_QuestHistory
Object
title
string
QuestHistory
Object
title
string
id
number double
$new_ReminderHistory
Object
ReminderHistory
Object
id
number double
MessageThread
Object
ownerName
string
ownerId
number double required
title
string required
body
string required
Max length: 65,536
email
string
phoneNumber
string
departmentId
number double
status
string
userAppSeen
boolean
createTime
string date-time required
id
number double
$new_Message
Object
sender
string
senderId
number double required
threadId
number double required
body
string required
Max length: 65,536
createTime
string date-time required
ratingValue
number double
ratingMessage
string
Max length: 65,536
Message
Object
sender
string
senderId
number double required
threadId
number double required
body
string required
Max length: 65,536
createTime
string date-time required
ratingValue
number double
ratingMessage
string
Max length: 65,536
id
number double
$new_MessageThread
Object
ownerName
string
ownerId
number double required
title
string required
body
string required
Max length: 65,536
email
string
phoneNumber
string
departmentId
number double
status
string
userAppSeen
boolean
createTime
string date-time required
$new_OnlineInsurance
Object
title
string
category
string
description
string
BuyingUrl
string
AffliateUrl
string
PhiBaoHiem
string
QuyenLoiBaoHiem
string
thumbnail
string
OnlineInsurance
Object
title
string
category
string
description
string
BuyingUrl
string
AffliateUrl
string
PhiBaoHiem
string
QuyenLoiBaoHiem
string
thumbnail
string
id
number double
$new_Edocument
Object
title
string required
description
string
link
string required
category
string
creatorId
number double
dateCreated
string date-time
status
string
deletedBy
string
dateDeleted
string date-time
Edocument
Object
title
string required
description
string
link
string required
category
string
creatorId
number double
dateCreated
string date-time
status
string
deletedBy
string
dateDeleted
string date-time
id
number double
$new_AllCategory
Object
name
string required
desc
string
list
Array required
Object
createdTime
string date-time
AllCategory
Object
name
string required
desc
string
list
Array required
Object
createdTime
string date-time
id
number double
$new_QuestEngagement
Object
title
string required
description
string
imageUrl
string
startTime
string date-time required
endTime
string date-time required
actionType
string required
actionData
giftType
number double required
points
number double
voucherId
number double
status
string
createTime
string date-time required
QuestEngagement
Object
title
string required
description
string
imageUrl
string
startTime
string date-time required
endTime
string date-time required
actionType
string required
actionData
giftType
number double required
points
number double
voucherId
number double
status
string
createTime
string date-time required
id
number double
$new_QuestEngagementHistory
Object
userId
number double required
questEngagementId
number double required
createTime
string date-time required
QuestEngagementHistory
Object
userId
number double required
questEngagementId
number double required
createTime
string date-time required
id
number double
$new_SocialPlatform
Object
name
string required
rewardPoint
number double required
status
string required
SocialPlatform
Object
name
string required
rewardPoint
number double required
status
string required
id
number double
dwh_parties
Object
ID
string required
CLIENT_ID
string
FULL_NAME
string
ADDRESS
string
PHONE_NUMBER
string
IDCARD_TYPE
string
IDCARD_NUMBER
string
GENDER
number double
BIRTH_DATE
string date-time
ORGANIZATIONUNITS_ID
string
COUNTRIES_ID
string
ID_ISSUED_DATE
string date-time
ID_ISSUED_PROVINCE
string
BIRTH_ADDRESS
string
MARITAL_STATUS
string
OCCUPATION
string
WORKING_ADDRESS
string
CHILDREN_NUMBER
number double
CHILDREN_AGES
number double
MONTHLY_INCOME
string
PRODUCT_TYPE1
string
PRODUCT_COMPANY1
string
PRODUCT_TYPE2
string
PRODUCT_COMPANY2
string
CONTRACT_NAME
string
PERCENTAGE
string
RELATIONSHIP
string
START_DATE
string date-time
END_DATE
string date-time
dwh_billlines
Object
ID
string required
CODE
string
PRODUCT_COVERAGE_ID
string
CONTRACT_NAME
string
AMOUNT
number double
FROM_DATE
string date-time
TO_DATE
string date-time
LAPSING_DATE
string date-time
PAYMENT_DATE
string date-time
STATUS
string
SYSTEM_DATE
string date-time
dwh_products
Object
ID
string required
CODE
string
NAME_VI
string
NAME_EN
string
DESCRIPTION
string
dwh_contractcoverages
Object
ID
string required
PRODUCT_COVERAGE_ID
string
CONTRACT_NAME
string
COVERED_CLIENTID
string
CONTRACT_COVERAGE_CODE
string
COVERAGE_AMOUNT
number double
PREMIUM
number double
STATUS
number double
INITIAL_EFFECTIVE_DATE
string date-time
MATURITY_DATE
string date-time
START_DATE
string date-time
END_DATE
string date-time
SYSTEM_DATE
string date-time
dwh_organizationunits
Object
ID
string required
CODE
string
PARENT_ID
string
NAME_VI
string
DISTRINBUTIONNETWORKID
string
dwh_contracts
Object
ID
string required
CONTRACT_NAME
string
PRODUCT_ID
string
AGENT_ID
string
STATUS
number double
SUBSCRIBER_CLIENTID
string
MAINCOVERED_CLIENTID
string
INITIAL_EFFECTIVE_DATE
string date-time
MATURITY_DATE
string date-time
DURATION
number double
BILLING_FREQUENCY
number double
INITIAL_CONTRIBUTION
number double
ANNUAL_CONTRIBUTION
number double
START_DATE
string date-time
END_DATE
string date-time
TERMINATION_REASON
string
SYSTEM_DATE
string date-time
PREMIUM_DURATION
number double
SALE_REP_ID
string
EXCESSPREMIUM
number double
EXCESSPREMIUMDURATION
number double
dwh_ncbproposal
Object
ID
string required
NAME
string
app_parties
Object
ID
string required
TIER_ID
number double
MONEY
number double
CLIENT_ID
string
FULL_NAME
string
ADDRESS
string
PHONE_NUMBER
string
IDCARD_TYPE
string
IDCARD_NUMBER
string
GENDER
number double
BIRTH_DATE
string date-time
ORGANIZATIONUNITS_ID
string
COUNTRIES_ID
string
ID_ISSUED_DATE
string date-time
ID_ISSUED_PROVINCE
string
BIRTH_ADDRESS
string
MARITAL_STATUS
string
OCCUPATION
string
WORKING_ADDRESS
string
CHILDREN_NUMBER
number double
CHILDREN_AGES
number double
MONTHLY_INCOME
string
PRODUCT_TYPE1
string
PRODUCT_COMPANY1
string
PRODUCT_TYPE2
string
PRODUCT_COMPANY2
string
CONTRACT_NAME
string
PERCENTAGE
string
RELATIONSHIP
string
START_DATE
string date-time
END_DATE
string date-time
app_billlines
Object
ID
string required
CODE
string
PRODUCT_COVERAGE_ID
string
CONTRACT_NAME
string
AMOUNT
number double
FROM_DATE
string date-time
TO_DATE
string date-time
LAPSING_DATE
string date-time
PAYMENT_DATE
string date-time
STATUS
string
SYSTEM_DATE
string date-time
app_products
Object
ID
string required
CODE
string
NAME_VI
string
NAME_EN
string
DESCRIPTION
string
app_contractcoverages
Object
ID
string required
PRODUCT_COVERAGE_ID
string
CONTRACT_NAME
string
COVERED_CLIENTID
string
CONTRACT_COVERAGE_CODE
string
COVERAGE_AMOUNT
number double
PREMIUM
number double
STATUS
number double
INITIAL_EFFECTIVE_DATE
string date-time
MATURITY_DATE
string date-time
START_DATE
string date-time
END_DATE
string date-time
SYSTEM_DATE
string date-time
app_organizationunits
Object
ID
string required
CODE
string
PARENT_ID
string
NAME_VI
string
DISTRINBUTIONNETWORKID
string
app_contracts
Object
ID
string required
CONTRACT_NAME
string
PRODUCT_ID
string
AGENT_ID
string
STATUS
number double
SUBSCRIBER_CLIENTID
string
MAINCOVERED_CLIENTID
string
INITIAL_EFFECTIVE_DATE
string date-time
MATURITY_DATE
string date-time
DURATION
number double
BILLING_FREQUENCY
number double
INITIAL_CONTRIBUTION
number double
ANNUAL_CONTRIBUTION
number double
START_DATE
string date-time
END_DATE
string date-time
TERMINATION_REASON
string
SYSTEM_DATE
string date-time
PREMIUM_DURATION
number double
SALE_REP_ID
string
EXCESSPREMIUM
number double
EXCESSPREMIUMDURATION
number double
app_ncbproposal
Object
ID
string required
NAME
string