younifyd
Menu

site_currency

Currency details.

Use it in a workflow

  1. Add a step and choose the BigCommerce Storefront connector.
  2. Pick the site_currency action (under Currency).
  3. 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.

graphql
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.

currencyCodestringrequired

Currency Code

One ofADPAEDAFAAFNALKALLAMDANGAOAAOKAONAORARAARLARMARPARSATSAUDAWGAZMAZNBADBAMBANBBDBDTBECBEFBELBGLBGMBGNBGOBHDBIFBMDBNDBOBBOL

json
{
  "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}}.

entityIdnumber
codestring

One ofADPAEDAFAAFNALKALLAMDANGAOAAOKAONAORARAARLARMARPARSATSAUDAWGAZMAZNBADBAMBANBBDBDTBECBEFBELBGLBGMBGNBGOBHDBIFBMDBNDBOBBOL

namestring
flagImagestring
isActiveboolean
exchangeRatenumber
isTransactionalboolean
displayobject
symbolstring
symbolPlacementstring

One ofLEFTRIGHT

decimalTokenstring
thousandsTokenstring
decimalPlacesnumber
isDefaultboolean

Need more? See the BigCommerce Storefront guide for connection setup and behaviour shared by every action.

Was this page helpful?
site_currency — BigCommerce Storefront — Documentation