# API Reference

URL: https://zerodev.ca/docs/kora/extensions/stores/api-reference

> The store webhook and redeem endpoints, and the API for stores, mappings, purchases and events.



The webhook and redeem endpoints are called by stores and buyers. The token in the path names the store, and each webhook is checked against the store's own signature or secret. The rest need a Kora API token with `stores.view` or `stores.edit`. Change the `host` variable in the playground to your own instance.

<APIPage
  document="stores"
  showTitle="false"
  operations="[
  { path: &#x22;/v1/stores/hooks/{token}&#x22;, method: &#x22;post&#x22; },
  { path: &#x22;/v1/stores/redeem/{token}&#x22;, method: &#x22;get&#x22; },
  { path: &#x22;/v1/stores/redeem/{token}&#x22;, method: &#x22;post&#x22; },
  { path: &#x22;/v1/stores&#x22;, method: &#x22;get&#x22; },
  { path: &#x22;/v1/stores&#x22;, method: &#x22;post&#x22; },
  { path: &#x22;/v1/stores/{id}&#x22;, method: &#x22;get&#x22; },
  { path: &#x22;/v1/stores/{id}&#x22;, method: &#x22;patch&#x22; },
  { path: &#x22;/v1/stores/{id}&#x22;, method: &#x22;delete&#x22; },
  { path: &#x22;/v1/stores/{id}/rotate&#x22;, method: &#x22;post&#x22; },
  { path: &#x22;/v1/stores/{id}/sync&#x22;, method: &#x22;post&#x22; },
  { path: &#x22;/v1/stores/providers&#x22;, method: &#x22;get&#x22; },
  { path: &#x22;/v1/stores/mappings&#x22;, method: &#x22;get&#x22; },
  { path: &#x22;/v1/stores/mappings&#x22;, method: &#x22;post&#x22; },
  { path: &#x22;/v1/stores/mappings/{id}&#x22;, method: &#x22;delete&#x22; },
  { path: &#x22;/v1/stores/purchases&#x22;, method: &#x22;get&#x22; },
  { path: &#x22;/v1/stores/events&#x22;, method: &#x22;get&#x22; }
]"
/>
