Update Settings

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

Update project settings

PUT https://api.moltin.com/v2/settings

Headers

NameTypeDescription

Authorization

string

The Bearer token to grant access to the API

Request Body

NameTypeDescription

calcuation_method

string

The method used to calculate card and order totals

additional_languages

array

An array of alpha2 codes for supported languages

list_child_products

boolean

Display child products or not in product listings

page_length

integer

Number of results per page (max: 100)

type

string

This describes the type of request payload you're sending

{
    "data": {
        "type": "settings",
        "page_length": 70,
        "list_child_products": true,
        "additional_languages": ["es", "fr", "de"],
        "calculation_method": "simple"
    }
}
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"
       }
     }'

Last updated