S5ARC Documentation

Create Product

POST
/api/v1/products/

Authorization

x-api-key
X-API-Key<token>

API Key required for authentication.

In: header

Request Body

application/json

name*string
Length2 <= length <= 100
slug*string
Length2 <= length <= 100
description*string
Length10 <= length <= 1000
price*number
compare_at?number
stock?number
sku?string
images*array<|||>
Items1 <= items <= 6
is_published?boolean
Defaultfalse

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://www.s5arc.store/api/v1/products/" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "slug": "string",    "description": "stringstri",    "price": 0,    "images": [      "string"    ]  }'
{
  "message": "string",
  "id": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}