# Contact Quote
# Add Contact Quote
Sử dụng API này để thêm một yêu cầu báo giá sản phẩm
# Endpoint
# Parameters
Name | Type | Description | Required |
---|---|---|---|
name | String | ✔️ | |
companyName | String | ✔️ | |
phone | String | ✔️ | |
String | ✔️ | ||
taxCode | String | ✔️ | |
message | String | ➖ | |
quantity | Number | ✔️ | |
productId | Number | ✔️ |
# Response
{
"status": true,
"messageCode": "",
"messageContent": "success",
"data": {
"id": 17,
"name": "Ngô Quang Hiếu",
"companyName": "EI Industrial",
"phone": "0923363321",
"email": "hieuquang2212@gmail.com",
"taxCode": "",
"message": "abcxyz",
"quantity": 1,
"productId": 1081,
"updatedAt": "2021-07-30T16:39:19.700Z",
"createdAt": "2021-07-30T16:39:19.700Z"
}
}
curl -X POST http://localhost:3000/contactQuote/ei/postByUser \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <const name="MOCK_TOKEN" />' \
--data '{
"name" : "Ngô Quang Hiếu",
"companyName" : "EI Industrial",
"phone" : "0923363321",
"email" : "hieuquang2212@gmail.com",
"taxCode" : "0312238079",
"message" : "abcxyz",
"quantity" : 1,
"productId" : 1081
}'