---
title: "Update (auto-sync) exchange rates from the external provider"
method: POST
path: "/settings/exchange-rates/update-rates"
tags: ["Admin Settings: Exchange Rates"]
---

# Update (auto-sync) exchange rates from the external provider

`POST /settings/exchange-rates/update-rates`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/settings/exchange-rates/update-rates`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/settings/exchange-rates/update-rates/post.ts> (a function with typed inputs; its response is checked against the schema)

Refreshes every non-base currency exchange rate from the configured external rate provider (the admin "Update Rates" action). Takes no body. Provider/network errors return 422 with the provider message.

## Request body

- object

## Response `200`

Rates refreshed.

## Other responses

- `400`: Invalid input
- `422`: External provider failure (e.g. missing/invalid API key).

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
