Get Project Settings
GEThttps://useast.api.elasticpath.com/v2/settings
You can get all of the project settings via one API call using a client_credential
token. The response is in object format as shown in the following example.
note
The default calculation_method
is line
.
Responses
- 200
- 401
- default
OK
- application/json
- Schema
- Example (auto)
Schema
data object
meta object
{
"data": {
"type": "settings",
"page_length": 25,
"list_child_products": false,
"additional_languages": [
"es",
"fr",
"de"
],
"calculation_method": "line",
"address_mandatory_fields": [
[
"first_name",
"last_name",
"line_1",
"city",
"region",
"postcode",
"country",
"instructions"
]
],
"currency_limit": 10,
"field_limit": 100,
"integration_limit": 100,
"event_limit": 5,
"filter_limit": 10,
"tax_item_limit": 5,
"promotions_limit": 1000,
"promotion_codes_limit": 1000,
"page_offset_limit": 10000
},
"meta": {
"owner": "store"
}
}
Unauthorized
- application/json
- Schema
- Example (auto)
- unauthorized-error
Schema
errors Error[]required
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
{
"errors": [
{
"title": "Unauthorized",
"status": "401"
}
]
}
Internal server error.
- application/json
- Schema
- Example (auto)
- internal-server-error
Schema
errors Error[]required
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
Internal server error
{
"errors": [
{
"title": "Internal Server Error",
"status": "500",
"detail": "there was a problem processing your request"
}
]
}
Authorization: http
name: BearerTokentype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://useast.api.elasticpath.com/v2/settings");
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());
ResponseClear