Which API for what
SOAP, GraphQL and webhooks compared
| Topic | SOAP API | GraphQL API | Webhooks |
|---|---|---|---|
| Status | Established | In development, public and experimental endpoints | Released |
| Access | API user (staff member) | OAuth2 client, 24-hour token | One secret per shop |
| Switched on under | Indstillinger > API: SOAP | Indstillinger > API | Indstillinger > Webhooks |
| Address | api.hostedshop.io/service.wsdl | shopXXXXX.mywebshop.io/api/graphql | Your own HTTPS URL |
| Products | Read, create, update, delete | In development | Created, updated, deleted |
| Orders | Yes | Partly, experimental | Six order events |
SOAP: the safe route today
The SOAP API is version 1.2, document/literal wrapped, with the WSDL at https://api.hostedshop.io/service.wsdl and docs at api.hostedshop.io/doc/. Access is off until someone ticks Indstillinger > API: SOAP; then a staff user with API access is created, whose e-mail is the user name and may be fictitious. Note the old host: api.smartweb.dk forwards to api.smart-web.dk, while Dandomain’s help now points to hostedshop.io. Call volume depends on the plan: Success has unlimited calls, and Dandomain mentions up to 50,000 a day otherwise.
GraphQL: token and first call
Create an API client under Indstillinger > API. The client never expires, but the access token lasts 24 hours. Fetch it with client ID and secret and send it as Authorization: Bearer ….
# 1) Get a token (valid 24 hours). Replace shop12345 with your shop number.
TOKEN=$(curl -s -X POST https://shop12345.mywebshop.io/auth/oauth/token \
-d "grant_type=client_credentials&client_id=$CLIENT_ID&client_secret=$CLIENT_SECRET&scope=" \
| python3 -c "import sys, json; print(json.load(sys.stdin)['access_token'])")
# 2) Ask for order IDs
curl -s https://shop12345.mywebshop.io/api/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
--data '{"query":"query { orders { data { id languageISO siteId } } }"}'
The limit is 5 calls a second (300 a minute) and 30 seconds per call; big runs are best placed between 00:59 and 04:59. A failed mutation rolls back the whole request. Per Dandomain’s roadmap, redirects, domains, currencies, categories, gift cards and discount codes are public; languages, pages, users, delivery countries and orders are experimental; products and variants are still in development – so product sync today means SOAP.
Webhooks: being told when things happen
Under Indstillinger > Webhooks > Opret webhook you pick a name, event and address. There are six order events (orders/created, updated, fulfilled, partially-fulfilled, invoice, cancelled) and three for products. The message holds only the ID, so the receiver fetches the rest via the API. Each message is signed with the shop secret behind the Token button, and the signature sits in the X-Hmac-Sha256 header as Base64.
# Receive a shop webhook and verify its signature (Flask)
import base64, hashlib, hmac, os
from flask import Flask, request, abort
app = Flask(__name__)
SECRET = os.environ["SHOP_WEBHOOK_SECRET"].encode() # from the "Token" button
@app.post("/webhooks/shop")
def shop_webhook():
body = request.get_data() # raw bytes, not parsed JSON
expected = base64.b64encode(hmac.new(SECRET, body, hashlib.sha256).digest()).decode()
if not hmac.compare_digest(expected, request.headers.get("X-Hmac-Sha256", "")):
abort(401)
topic = request.headers.get("X-Webhook-Topic") # e.g. orders/created
order_id = request.get_json()["id"]
queue_for_later(topic, order_id) # store first, work later
return "", 200 # within 5 seconds
The shop waits at most 5 seconds, follows no redirects and retries an hour after a failure; after nine failures in a day it stops. So the receiver stores the message and answers at once. We built the same signature check in our MobilePay test environment, which passed 16 of 16 live tests, and learned that every changing call needs an idempotency key so a repeated message does not act twice.
Where messages land
We land webhooks in n8n, which we run in two instances with daily workflow backups and hourly checks; from there an order can go to stock, accounting or CRM. When several systems talk to the shop, we prefer one fixed contract with few endpoints over a connector per system – a pattern we have run in production in our telephony product since September 2026. Price feeds for Google Shopping and PriceRunner are edited in a Smarty editor and update in real time, but Dandomain does not support custom code. Automation in general: automation.best-choice.dk; system links: integration.best-choice.dk.
API and webhooks
SOAP or GraphQL?
For products today, SOAP – products in GraphQL are still in development. For redirects, discount codes and gift cards, GraphQL works.
Why does our integration stop after a day?
The GraphQL token expires after 24 hours; the integration must fetch a new one with client ID and secret.
Can the webhook carry the whole order?
No, only the ID. Fetch the rest via the API.
Sources
- Dandomain – API development (SOAP) — checked 01.12.2026
- Dandomain – GraphQL, authentication, rate limits, roadmap — checked 01.12.2026
- Dandomain – webhooks — checked 01.12.2026
- Dandomain – price feeds — checked 01.12.2026
- api.smartweb.dk — redirect read on 01.12.2026
Fixed price, no commitment
Get a free SmartWeb check and a fixed price
Tell us briefly what you use today and what you want to achieve. A person answers by e-mail with a proposal and a fixed price before any work starts.
- A fixed price before we start
- An answer by e-mail, no calls
- Your details are used only to answer you