People often confuse "XML integration" and "API integration". They are different: XML is a data format, while an API is an interface systems use to exchange data.
XML
A structured format for storing/transporting data (e.g. a product list). Not a connection by itself.
API
An interface where you send requests and get responses in real time. See what is API integration.
Which in marketplaces?
Marketplaces usually offer both an XML catalog and an API; good integrations use both. See Trendyol.
When is XML enough, and when is an API required?
| Need | Right method | Why |
|---|---|---|
| Sharing a product catalogue once a day | XML | Simple and cheap for bulk data |
| Keeping stock counts current | API | File-based flows lag and cause overselling |
| Pulling orders immediately | API | Orders cannot wait for the next file |
| Receiving a supplier price list | XML | The source often offers nothing else |
| Issuing invoices, handling refunds | API | Requires confirmation and error responses |
A practical rule: if the data sits still, use XML; if it happens, use an API. A catalogue sits; an order happens.
What XML catalogues cause in practice
- Staleness: if the file is read hourly, stock data can be an hour old at worst.
- Full refresh cost: most XML feeds carry the entire catalogue every time — wasteful at thousands of products.
- One bad line breaks everything: a stray character or unclosed tag can invalidate that entire update run.
- Silent failure: when the file is unreachable, systems usually keep serving old data and nobody notices.
So XML feeds need monitoring too: the time of the last successful read must be visible somewhere.
What an API obliges you to do
An API is real-time but not free. Credentials must be stored safely, requests queued so they do not hit rate limits, failures placed in a retry queue, and the integration updated when the interface version changes. “We connected the API” also means taking on that maintenance.
How the two work together on a marketplace
A typical setup: the catalogue is uploaded in bulk at the start (often as XML or a file transfer), and from then on stock, price and order movements run over the API. XML is the tool of the setup phase; the API is the tool of daily operation. See our marketplace integration article for detail.
Summary
See system integration & API or contact us.