post https://apiv4.ordering.co////orders/custom
This API endpoint is used to create orders.
The customer, business and products must have the following structure to be accepted.
{
"name": "name",
"cellphone": 3003003030,
"phone": 5757577,
"address": "5th Avenue",
"address_notes": "AP 505",
"location": {
"lat": 15.5,
"lng": 15.5
}
}
{
"name": "name",
"cellphone": 3003003030,
"phone": 5757577,
"address": "5th Avenue",
"address_notes": "AP 505",
"location": {
"lat": 15.5,
"lng": 15.5
},
"timezone": "Ametica/BuenosAires"
}
{
"name": "product",
"price": 10,
"quantity": 1,
"comment": "commnent"
}
Total
If the params total is sent, will create a product called "Total" (is translated depending on lang) with the the price equal to total. So products are not necessary when this param is sent.
History
The customer, business and products will be register in the database if are properly write, but not as new, only history registers.
X-APP-X
It is a header parameter to know from what medium the order was created for example, web, ios app, android app, etc.