Skip to main content

/settings

Overview

Retrieves the current business configuration: branding URLs, feature flags, payment settings, tier configuration, and the default accumulation rate. No member lookup is performed; only standard authentication headers are required.

When to Use This Endpoint

Use this endpoint to:

  • Retrieve business configuration at startup or when settings change
  • Display business-specific branding and URLs to customers
  • Access tier and payment settings for transaction processing
  • Fetch active location list for multi-branch operations
  • Retrieve registration form field configuration

Key Considerations

  • Settings are cached by the business; changes may take a few minutes to propagate
  • The locationList is only included when includeLocations: true is passed
  • The registrationFormFields are only included when includeRegFormFields: true is passed
  • All URLs must be validated and may contain trailing slashes

Request Details

Method & URL

POST /settings

See API Servers for the base URL to use in place of {{server}}.

Headers

HeaderTypeRequiredDescription
x-api-keystringYesBusiness API key
x-source-typestringYesSource type (e.g., POS, KIOSK)
x-source-namestringYesSource name (e.g., MyPOS)
x-pos-idstringYesPOS terminal identifier
x-branch-idstringYesBranch identifier

Request Body

FieldTypeRequiredDefaultDescription
includeLocationsbooleanNofalseWhen true, includes the full active location list
includeRegFormFieldsbooleanNofalseWhen true, includes the registration form field configuration

Request Example

{
"includeLocations": true,
"includeRegFormFields": false
}

cURL Example

curl --location --request POST 'https://{{server}}/v1/settings' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: {{api-key}}' \
--header 'X-Source-Type: POS' \
--header 'X-Source-Name: MyPOS' \
--header 'X-Pos-Id: POS001' \
--header 'X-Branch-Id: BR001' \
--data-raw '{
"includeLocations": true,
"includeRegFormFields": false
}'

Success Response

200 OK

{
"status": "active",
"id": "business-id",
"name": "My Business",
"businessPlan": "Custom",
"activeLocations": 3,
"mainURL": "https://example.com",
"fallbackURL": "https://fallback.example.com",
"settings": {
"timezone": "Europe/Istanbul",
"currency": "TRY",
"termsLink": "https://example.com/terms",
"GDPRLink": "https://example.com/gdpr",
"logoURL": "https://example.com/logo.png",
"faviconURL": "https://example.com/favicon.ico",
"allowedIdentifiers": [
"phoneNumber",
"email",
"appClientId",
"cardNumber",
"commonExtId",
"customIdentifier"
],
"autoRegistration": false,
"paymentSettings": {
"paymentWallet": "credits",
"paymentMethod": "meanOfPayment",
"paymentRate": 1
},
"defaultAccumulationRate": {
"rate": 0.05,
"percentage": 5
},
"tierSettings": {}
},
"locationList": [
{
"status": "active",
"branchId": "BRANCH-01",
"name": "BRANCH-01"
}
]
}

Response Fields

FieldTypeDescription
statusstringStatus of the business (e.g., active or pipeline)
idstringBusiness ID
namestringBusiness display name
businessPlanstringSubscription plan name; defaults to "Custom"
activeLocationsnumberCount of active locations
mainURLstringPrimary business URL
fallbackURLstringFallback URL
settings.timezonestringIANA timezone (e.g., Europe/Istanbul)
settings.currencystringCurrency code (e.g., TRY, EUR)
settings.termsLinkstringURL to terms of use
settings.GDPRLinkstringURL to GDPR policy
settings.logoURLstringBusiness logo URL
settings.faviconURLstringFavicon URL
settings.allowedIdentifiersstring[]Member identifier types accepted by this business
settings.autoRegistrationbooleanWhether auto-registration on first purchase is enabled
settings.paymentSettings.paymentWalletstringcredits or points
settings.paymentSettings.paymentMethodstringe.g., meanOfPayment
settings.paymentSettings.paymentRatenumberPayment rate multiplier
settings.defaultAccumulationRateobject(Conditional) Present only when accumulationRuleId is configured
settings.defaultAccumulationRate.ratenumberRate as a decimal (e.g., 0.05 = 5%)
settings.defaultAccumulationRate.percentagenumberRate as a whole percentage (e.g., 5)
settings.tierSettingsobject(Conditional) Present only when tier feature is enabled
locationListarray(Conditional) Present only when includeLocations: true
locationList[].statusstringLocation status
locationList[].branchIdstringBranch identifier
locationList[].namestringBranch display name
registrationFormFieldsarray(Conditional) Present only when includeRegFormFields: true
info

The following fields are conditionally present in the response:

  • settings.defaultAccumulationRate — Only included when an accumulation rule is configured for the business
  • settings.tierSettings — Only included when tier features are enabled and tiers are configured
  • locationList — Only included when includeLocations: true
  • registrationFormFields — Only included when includeRegFormFields: true

Error Response Examples

Missing API Key

{
"status": "error",
"error": {
"code": "101",
"message": "X-Api-Key is required"
}
}

Business Not Found

{
"status": "error",
"error": {
"code": "001",
"message": "Business not found for the given API key"
}
}

Missing Required Header

{
"status": "error",
"error": {
"code": "102",
"message": "X-Source-Type is required"
}
}

Error Codes

HTTP StatusCodeDescription
400001Business not found for the given API key
400101Missing X-Api-Key header
400102Missing X-Source-Type header
400103Missing X-Source-Name header
400104Missing X-Pos-Id header
400105Missing X-Branch-Id header

Field Reference

FieldTypeDescription
timezonestringIANA timezone identifier (e.g., Europe/Istanbul, America/New_York)
currencystringISO 4217 currency code (e.g., TRY, EUR, USD)
paymentWalletstringPayment asset type: credits or points
paymentRatenumberMultiplier for payment calculations
defaultAccumulationRateobjectDefault rate configuration for earning loyalty currency
allowedIdentifiersstring[]List of member identifier fields accepted by the business
autoRegistrationbooleanFlag for automatic member registration on first purchase
  • Initializing POS systems with business configuration at startup
  • Displaying business branding and URLs in customer-facing interfaces
  • Fetching location list for multi-branch checkout workflows
  • Retrieving payment and accumulation settings for transaction processing
  • Building dynamic registration forms with business-specific fields
  • Displaying terms and GDPR links to customers before registration