انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

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.

الأخطاء

  • 404not_foundNo such theme in the Theme Store.
  • 409Free (theme_free), owned already (theme_owned), or its price changed (price_changed).