platform-transfers
GET /v1/platform-transfers/platforms
Platforms we can move a store from, and the ones we can move it to.
Նույնականացում
Ուղարկեք API բանալին որպես bearer token: Բանալին պետք է ունենա billing.view թույլտվությունը. առանց դրա բանալին մերժվում է 403, և ոչ թե 404 կարգավիճակով:
Այս վերջնակետը կազմակերպության ID չի ընդունում: Ձեր բանալին արդեն իսկ նույնականացնում է այն կազմակերպությունը, որին պատկանում է, և պատասխանը սահմանափակված է դրանով:
Փորձել
Փոխարինեք անկյունային փակագծերում գտնվող ցանկացած բան ձեր սեփական արժեքներով, և բանալու տեղապահը՝ ձեր վահանակի բանալիով:
curl -X GET https://api.zinndigital.com/v1/platform-transfers/platforms \
-H "Authorization: Bearer zdk_live_…"Մուտք գործե՞լ եք: Ձեր վահանակի API վահանակը լրացնում է ձեր իրական կազմակերպության ID-ն և ձեր սեփական բանալին և գործարկում է հարցումը ուղիղ API-ի դեմ, որպեսզի կարողանաք տեսնել փաստացի պատասխանը: Բացեք այս վերջնակետը 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[] | Այո | — |
Այս վերջնակետի կողմից վերադարձվող սխալները
401 · 403 · 429