ProductsCreate a product

Create a product

Creates a product for a shop.

curl -X POST "http://localhost:8080/api/products" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -d '{
  "shopee_item_id": 123,
  "name": "John Doe",
  "shop_id": 123
}'
{
  "id": 123,
  "shopee_item_id": 123,
  "name": "John Doe",
  "shop_id": 123,
  "redeem_url": "example_string",
  "boost_enabled": true
}
POST
/api/products
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

JWT access token, or refresh token for the token refresh endpoint.

JWT access token, or refresh token for the token refresh endpoint.
Content-Typestring
Required

The media type of the request body

Options: application/json
shopee_item_idinteger
Required

Shopee item identifier.

Format: int64
namestring
Required

Product name.

shop_idinteger
Required

Shop identifier.

Format: int64
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT access token, or refresh token for the token refresh endpoint.

Body

application/json
shopee_item_idinteger
Required

Shopee item identifier.

namestring
Required

Product name.

shop_idinteger
Required

Shop identifier.

Responses