Paloma API Docs
Updated: 27.01.2020 10:00
Welcome to the Paloma Shop API Docs. Paloma is a digital commerce platform featuring a headless web shop API.
Headless web shops allow decoupling of the user interface (the web shop front-end) from back-end processes and business logic.
To access the Paloma API you need two things:
- The API base URL for your Paloma environment
- An API key
If you are missing one of those, contact us.
Once you have your API key, you can access the API by sending it with each request in the
GET https://example.paloma.one/api/... x-api-key: 1DDqL4L2KWNsusY3feGfcedGyaYt89iN
You can operate multiple web shops via the same Paloma environment by using channels. Each channel can have its own catalog (products and categories), prices, languages, shipping methods and payment settings.
For example, there can be separate channels for B2C and B2B or a channel for each country or region.
For this reason most of the API endpoints come with a
channel parameter. Your web shop front-end needs to know which channel to access, e.g. via configuration or by using a URL property (domain name, path segment).
All API endpoints that return content (localized data) come with a
locale parameter (in the form
[language]_[country], for example de_CH or en_US). You can pass any valid locale (usually the current UI locale) and Paloma will deliver the most fitting content for this locale.
For example, if you pass "de_CH" as locale but Paloma only has content for "de", it will return content for "de". Or if you pass "de" as locale but Paloma only has content for "en", it will return content for "en".
Most API endpoints that return content accept a special
x-paloma-jq header for manipulating the response before it's sent to the client.
Its main use-case is to remove unnecessary content from the response, reducing the time it takes to transfer the requested payload. When using API endpoints that provide a lot of data, like product searches, cutting down on transfer size may greatly improve the user experience.