> 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/integration-management/enable-delivery-integration.md).

# Enable delivery integration

{% hint style="warning" %}
Only Uber integration is available for testing
{% endhint %}

## Enable delivery integration

<mark style="color:green;">`POST`</mark> `https://integrations.mipos.shop/api/v1/integration/enable`

Enable the selected integration for this store

#### Headers

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

#### Request Body

| Name                | Type   | Description                                        |
| ------------------- | ------ | -------------------------------------------------- |
| external\_store\_id | string | Id of the store in the delivery/third party system |
| store\_id           | string | Id of the store in the platform                    |
| integration\_id     | string | Id of the integration in the platform              |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```javascript
{
    "message": "Successfully activated integration.",
    "data": null
}
```

{% endtab %}

{% tab title="401 " %}

```
"Unauthorized."
```

{% endtab %}

{% tab title="409 Could not find a cake matching this query." %}

```javascript
{
    "message": [
        "This name is not available.",
        "You don't have this store available.",
        "Integration not available.",
        "Microservice does not have this integration configured.",
        "Could not change the status of integration.",
        "Unable to get token.",
        "This store does not have the store delivery id."
    ],
    "data": null
}
```

{% endtab %}

{% tab title="422 " %}

```javascript
{
    "store_id": [
        "The store id field is required.",
        "The selected store id is invalid."
    ],
    "integration_id": [
        "The integration id field is required.",
        "The selected integration id is invalid."
    ]
}
```

{% endtab %}
{% endtabs %}

## Enable Third Party market integration

<mark style="color:green;">`POST`</mark> `https://integrations.mipos.shop/third_party/v1/integration/store/config`

This service is used to enable a custom delivery integration. You need the `integration_id` provided by the Delivery and the external store ID that represent your store in their system.&#x20;

#### Headers

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

#### Request Body

| Name                | Type    | Description                     |
| ------------------- | ------- | ------------------------------- |
| integration\_id     | integer | id of delivery integration      |
| external\_store\_id | integer | the store id in delivery system |
| store\_id           | integer | id of the store in the platform |

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

```
```

{% endtab %}
{% endtabs %}
