Skip to main content
Version: 1.0

Settings Introduction

The Settings API allow you to configure global settings for your project. You can define:

Page Length

This defines the number of results per page when paginating results (max: 100).

NameTypeDefaultMax
page_lengthinteger25100

For more information on pagination including a list of which resources support pagination, see Pagination.

Calculation Method

This option defines the method used to calculate cart and order totals. Currently there are two methods: simple and line.

The simple method is our previous method for calculating cart and order totals which focuses on the total value of the cart. This should only be used in the case where Composable Commerce is not used for tax calculations. The line method treats each line item individually resulting in more accurate figures after taxes and promotions are applied.

NameTypeValue
calculation_methodstringline
calculation_methodstringsimple
note
  • For stores created since February 2020, line is the default calculation method. Stores created before February 2020 use simple as their calculation method.
  • Line-item discount promotions, such as item percent discount and item fixed discount, are only supported by the line calculation method. For more information, see Promotions Standard.

Address Mandatory Fields

You can create an address to associate with an account in your storefront. This defines the address fields that you can use when creating an address in Commerce Manager. For more information, see Addresses.

Address fields can be required or optional. You can choose which optional address fields to use in your address, depending on your requirements. To change which fields are mandatory for creating an address, see Update Settings. Changing the mandatory fields does not impact the addresses of customers made before the change.

The following table describes the address fields, their type and whether they are required by default.

NameTypeRequired
typestringDefault
first_namestringDefault
last_namestringDefault
namestringOptional
phone_numberstringOptional
instructionsstringOptional
company_namestringOptional
line_1stringDefault
line_2stringOptional
citystringOptional
countystringDefault
regionstringOptional
postcodestringDefault
countrystringDefault

Readonly Settings

For internal store configurations, read-only settings are used and updating these settings fails without returning any error.

note
  • Refer to the Performance section in the Pagination documentation, which outlines patterns for retrieving all documents without using a higher page offset limit.
  • To change any predefined configuration, contact Elastic Path support team.
NameTypeDefault
currency_limitinteger10
field_limitinteger100
integration_limitinteger100
event_limitinteger5
filter_limitinteger10
tax_item_limitinteger5
promotions_limitinteger1000
promotion_codes_limitinteger1000
page_offset_limitinteger10000

Authentication

Security Scheme Type:http
HTTP Authorization Scheme:bearer

License

MIT