Update a Currency
PUT/v2/currencies/:currencyID
This endpoint is for Administrator use only. Do not use this endpoint on your customer-facing frontends.
Request
Path Parameters
The ID for the requested currency.
- application/json
Body
data object
Specifies whether this is the default currency or not. Either true
or false
.
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object[]
The unique identifier for this currency.
Represents the type represents the object being returned.
Specifies the currency code. For example, YEN.
Specifies the exchange rate from the default currency.
Specifies how the price currency is displayed. For example, "£{price}".
Indicates the decimal point character.
Indicates the thousand separator character.
Indicates how many decimal places the currency is formatted to.
Specifies whether this is the default currency or not. Either true
or false
.
Specifies if this currency is available for products. Either true
or false
.
links object
Specifies the URL of this currency.
meta object
timestamps object
Indicates the creation date of this currency.
Indicates the updated date of this currency.
Indicates whether the owner is store or org.
{
"data": [
{
"id": "0c45e4ec-26e0-4043-86e4-c15b9cf985a0",
"type": "currency",
"code": "GBP",
"exchange_rate": 1,
"format": "£{price}",
"decimal_point": ".",
"thousand_separator": ",",
"decimal_places": 2,
"default": true,
"enabled": true,
"links": {
"self": "string"
},
"meta": {
"timestamps": {
"created_at": "2023-11-07T23:04:18.845Z",
"updated_at": "2023-11-07T23:04:18.845Z"
},
"owner": "store"
}
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
[
null
]
{
"errors": {
"status": 401,
"title": "Unauthorized"
}
}