Third Party Send Order

Third Party Send Order to Store

POST https://integrations.mipos.shop/third_party/v1/mely/order

This endpoint allows you to send orders to store

Headers

Request Body

{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}

Json request example

{
    "id": "12345678-123-1234-1234-123456789012",
    "created_at": "2020-03-20T04:51:03Z",
    "total": 25800,
    "store": {
    	"id":"abc124..3312",
    	"menu_identifier": "????"
	},
    "order_number": "ABC12",
    "instructions": "",
    "items": [
        {
        	"id": "aaa1",
            "external_id": "13753",
            "name": "El Xolo",
            "quantity": 2,
            "unit_value": 10900,
            "total_unit_value": 12900,
            "total_value": 25800,
            "instructions": "",
            "total_with_discount":25800,
            "modifiers": [
                {
                	"id": "bbb1",
                    "external_id": "3006",
                    "name": "Elige Tus  Papas",
                    "quantity": 1,
                    "unit_value": 0,
                    "total_value": 0
                },
                {
                	"id": "ccc1",
                    "external_id": "3012",
                    "name": "Elige tu salchicha",
                    "quantity": 1,
                    "unit_value": 2000,
                    "total_value": 2000
                }
            ]
        }
    ],
   "discount_value": 800,
   "total_with_discount": 25000,
   "delivery_method": "delivery",
   "payment_method":"cc",
   "client": {
	    "identifier": "9999999999",
	    "firstName": "Final",
	    "lastName": "Consumer",
	    "email": "",
	    "phone": "",
	    "address": ""
	},
	"delivery": {
	    "origin": {
	        "address": "Av. Emilio Estrada, Dátiles 109 Y, 090511",
	        "reference": "",
	        "lat": "-2.1665922",
	        "lng": "-79.9059292",
	        "contact_phone": "XXXXXXXXXXXX",
	        "contact_name": "Pick Up Store"
	    },
	    "destination": {
	        "address": "Dr. Alfredo Baquerizo Moreno 1007, Guayaquil 090313",
	        "reference": "Cerca del Malecón 2000",
	        "lat": "-2.1850754",
	        "lng": "-79.8902651",
	        "contact_phone": "YYYYYYYYYYYYY",
	        "contact_name": "Customer name"
	    },
	    "estimated_pickup": "2020-05-29 15:43:00",
	    "integration_id": "id of the integration for which you want to request the delivery service"
	}
}

Last updated