Skip to content

Purchase theme

POST/admin/v1/stores/{store_id}/online-store/theme-store/{handle}/purchase
  • themes:manage
  • Idempotency-Key supported

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.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • handlestringrequired

    Theme handle

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • priceobjectrequired

    The price the buyer saw: a different current price is refused (price_changed).

Returns

200 Bought.

Errors

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