Merchant API

API quản lý merchant

Lấy thông tin merchant

GET {{base_url}}/merchant

Cho phép lấy thông tin merchant

Query Parameters

Name
Type
Description

merchant_id_app

string

id merchant app

Headers

Name
Type
Description

Authorization

string

Bearer <access_token>

Tạo mới merchant

POST {{base_url}}/merchant

Cho phép tạo mới merchant

Headers

Name
Type
Description

Authorization

string

Bearer <access_token>

Content-Type

string

application/json

Request Body

Name
Type
Description

name

string

Tên merchant

phone

string

Số điện thoại

password

string

Mật khẩu

confirm_password

string

Xác nhận mật khẩu

package

string

Gói dịch vụ (id)

date_start_contract

string

Ngày bắt đầu hợp đồng

date_end_contract

string

Ngày kết thúc hợp đồng

business_model_id

string

Mô hình kinh doanh (id)

merchant_id_app

string

id merchant phía bên đối tác quy định

email

string

Email

sms_provider

string

SMS provider

user_sms

string

User SMS

pass_sms

string

Password SMS

quota

string

SMS quota

Update thông tin merchant

PUT {{base_url}}/merchant

Cho phép update thông tin merchant

Query Parameters

Name
Type
Description

merchant_id_app

string

id merchant app

Headers

Name
Type
Description

Authorization

string

Bearer <access_token>

Content-Type

string

application/json

Request Body

Name
Type
Description

name

string

Tên merchant

phone

string

Số điện thoại

email

string

Email

password

string

Mật khẩu

confirm_password

string

Xác nhận mật khẩu

package

string

Gói dịch vụ (id)

date_start_contract

string

Ngày bắt đầu hợp đồng

date_end_contract

string

Ngày kết thúc hợp đồng

business_model_id

string

Mô hình kinh doanh (id)

provider_sms

string

Provide SMS

user_sms

string

User SMS

pass_sms

string

Password SMS

quota

string

Quota SMS

Lấy danh sách địa điểm của Merchant

GET {{base_url}}/merchant/shops

Cho phép lấy danh sách địa điểm của merchant

Query Parameters

Name
Type
Description

merchant_id

string

id merchant

merchant_slug

string

tên merchant

page

string

trang hiện tại

page_limit

string

giới hạn số bản ghi trả về

Headers

Name
Type
Description

Authorization

string

Bearer <access_token>

{
	"status": 200,
	"message": "shops in merchant",
	"data":
	{
		"shops": [ Danh sách shop ],
		"total": total,
		"page": page,
		"page_limit": page_limit
	}
}

Lưu ý: Bắt buộc phải truyền merchant_id hoặc merchant_slug

curl -X GET \
  '{{ base_url }}/merchant/shops?merchant_id={{ merchant_id }}' \
  -H 'Authorization: Bearer {{ access_token }}'

Last updated

Was this helpful?