> For the complete documentation index, see [llms.txt](https://apidocs.rapigo.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.rapigo.co/api/pedir-servicio.md).

# Pedir Servicio

## Solicitar Servicio

<mark style="color:green;">`POST`</mark> `https://www.rapigo.co/api/v1/request_service/`

Funcion para solicitar servicio

#### Headers

| Name           | Type   | Description      |
| -------------- | ------ | ---------------- |
| Authentication | string | Token Basic Auth |

#### Request Body

| Name                | Type   | Description                                                             |
| ------------------- | ------ | ----------------------------------------------------------------------- |
| external\_order\_id | string | id externa                                                              |
| extra\_data         | object | mas info en la sección de extra data                                    |
| city\_id            | string | 1-> Bogota, 2-> Medellin, 3 -> Pereira, 4 -> Cali                       |
| hora\_servicio      | string | HH:MM, Si se quiere programar el servicio se envía este parámetro.      |
| fecha\_servicio     | string | MM/DD/YYYY, si se quiere programar el servicio se envía este parámetro. |
| points              | string | Array de direcciones                                                    |
| type                | string | kilometer , hour                                                        |

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

```javascript
{
    "status": "ok",
    "distance": 2000,
    "price": 25000,
    "key" : "FR34D77R",
    "points":[ "GE3DTTY", "DRWS33SS", "DWWWSAW" ]
}
```

{% endtab %}
{% endtabs %}

## Extra Data

```javascript
{
    "customer": {
        "name": "",
        "phone": "",
    },
}
```
