Retreive Delivery Orders

Get delivery orders

GET https://integrations.mipos.shop/api/v1/orders/{store_id}

Provide a list of all delivery orders from a store in the last 10 minutes that the POS has not sent the status: ACCET -> https://mipos.gitbook.io/public-api/delivery-orders/successful-order-creation DENY -> https://mipos.gitbook.io/public-api/delivery-orders/order-creation-failed

Path Parameters

NameTypeDescription

store_id

string

Id store on the platform

Headers

NameTypeDescription

Authorization

string

Bearer {access_token}

{
    "message": "Orders.",
    "data": [
        {
            "external_id": "01f1b8ce-a65d-4876-a72f-8f549f3566b7",
            "created_at": "2020-03-20T04:51:03Z",
            "total": 25800,
            "customer": "Brenda E.",
            "store_id": "3",
            "order_number": "566B7",
            "instructions": "",
            "items": [
                {
                    "external_id": "13753",
                    "name": "El Xolo",
                    "quantity": 2,
                    "unit_value": 10900,
                    "total_unit_value": 12900,
                    "total_value": 25800,
                    "instructions": "",
                    "modifiers": [
                        {
                            "external_id": "3006",
                            "name": "Elige Tus  Papas",
                            "quantity": 1,
                            "unit_value": 0,
                            "total_value": 0
                        },
                        {
                            "external_id": "3012",
                            "name": "Elige tu salchicha",
                            "quantity": 1,
                            "unit_value": 2000,
                            "total_value": 2000
                        }
                    ]
                }
            ],
           "discount_value": 800,
           "delivery_id": 1
        }
    ]
}

Get filtered orders

POST https://integrations.mipos.shop/delivery_data/v1/orders

This endpoint allows you to get all orders filtered by the specified parameters.

Headers

NameTypeDescription

Content-Type

string

application/json

Authorization

string

Bearer{access_token}

Request Body

NameTypeDescription

order_status

string

Order status(accepter, rejected)

order_number

string

External order number

to_date

string

Until specified date

from_date

string

Starting from specified date

page

number

Current page number

store_ids

array

Store ids to search for

{
    "message": "Orders.",
    "data": {
        "total_count": 1,
        "total_pages": 0,
        "orders": [
            {
                "delivery_id": 2,
                "delivery_name": "Rappi",
                "internal_store_id": 10,
                "order_number": "4180290",
                "token": "9F9A70B9E3AEEA445DAE4A5687A80633",
                "external_id": "4180290",
                "order": {
                    "id": "4180290",
                    "totalValue": 3500,
                    "createdAt": "2020-06-25 09:26:10",
                    "products": [
                        {
                            "id": "2134995147",
                            "name": "Agua ",
                            "comments": null,
                            "units": 1,
                            "unitPrice": 3500,
                            "discountPercentage": 0,
                            "unitPriceDiscount": 3500,
                            "totalPrice": 3500,
                            "totalPriceWithDiscount": 3500,
                            "toppings": [
                                {
                                    "id": "340182912",
                                    "name": "Agua con gas",
                                    "units": 1,
                                    "price": 0,
                                    "toppingCategoryId": ""
                                }
                            ]
                        }
                    ],
                    "totalValueWithDiscount": 3500,
                    "deliveryMethod": "delivery",
                    "paymentMethod": "cc",
                    "charges": {
                        "shipping": 0,
                        "service_fee": 0
                    }
                },
                "client": {
                    "id": 0,
                    "firstName": "CONSUMIDOR",
                    "lastName": "FINAL"
                },
                "store": {
                    "id": "900103650",
                    "name": "MiPos Test Store"
                }
            }
        ]
    }
}

Last updated