# Quotation
# Get Quotations Of Customer
Sử dụng API này để lấy thông tin của các báo giá, khi khách hàng đã đăng nhập
# Endpoint
# Parameters
Name | Type | Description | Required |
---|
# Response
{
"status": true,
"message": "success",
"totalRows": 1,
"rows": [
{
"id": 3,
"code": "QUO-0208-00000",
"customerId": 13,
"total": 11000,
"BDInChargeId": 1,
"salesInChargeId": 1,
"representativeId": 1,
"quotationStatusId": 1,
"shippingMethodId": 1,
"cancelReason": null,
"note": "ghi chú",
"personInChargeId": 1,
"tax": "10",
"isImportant": false,
"customerAddressId": 12,
"createdAt": "2021-08-02T09:51:49.760Z",
"updatedAt": "2021-08-02T09:51:49.891Z",
"createdBy": 3,
"updatedBy": 3,
"deleted": false,
"customer": {
"companyId": 1,
"id": 13,
"customerName": "Vegarnom",
"platform": "ei",
"code": "CUS-kqm6p053",
"avatar": "https://ei-dev-store.s3.amazonaws.com/customers/1/1/150913452_3706451019446891_8104476001517613665_o.jpg",
"email": "admin@gmail.com",
"phone": "0945234525",
"address": "ádfasdf",
"typeId": 4,
"sizeId": 3,
"industryId": 28,
"website": "dsfasdfasdf",
"rankId": 8,
"industrialParkId": null,
"channelId": 1,
"userInchargeId": 3,
"taxCode": "4234262547345",
"createdBy": 1,
"updatedBy": 1,
"createdAt": "2021-06-23T07:52:43.531Z",
"updatedAt": "2021-06-23T07:52:43.531Z",
"deleted": false
},
"salesInCharge": {
"id": 1,
"email": "eiadmin@gmail.com",
"username": "EI Admin",
"firstName": null,
"lastName": null,
"phone": null,
"address": null,
"avatar": "https://ss-images.saostar.vn/w600/pc/1613810558698/Facebook-Avatar_3.png",
"roleId": 119,
"companyId": 1,
"deleted": 0,
"createdBy": 1,
"updatedBy": 1,
"changePassword": 1,
"createdAt": "2021-07-16T04:52:43.000Z",
"updatedAt": "2021-08-04T03:33:55.413Z"
},
"BDInCharge": {
"id": 1,
"email": "eiadmin@gmail.com",
"username": "EI Admin",
"firstName": null,
"lastName": null,
"phone": null,
"address": null,
"avatar": "https://ss-images.saostar.vn/w600/pc/1613810558698/Facebook-Avatar_3.png",
"roleId": 119,
"companyId": 1,
"deleted": 0,
"createdBy": 1,
"updatedBy": 1,
"changePassword": 1,
"createdAt": "2021-07-16T04:52:43.000Z",
"updatedAt": "2021-08-04T03:33:55.413Z"
},
"representative": {
"id": 1,
"customerId": 3,
"name": "Mr Hồ Phi Ân",
"title": "Giám Đốc",
"email": "example@email.com",
"phone": null,
"address": null,
"note": null,
"createdAt": "2021-08-02T09:51:49.760Z",
"updatedAt": "2021-08-02T09:51:49.760Z",
"createdBy": 1,
"updatedBy": 1,
"deleted": false
},
"quotationStatus": {
"id": 1,
"name": "In Process",
"description": "Đang Xử Lý",
"createdAt": "2021-08-02T09:51:49.760Z",
"updatedAt": "2021-08-02T09:51:49.760Z",
"createdBy": 1,
"updatedBy": 1,
"deleted": false
},
"personInCharge": {
"id": 1,
"customerId": 1,
"name": "Nguyễn Văn B",
"email": "example@gmai.com",
"phone": null,
"address": null,
"note": null,
"createdAt": "2021-08-02T09:51:49.760Z",
"updatedAt": "2021-08-02T09:51:49.760Z",
"createdBy": 1,
"updatedBy": 1,
"deleted": false
},
"shippingMethod": {
"id": 1,
"name": "Giao 1 lần / giao từng SP",
"description": null,
"createdBy": 1,
"updatedBy": 1,
"createdAt": "2021-08-04T11:57:28.411Z",
"updatedAt": "2021-08-04T11:57:28.411Z",
"deleted": false
},
"quotationDetails": [
{
"id": 3,
"quotationId": 3,
"productId": 1,
"quantity": 1,
"weight": 0,
"tax": null,
"shippingCost": 0,
"unitPrice": 10000,
"total": 10000,
"note": "ghi chú sp",
"createdAt": "2021-08-02T09:51:49.817Z",
"updatedAt": "2021-08-02T09:51:49.817Z",
"createdBy": 3,
"updatedBy": null,
"deleted": false,
"product": null
}
]
}
]
}
curl -X POST http://localhost:3000/quotation/ei/getList \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <const name="MOCK_TOKEN" />' \
--data '{}'
← Contact Quote Login →