Skip to main content
All CollectionsGraphQL
Adding a new default currency
Adding a new default currency

Need a currency that isn't in ION? You can add one using these steps!

Andy Weir avatar
Written by Andy Weir
Updated over 2 years ago

Step 1: Go to the GraphQL interface by clicking the GraphQL button highlighted below.

Step 2: You'll be met with a screen that looks like the below:

Step 3: Delete everything in the top left box, and paste the following in its place. Make sure to copy the { and } brackets!:

mutation CreateCurrency($input:CreateCurrencyInput!)
{
createCurrency(input:$input)
{
currency
{
id
type
}
}
}

Step 4: In the Query Variables, paste this text, where xxxx is the currency you want to add -- and make sure to keep the quotes and brackets!:

 {

"input": { "type": "xxxx"

}
}

It should look like this:

Step 5: Run the script by pressing the "Play" button at the top of the page. You will get this below message on the right side. The message means that your currency has been successfully created!

If you get a message like the below, make sure you have copied all of the text from each section!

Did this answer your question?