---
title: "Create Reward Store"
method: POST
path: "/{client_id}/reward-stores/"
---

# Create Reward Store

`POST /{client_id}/reward-stores/`

## Request

- Base URL: `https://cf-blast.livelikecdn.com/api/v1/applications`
- URL: `https://cf-blast.livelikecdn.com/api/v1/applications/{client_id}/reward-stores/`
- Auth: API key in header `Authorization`

Creates a reward store in an application. It is always created in the `draft` state, so it is not published until you call Publish Reward Store. Requires a producer access token for the application.

A store can have at most one reward item, and it must belong to this application. A store can't be published without one. Sponsors, if you send any, must also belong to this application.

## Path parameters

- `client_id` string, required

## Request body

- object
  - `name` string, required: Name of the reward store. Max 255 characters.
  - `reward_item_ids` string[]: The reward item that products in the store are priced in. At most one, and it must belong to this application.
  - `sponsor_ids` string[]: Sponsors to attach to the store. Each must belong to this application.
  - `custom_data` string: Free text, for example serialized JSON.
  - `attributes` object[]: Key and value pairs. Both key and value are required. The same key can repeat with different values, but an identical key and value pair twice is rejected.
    - `key` string
    - `value` string

## Response `201`

Created. The store is returned in the draft state.

- object
  - `id` string, uuid
  - `name` string
  - `state` string
  - `is_active` boolean
  - `custom_data` string, nullable

## Other responses

- `400`: Validation error.

---

[API](https://skmtc.dev/livelike/apis/applications.md) - [All operations](https://skmtc.dev/livelike/apis/applications/llms.txt) - [OpenAPI document](https://skmtc.dev/livelike/apis/applications/revisions/841be2451373?raw)
