# Crear Account - createAccount

##### <span class="api-method" data-method="POST">POST</span> https://api.service24gps.com/api/v1/ondelivery/createAccount

Crea una cuenta para un cliente de OnDelivery ya sea con saldo o sin saldo.

<details class="mb-m" id="bkmrk-body-parametersparam"><summary class="text-muted">Ver parámetros de solicitud:</summary>

<div><table class="table" style="height: 221px;"><tbody><tr style="height: 41px;"><th style="width: 188px; height: 41px;">Parámetros</th><th style="width: 320px; height: 41px;">Descripción</th><th style="width: 301px; height: 41px;">Ejemplo</th></tr><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">idcliente\_od</td><td style="width: 320px; height: 41px;">Identificador único del cliente.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">4</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">amount</td><td style="width: 320px; height: 41px;">Monto de la cuenta.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">500</span></td></tr></tbody></table>

</div></details>##### Solicitud de ejemplo:

```shell
curl --location --request POST 'http://api.service24gps.com/api/v1/ondelivery/createAccount' \
--header 'Cookie: PHPSESSID=bk9ighpj0cmprh88e7nift0kkb' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--form 'idcliente_od="4"' \
--form 'amount="500"'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "account_id": "792"
    }
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 482px;"><tbody><tr><th style="width: 174px;">Campo</th><th style="width: 392px;">Descripción

</th><th style="width: 243px;">Formato</th></tr><tr><td style="width: 174px;">account\_id</td><td style="width: 392px;">Identificador único del account.</td><td style="width: 243px;">Entero</td></tr></tbody></table>

</div></details>