query QueryShopCurrencies($salesChannelId: String!) {
QueryShopCurrencies(salesChannelId: $salesChannelId) {
currencyCode
codeSource
name
isAssigned
isDefault
}
}{
"salesChannelId": "string"
}{
"data": {
"QueryShopCurrencies": [
{
"currencyCode": "string",
"codeSource": "ISO",
"name": "string",
"isAssigned": true,
"isDefault": true
}
]
}
}QueryShopCurrencies
Delivers the currencies known to the Wawi, annotated with the assignment and default state for a single shop. The result is the whole currency catalogue, not just the shop’s assignments - every entry carries IsAssigned so a caller can offer a complete currency picker and show which entries are already assigned. Codes are returned in their canonical form and are accepted in the same two forms as the save command on this route (ISO 4217 alpha-3, and the ISO 4217 private-use x- namespace for tenant-defined currencies), so every currency that can be assigned is also listed here. A currency in the Wawi master data whose code matches neither form is omitted, because the code is the identifier of the resource (ADR-85) and such a row has none to expose. Where two master-data rows carry the same code - dbo.tWaehrung has no unique constraint on it - the result is folded down to a single entry per code. The result is not paged and supports no filtering, sorting or projection.
QueryShopCurrencies(salesChannelId: String!): [ShopCurrencySelection!]!Arguments
Returns
Code of the currency in its canonical form - uppercase for ISO 4217 alpha-3 codes, lowercase x- prefix for tenant-defined codes. This is the identifier of the currency (ADR-85); the internal surrogate key (kWaehrung) is not exposed. The accepted forms are identical to those of the save command on this route, so every code that can be assigned is also listed here. Only the FORM of the code is validated - membership in the ISO 4217 register is not verified, because the Wawi ships no register. A currency in the Wawi master data whose code matches neither form has no identifier this contract could expose and is therefore not listed, assigned or not.
Source of CurrencyCode - standardized ISO 4217 code or tenant-defined code (ADR-85). Derived from the form of the stored code: a code in ISO 4217 alpha-3 form is reported as Iso, a code in the ISO 4217 private-use namespace (x- prefix) as UserAssigned. A tenant-defined code that happens to have ISO alpha-3 form is therefore reported as Iso - telling those two apart requires the central code registry from the pending ADR-85 implementation tickets. The property exists so consumers do not have to infer the code type by regular expression.
Display name of the currency as stored in the Wawi currency master data, or null if unset.
Currency is assigned to the shop. False for every currency that is part of the Wawi currency master data but not of the shop's assignments - the result is the full catalogue, not the assignment set.
Currency is the shop default currency. Only ever true when IsAssigned is also true.
query QueryShopCurrencies($salesChannelId: String!) {
QueryShopCurrencies(salesChannelId: $salesChannelId) {
currencyCode
codeSource
name
isAssigned
isDefault
}
}{
"salesChannelId": "string"
}{
"data": {
"QueryShopCurrencies": [
{
"currencyCode": "string",
"codeSource": "ISO",
"name": "string",
"isAssigned": true,
"isDefault": true
}
]
}
}Was this page helpful?