> For the complete documentation index, see [llms.txt](https://mipos.gitbook.io/public-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mipos.gitbook.io/public-api/logistic/available-services.md).

# Available services

Logistics services available to users with POS or Delivery roles

## Estimate Delivery Service

<mark style="color:green;">`POST`</mark> `https://integrations.mipos.shop/api/v1/logistic/third_party/estimate/service`

Estimate the delivery value of an order, without making the service request

#### Headers

| Name          | Type   | Description            |
| ------------- | ------ | ---------------------- |
| Content-Type  | string | application/json       |
| Authorization | string | Bearer {access\_token} |

#### Request Body

| Name           | Type   | Description                                        |
| -------------- | ------ | -------------------------------------------------- |
| store\_id      | string | ID of the store in the platform                    |
| delivery\_info | object | Order information to calculate the estimated value |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "message": "Estimated values",
    "data": {
        "estimate_value": 1150, // This value includes 2 decimal places($11.50).
        "estimate_time": 50 // This time is in minutes,
        "integration_id": 8
    }
}
```

{% endtab %}

{% tab title="409 " %}

```javascript
{
    "message": [
        "You don't have this store available.",
        "The order pickup information is required.",
        "The order delivery information is required.",
        "The address information is required.",
        "The address latitude is required.",
        "The address longitude is required.",
        "The contact phone information is required.",
        "The contact name information is required.",
        "The address information is required.",
        "The address latitude is required.",
        "The address longitude is required.",
        "The contact phone information is required.",
        "The contact name information is required.",
        "Values could not be estimated."
    ],
    "data": null
}
```

{% endtab %}

{% tab title="422 " %}

```javascript
{
    "store_id": [
        "The store id field is required.",
        "The store id must be a string.",
        
    ],
    "delivery_info": [
        "The delivery info field is required."
    ]
}
```

{% endtab %}
{% endtabs %}

## Request Delivery Service

<mark style="color:green;">`POST`</mark> `https://integrations.mipos.shop/api/v1/logistic/third_party/request/service`

Request the package delivery service to the logistics system

#### Headers

| Name          | Type   | Description            |
| ------------- | ------ | ---------------------- |
| Content-Type  | string | application/json       |
| Authorization | string | Bearer {access\_token} |

#### Request Body

| Name           | Type   | Description                                        |
| -------------- | ------ | -------------------------------------------------- |
| store\_id      | string | ID of the store in the platform                    |
| delivery\_info | object | Order information to calculate the estimated value |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}
