> For the complete documentation index, see [llms.txt](https://developer.citypay.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.citypay.io/order-api-from-iframe/log-in.md).

# Log in

To obtain the access token, please visit citypay.io and create an access token on the products/order&#x20;

## Log in

<mark style="color:green;">`POST`</mark> `https://v2-order-api.citypay.io/orders/api/login/orders/api/login`&#x20;

#### Request Body

| Name  | Type   | Description                  |
| ----- | ------ | ---------------------------- |
| token | string | The string for authorization |

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

```
{
    "success": true,
    "data": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbiI6ImNjNzNlY2EyMmYwNTk2NTg5YWE0OGQ5Nzg2ZDNhNTgxIiwiaWF0IjoxNjE3Nzg2NTM1fQ.jrIgwkZtjVabi6g6lmFw5yXvnJL06bIVi6h43KVcIdY",
    "message": null
}
```

{% endtab %}
{% endtabs %}
