Menu
site_currency
Currency details.
Use it in a workflow
- Add a step and choose the BigCommerce Storefront connector.
- Pick the site_currency action (under Currency).
- Fill in the fields below, then reference the result from later steps as
{{siteCurrency.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query SiteCurrency($currencyCode: currencyCode!) {
site {
currency(currencyCode: $currencyCode) {
entityId
code
name
flagImage
isActive
exchangeRate
isTransactional
display {
symbol
symbolPlacement
decimalToken
thousandsToken
decimalPlaces
}
isDefault
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"currencyCode": "ADP"
}
Response
Read the result with {{siteCurrency.response.data.data.currency}}. If the API returns errors, the step fails and they are at {{siteCurrency.response.data.errors}}.
Need more? See the BigCommerce Storefront guide for connection setup and behaviour shared by every action.
Was this page helpful?