Skip to main content

Get Cart Settings

GET 

https://useast.api.elasticpath.com/v2/settings/cart

Retrieves cart settings

Responses

OK

Schema
    data object
    typestringrequired

    Describes the type of request payload you’re sending. Set this value to settings.

    Example: settings
    cart_expiry_daysinteger

    Indicates the number of days before a cart expires.

    Example: 25
    discounts object
    custom_discounts_enabledboolean

    When true, custom discounts are enabled. Default is false. This setting only affects the new empty carts while the existing active carts will not be affected.

    Example: false
    use_rule_promotionsboolean

    When set to true, this parameter allows the cart to use rule promotions.

    Example: false
    inventories object
    defer_inventory_checkboolean

    When true, inventory checks are not performed when adding products to a cart but still occur on checkout as normal. Default is false. This setting only affects the new empty carts while the existing active carts will not be affected.

    Example: false

Authorization: http

name: BearerTokentype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://useast.api.elasticpath.com/v2/settings/cart");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://useast.api.elasticpath.com
Auth
ResponseClear

Click the Send API Request button above and see the response here!

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.