# Update order rates

## Update Exchange rate

<mark style="color:blue;">`GET`</mark> `https://v2-order-api.citypay.io/orders/api/:token/rates`

This method should be used when you need to update the exchange rates in UI, the exchange rates are updated every minute and after the new transaction.&#x20;

#### Headers

| Name          | Type   | Description                                  |
| ------------- | ------ | -------------------------------------------- |
| bearer\_token | string | The token is obtained from the log-in method |

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

```
{
    "success": true,
    "data": {
        "companyName": "company 1",
        "id": 2876,
        "customerId": 115,
        "token": "lasha2ssasa",
        "coin": "Bitcoin",
        "coinBaseName": "btc",
        "exchangeRate": 51052.068,
        "amountFiat": "5.00",
        "amount": 0.00009794,
        "dueDate": null,
        "currency": {
            "id": 2,
            "currency": "US Dollar",
            "abbreviation": "USD"
        },
        "createdAt": "2021-04-07 09:15",
        "createdAtMiliseconds": 1617786773000,
        "type": "Order",
        "expiresAt": 1617789766607,
        "expirationTime": 2815607,
        "email": null,
        "address": "2N5FN3p5fT7mFzpDKXmuE9xxf2xBfzwuVWx",
        "qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAACkCAYAAAAZtYVBAAAAAklEQVR4AewaftIAAAZESURBVO3BQY4cSRLAQDLQ//8yV0c/JZCoam1o4Gb2B2td4rDWRQ5rXeSw1kUOa13ksNZFDmtd5LDWRQ5rXeSw1kUOa13ksNZFDmtd5LDWRQ5rXeSw1kV++JDK31TxRGWq+CaVNyomlaniDZUnFZPK31TxicNaFzmsdZHDWhf54csqvknljYonKlPFJyqeqEwVT1TeqHij4ptUvumw1kUOa13ksNZFfvhlKm9UfJPKVDGpTBWTylTxROWJypOKv0nljYrfdFjrIoe1LnJY6yI//MeoPFF5ojJVTCpTxZOKSWWqeKIyVfyXHda6yGGtixzWusgP/zEVT1SmijcqJpU3KiaVqWKqmFSmiv+Sw1oXOax1kcNaF/nhl1X8JpUnFU9U3qiYKiaVJyqfqJhUpoo3Km5yWOsih7UucljrIj98mcr/U8WkMlVMKlPFpPJEZaqYVKaKSeWJylTxC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Z84rHWRw1oXOax1kR8+pDJVPFF5UjGpPKl4UvGGyhOVT1S8UfFE5YnKGxWTyt90WOsih7UucljrIvYH/zCVJxWTylTxRGWqeKIyVUwqU8Wk8qRiUpkq3lB5UjGpPKn4xGGtixzWushhrYv88CGVv6liqphU3lB5UvFE5YnKVPGk4ptUpoonFW9UfNNhrYsc1rrIYa2L/PBlFd+k8kRlqnhS8QmVqWJSmSomlb+p4l9yWOsih7UucljrIj/8MpU3Kt6omFQ+UfGJiknlScWk8qRiUplU/mWHtS5yWOsih7Uu8sM/TmWqeENlUnlSMam8UfFGxRsVk8o3Vfymw1oXOax1kcNaF/nhH1cxqUwVn6j4TSpvqEwV/08qU8UnDmtd5LDWRQ5rXeSHX1bxN1U8UfmEyidU3lCZKp6oTBW/qeKbDmtd5LDWRQ5rXeSHL1P5m1TeqHiiMqk8qZhUpopJ5UnFGypTxaTypGJSmSomlanimw5rXeSw1kUOa13E/mCtSxzWushhrYsc1rrIYa2LHNa6yGGtixzWushhrYsc1rrIYa2LHNa6yGGtixzWushhrYsc1rrI/wCTSBF2AF2zAwAAAABJRU5ErkJggg==",
        "status": {
            "code": "IN_PROGRESS",
            "label": "IN_PROGRESS"
        },
        "urls": {
            "callbackUrl": "https://qa.citypay.io/access",
            "successUrl": "https://qa.citypay.io/access",
            "cancelUrl": "https://qa.citypay.io/access"
        },
        "transactions": []
    },
    "message": null
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.citypay.io/order-api-from-iframe/update-order-rates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
