Gửi thông tin đơn hàng từ website tới maimai.vn
POST api/Order
Đối tượng order
Đối tượng HttpResponseMessage, trong đó HttpResponseMessage.StatusCode là HTTP status code của tác vụ. HttpResponseMessage.Content chứa thông tin lỗi nếu có.
$.ajax({
url: '//api.maimai.vn/api/order/post',
type: "POST",
crossDomain: true,
data: {
c: 'company name',
k: 'api key',
state: 204,
category: 1,
agent: 1,
freight: 0,
inputType: 0,
country: {country ID},
city: {city ID},
district: {district ID},
address: '{address}',
description: '{description}',
cart: '{cart_string}'
},
dataType: "html",
success: function (responseJSON) {
//on success
},
error: function (jqXHR, tranStatus, errorThrown) {
//on error
}
});