Get store settings
GET
/store
const url = 'https://api.oletapp.com/your-store/v1/store';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.oletapp.com/your-store/v1/store \ --header 'Authorization: Bearer <token>'Readable by any valid credential: it is reference data needed to interpret every other resource. Returns store_name, domain_prefix (the prefix on every API path and the OAuth token response’s api_base_url), currency, and tax_inclusive.
Requires scope: any
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Get store settings
Media typeapplication/json
object
data
required
object
currency
required
string
domain_prefix
required
string
store_name
required
string
tax_inclusive
required
boolean
Examplegenerated
{ "data": { "currency": "example", "domain_prefix": "example", "store_name": "example", "tax_inclusive": true }}default
Section titled “default”An error response.
Media typeapplication/json
object
error
required
object
code
required
A machine-readable error code, e.g. VALIDATION_FAILED.
string
fields
Array<object>
object
field
required
string
message
required
string
message
required
A plain-English sentence describing what went wrong.
string
Example
{ "error": { "code": "UNAUTHORIZED" }}