Light Mode
Activate Currencies
POST
/currenciesLast modified: 2 months ago
This endpoint allows activating either a single currency or a group of currencies.
Request
Body Params application/json
currencies
array [object {2}]
optional
code
string
optional
Currency Code Value. For all enum values for the Currency Code, use this Endpoint.
Example:
SAR
status
boolean
optional
Status of the Currency on the Store
Default:
true
Example
{
"currencies": [
{
"code": "SAR",
"status": true
},
{
"code": "USD",
"status": false
}
]
}
Request samples
Responses
Success(200)
Error Validation(422)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 200,
"success": true,
"data": [
{
"name": "ريال سعودي",
"code": "SAR",
"symbol": "ر.س",
"status": "disabled"
},
{
"name": "درهم اماراتي",
"code": "AED",
"symbol": " د.إ",
"status": "enabled"
},
{
"name": "جنيه مصري",
"code": "EGP",
"symbol": "ج.م",
"status": "enabled"
},
{
"name": "دولار أمريكي",
"code": "USD",
"symbol": "$",
"status": "enabled"
}
]
}
Last modified: 2 months ago