Skip to main content

currency

Requires at least one of the permissions settings:currency:read or settings:tenant:read.

Returns one currency. Requires permission to read currency or tenant settings.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query Currency($id: String!) {
currency(id: $id) {
id
code
name
type
createdAt
decimalPlaces
}
}

Variables:

{
"id": "string"
}

Response:

{
"data": {
"currency": {
"id": "id",
"code": "string",
"name": "string",
"type": "COMMODITY",
"createdAt": "2025-01-15T00:00:00Z",
"decimalPlaces": 0
}
}
}
currency(
id: String!
): Currency!

Arguments​

currency.id ● String! non-null scalar​

The ID of the currency.

Type​

Currency object​

A currency the organization can use.