لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Purchase theme
POST
/ admin/ v1/ stores/ {store_id}/ online-store/ theme-store/ {handle}/ purchase- themes:manage
- يدعم Idempotency-Key
Buy a paid theme: a one-time charge on the store's next platform invoice. The store owns it from then on (adding and duplicating it again is free). ; staff only.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.handlestringمطلوبTheme handle
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
priceobjectمطلوبThe price the buyer saw: a different current price is refused (
price_changed).
ما يُرجعه
200 Bought.
الأخطاء
- 404
not_foundNo such theme in the Theme Store. - 409Free (
theme_free), owned already (theme_owned), or its price changed (price_changed).