Update Settings

You can use the Settings endpoint to update your project settings at any time. These global settings take immediate effect.

put
Update project settings

https://api.moltin.com/v2/settings
Request
Response
Headers
Authorization
required
string
The Bearer token to grant access to the API
Body Parameters
calcuation_method
optional
string
The method used to calculate card and order totals
additional_languages
optional
array
An array of alpha2 codes for supported languages
list_child_products
optional
boolean
Display child products or not in product listings
page_length
optional
integer
Number of results per page (max: 100)
type
required
string
This describes the type of request payload you're sending
200: OK
{
"data": {
"type": "settings",
"page_length": 70,
"list_child_products": true,
"additional_languages": ["es", "fr", "de"],
"calculation_method": "simple"
}
}
cURL
curl -X PUT https://api.moltin.com/v2/settings \
-H "Authorization: Bearer XXXX" \
-H "Content-Type: application/json" \
-d $'{
"data": {
"type": "settings",
"page_length": 70,
"list_child_products": false,
"additional_languages": ["es","fr","de"],
"calculation_method": "simple"
}
}'