Locales > Currencies > currenciesCreate
Commerce APILocalesCurrenciescurrenciesCreate
currenciesCreate
POST:currencies.json

Description

Create shop currencies.

Permission bit: "currencies.create"

Topic: Currencies

Arguments

data: [CurrencyCreate!]!

Main argument for mutations.


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

conversion_fee: Float

Additional fee to add when converting to and from this currency (in percents)

Example: 5.5

Valid when: conversion_fee is valid percentage, i.e.: 0 ≤ conversion_fee ≤ 100


currency: String!

Currency code

Example: "USD"


custom_exchange_rate: Float

Custom exchange rate to use when converting from primary to this currency

Example: 5.1231237

Valid when: custom_exchange_rate is a non-negative float


enabled: Boolean

Whether it's allowed to place orders in this currency

Example: false


format: CurrencyFormatCreate

Currency formatting options


Result

[Currency!]

Preview (typescript)

Loading module