Merchant API: retrieve your tenant's settings and tax number
About this article
This article explains how to retrieve your ChannelEngine tenant settings, VAT/sales tax numbers, and tax rates via the Merchant API using the GET /v2/settings endpoint, what each field in the response means, and how to handle common integration issues.
Table of contents
Introduction
Your integration needs to know how your ChannelEngine account (also called your tenant) is configured, including your currency, default shipment methods, VAT/sales tax numbers and rates, and the order and stock rules that apply. Instead of copying these values manually, retrieve them directly from the settings endpoint.
Common use cases for GET /v2/settings include:
- Set up a new integration: read your account currency, default language, and VAT rates once instead of hard-coding them.
- Calculate prices and VAT: use your VAT rates per country and default VAT rate to convert prices with VAT into prices without VAT, and vice versa.
- Match your shipping logic: verify which shipment methods ChannelEngine uses by default so your warehouse or ERP system aligns with them.
-
Check stock management ownership: inspect
ManageStockbefore pushing stock updates to ChannelEngine to check whether stock is managed by you/your merchant system or ChannelEngine. - Monitor configuration changes: poll the settings endpoint on a schedule to detect when an account setting changes from what your integration expects.
Overview
Refer to the flowchart below to visualize how tenant settings and VAT details travel between ChannelEngine and your integration.
Requirements
To retrieve your tenant settings via the Merchant API, you need:
- An active ChannelEngine account.
- A Merchant API key sent in the
X-CE-KEYrequest header.
Available API endpoints
The Merchant API provides one read-only endpoint to retrieve your base tenant configuration.
-
Retrieve tenant settings:
GET /v2/settings
Use this endpoint to retrieve your account details, default shipment settings, advanced stock and order settings, and registered VAT numbers and rates per country.
This endpoint is read-only. You cannot modify settings through the API; manage them via the ChannelEngine web interface at Settings from the sidebar menu.
Endpoint: retrieve tenant settings
Call GET /v2/settings to retrieve the full configuration for your tenant. This endpoint takes no query parameters and no request body. A successful request returns HTTP 200.
Request
Include your Merchant API key in the X-CE-KEY header:
GET https://{your-environment}.channelengine.net/api/v2/settings
X-CE-KEY: your-merchant-api-keyResponse
A successful call returns a JSON payload containing general account details, Settings.Shipment, Settings.Advanced, and the Vat array:
{
"Content": {
"Name": "Example Store",
"CompanyName": "Example Store B.V.",
"CurrencyCode": "EUR",
"DefaultCultureCode": "nl-NL",
"Settings": {
"Shipment": {
"DefaultTrackedShipmentMethod": "PostNL",
"DefaultUntrackedShipmentMethod": "Letter",
"AutomaticallySetShipmentMethodAfterMinutes": 60
},
"Advanced": {
"ManageStock": true,
"DisableStockReservation": false,
"DisableAddressValidation": false,
"SkipHouseNumberValidation": false,
"SkipHouseNumberValidationForCountryCodes": [],
"SetOrdersToClosedOnImport": false,
"DisableAutoOrderCancellation": false,
"AutomaticallySetPhoneNumberIfEmpty": null,
"DefaultVatRate": 21.0,
"OrderTooLongOnNewHoursOffset": 24
}
},
"Vat": [
{
"CountryIso": "NL",
"No": "NL123456789B01",
"StandardRate": 21.0,
"ReducedRate": 9.0,
"SuperReducedRate": null
}
]
},
"StatusCode": 200,
"Success": true
}
Several fields in the response can return null when no value is configured in your account. Ensure your integration handles null values gracefully.
General details
The top-level properties inside Content describe your tenant identity and regional defaults.
Top-level fields
| Field | Description |
Name |
The name of your ChannelEngine account. |
CompanyName |
Your registered company name. |
CurrencyCode |
Your account currency in ISO format, such as EUR. |
DefaultCultureCode |
Your default language and region code, such as nl-NL. |
Shipment settings
The Settings.Shipment object defines your default carrier and shipment method configuration.
Shipment settings fields
| Field | Description |
DefaultTrackedShipmentMethod |
The default shipment method used for shipments with tracking. |
DefaultUntrackedShipmentMethod |
The default shipment method used for shipments without tracking. |
AutomaticallySetShipmentMethodAfterMinutes |
The number of minutes after which ChannelEngine automatically assigns a shipment method. Can be null. |
Advanced settings
The Settings.Advanced object exposes account-level switches and thresholds for stock, orders, address validation, and VAT.
Advanced settings fields
| Field | Type | Description |
ManageStock |
boolean | Indicates whether stock is managed on ChannelEngine. |
DisableStockReservation |
boolean | Indicates whether stock reservation for incoming orders is disabled. |
DisableAddressValidation |
boolean | Indicates whether address validation is disabled. |
SkipHouseNumberValidation |
boolean | Indicates whether house number validation is skipped during address checks. |
SkipHouseNumberValidationForCountryCodes |
array | The list of ISO country codes for which house number validation is skipped. |
SetOrdersToClosedOnImport |
boolean | Indicates whether imported orders are immediately set to the Closed status. |
DisableAutoOrderCancellation |
boolean | Indicates whether automatic order cancellation is disabled. |
AutomaticallySetPhoneNumberIfEmpty |
string | The fallback phone number ChannelEngine populates when an order does not include one. Can be null. |
DefaultVatRate |
decimal | The default VAT percentage applied to your account. |
OrderTooLongOnNewHoursOffset |
integer | The number of hours an order can remain in the New status before ChannelEngine flags it as overdue. |
VAT settings
The Vat array contains one object per country configured in your VAT rate setup, including your tax registration number (No) and applicable rates.
VAT array fields
| Field | Description |
CountryIso |
The two-letter ISO country code, such as NL. |
No |
Your registered VAT or tax number for that country. |
StandardRate |
The standard VAT rate percentage in that country. |
ReducedRate |
The reduced VAT rate percentage. Returns null if not applicable. |
SuperReducedRate |
The super reduced VAT rate percentage. Returns null if not applicable. |
The Vat array includes only entries from your standard VAT rate setup. Custom VAT rates are not returned by GET /v2/settings.
Common issues
| Issue | Likely cause | Resolution |
The request is refused with HTTP 401 or 403
|
The API key is missing, invalid, or belongs to a different ChannelEngine environment. | Send a valid Merchant API key in the X-CE-KEY header and verify that the request targets the matching environment URL. |
| Returned values differ from what you expect | You are authenticating with an API key from another account or test environment. | Verify which ChannelEngine tenant the API key belongs to. |
A field returns null
|
No value is configured for that setting in your account. | Update your integration to accept null values, or configure the setting on ChannelEngine at Settings. |
| A VAT number or rate is missing for a country | No VAT entry exists for that country in your VAT setup, or the rate is a custom VAT rate. | Add the country's VAT details in ChannelEngine at Settings, VAT rate settings, then call GET /v2/settings again. |
| Updating settings via the API fails | The settings endpoint supports only GET requests. |
Update account settings directly on ChannelEngine at Settings. |
If the issue persists, contact ChannelEngine Support and include the RequestId or LogId from the API response so the team can trace your request.
Comments
0 comments
Article is closed for comments.