platform-transfers
GET /v1/platform-transfers/platforms
Platforms we can move a store from, and the ones we can move it to.
Упълномощаване
Изпратете API ключ като токен за носене. Ключът трябва да притежава разрешението billing.view; ключ без него се отхвърля с 403, а не с 404.
Този ендпойнт не изисква идентификатор на организация. Вашият ключ вече идентифицира организацията, към която принадлежи, и отговорът е ограничен до нея.
Опитайте
Заменете всичко в квадратни скоби със собствени стойности, а ключовия заместващ символ – с ключ от вашето табло за управление.
curl -X GET https://api.zinndigital.com/v1/platform-transfers/platforms \
-H "Authorization: Bearer zdk_live_…"Влязохте ли в профила си? API конзолата във вашето табло за управление попълва действителното идентификационно число на вашата организация и вашия собствен ключ и изпълнява заявката спрямо реалното API, за да можете да видите действителния отговор. Отворете този крайpoint в API конзолата
Детайли
Everything the transfer selector is built from, in one response: the source platforms grouped for display, the target platforms, and the three priced tiers. Requires `billing.view`. **`targets` is a strict subset of `sources`, and deliberately so.** A platform can be a target only when we can host it, so self-hosted PHP/Node stacks (WooCommerce, Magento, PrestaShop, …) appear in both lists while hosted SaaS platforms (Shopify, Wix, Squarespace, …) appear only as sources. Nobody but their owner can run those, so we cannot promise a result on them. Tier prices are in the caller's currency, converted from the cached FX rates by the same function the charge captures — so the price on the selector is the price at the till. Send `X-Zinn-Currency` to choose.
Отговор
| Име | Тип | Задължително | Какво представлява |
|---|---|---|---|
sources | TransferPlatformGroup[] | Да | — |
targets | TransferPlatformGroup[] | Да | — |
tiers | TransferTier[] | Да | — |
Грешки, които този крайpoint може да върне
401 · 403 · 429