---
title: "Convert"
method: GET
path: "/convert"
tags: ["E-commerce"]
---

# Convert

`GET /convert`

A currency and unit conversion tool

## Query parameters

- `from-value` string, required
- `from-type` string, required
- `to-type` string, required
- `historical-date` string

## Response `200`

OK

- ConvertResponse — Structure of convert
  - `valid` boolean, required — True if the conversion was successful and produced a valid result
  - `result` string, required — The result of the conversion in string format
  - `from-value` string, required — The value being converted from
  - `to-type` string, required — The type being converted to
  - `from-type` string, required — The type of the value being converted from
  - `result-float` number, double, required — The result of the conversion as a floating-point number
  - `from-name` string, required — The full name of the type being converted from
  - `from-symbol` string, required — The standard UTF-8 symbol used to represent the type being converted from
  - `to-name` string, required — The full name of the type being converted to
  - `to-symbol` string, required — The standard UTF-8 symbol used to represent the type being converted to
  - `historical-date` string, required — If a historical conversion was made using the 'historical-date' request option this will contain the exact date used for the conversion in ISO format: YYYY-MM-DD

## Other responses

- `400` — Your API request has been rejected. Check error code for details
- `403` — You have failed to authenticate
- `500` — We messed up, sorry! Your request has caused a fatal exception
- `default` — We messed up, sorry! Your request has caused an error

---

[API](https://skmtc.net/neutrinoapi/apis/neutrino-api.md) · [All operations](https://skmtc.net/neutrinoapi/apis/neutrino-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neutrinoapi/neutrino-api/versions/4ebd6b56de42/schema)
