Create product (Admin only)
curl --request POST \
--url https://asikodevapi.candourit.io/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Premium Basmati Rice 5kg",
"slug": "premium-basmati-rice-5kg",
"description": "Long-grain aromatic basmati rice, perfect for jollof rice and other West African dishes.",
"retailPrice": 24.99,
"sku": "RICE-BAS-5KG",
"tradePrice": 19.99,
"currency": "NGN",
"stockLevel": 150,
"categoryId": null,
"brandId": null,
"packSize": "5kg",
"images": [
"https://cdn.asikofoods.com/products/basmati-rice-1.jpg"
],
"tags": [
"rice",
"staple",
"bulk"
],
"dietaryTags": [
"GLUTEN_FREE",
"VEGAN"
],
"salePrice": 21.99,
"saleStartsAt": "2026-08-01T00:00:00.000Z",
"saleEndsAt": "2026-08-15T23:59:59.000Z"
}
'import requests
url = "https://asikodevapi.candourit.io/v1/products"
payload = {
"name": "Premium Basmati Rice 5kg",
"slug": "premium-basmati-rice-5kg",
"description": "Long-grain aromatic basmati rice, perfect for jollof rice and other West African dishes.",
"retailPrice": 24.99,
"sku": "RICE-BAS-5KG",
"tradePrice": 19.99,
"currency": "NGN",
"stockLevel": 150,
"categoryId": None,
"brandId": None,
"packSize": "5kg",
"images": ["https://cdn.asikofoods.com/products/basmati-rice-1.jpg"],
"tags": ["rice", "staple", "bulk"],
"dietaryTags": ["GLUTEN_FREE", "VEGAN"],
"salePrice": 21.99,
"saleStartsAt": "2026-08-01T00:00:00.000Z",
"saleEndsAt": "2026-08-15T23:59:59.000Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Premium Basmati Rice 5kg',
slug: 'premium-basmati-rice-5kg',
description: 'Long-grain aromatic basmati rice, perfect for jollof rice and other West African dishes.',
retailPrice: 24.99,
sku: 'RICE-BAS-5KG',
tradePrice: 19.99,
currency: 'NGN',
stockLevel: 150,
categoryId: null,
brandId: null,
packSize: '5kg',
images: ['https://cdn.asikofoods.com/products/basmati-rice-1.jpg'],
tags: ['rice', 'staple', 'bulk'],
dietaryTags: ['GLUTEN_FREE', 'VEGAN'],
salePrice: 21.99,
saleStartsAt: '2026-08-01T00:00:00.000Z',
saleEndsAt: '2026-08-15T23:59:59.000Z'
})
};
fetch('https://asikodevapi.candourit.io/v1/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://asikodevapi.candourit.io/v1/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Premium Basmati Rice 5kg',
'slug' => 'premium-basmati-rice-5kg',
'description' => 'Long-grain aromatic basmati rice, perfect for jollof rice and other West African dishes.',
'retailPrice' => 24.99,
'sku' => 'RICE-BAS-5KG',
'tradePrice' => 19.99,
'currency' => 'NGN',
'stockLevel' => 150,
'categoryId' => null,
'brandId' => null,
'packSize' => '5kg',
'images' => [
'https://cdn.asikofoods.com/products/basmati-rice-1.jpg'
],
'tags' => [
'rice',
'staple',
'bulk'
],
'dietaryTags' => [
'GLUTEN_FREE',
'VEGAN'
],
'salePrice' => 21.99,
'saleStartsAt' => '2026-08-01T00:00:00.000Z',
'saleEndsAt' => '2026-08-15T23:59:59.000Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://asikodevapi.candourit.io/v1/products"
payload := strings.NewReader("{\n \"name\": \"Premium Basmati Rice 5kg\",\n \"slug\": \"premium-basmati-rice-5kg\",\n \"description\": \"Long-grain aromatic basmati rice, perfect for jollof rice and other West African dishes.\",\n \"retailPrice\": 24.99,\n \"sku\": \"RICE-BAS-5KG\",\n \"tradePrice\": 19.99,\n \"currency\": \"NGN\",\n \"stockLevel\": 150,\n \"categoryId\": null,\n \"brandId\": null,\n \"packSize\": \"5kg\",\n \"images\": [\n \"https://cdn.asikofoods.com/products/basmati-rice-1.jpg\"\n ],\n \"tags\": [\n \"rice\",\n \"staple\",\n \"bulk\"\n ],\n \"dietaryTags\": [\n \"GLUTEN_FREE\",\n \"VEGAN\"\n ],\n \"salePrice\": 21.99,\n \"saleStartsAt\": \"2026-08-01T00:00:00.000Z\",\n \"saleEndsAt\": \"2026-08-15T23:59:59.000Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://asikodevapi.candourit.io/v1/products")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Premium Basmati Rice 5kg\",\n \"slug\": \"premium-basmati-rice-5kg\",\n \"description\": \"Long-grain aromatic basmati rice, perfect for jollof rice and other West African dishes.\",\n \"retailPrice\": 24.99,\n \"sku\": \"RICE-BAS-5KG\",\n \"tradePrice\": 19.99,\n \"currency\": \"NGN\",\n \"stockLevel\": 150,\n \"categoryId\": null,\n \"brandId\": null,\n \"packSize\": \"5kg\",\n \"images\": [\n \"https://cdn.asikofoods.com/products/basmati-rice-1.jpg\"\n ],\n \"tags\": [\n \"rice\",\n \"staple\",\n \"bulk\"\n ],\n \"dietaryTags\": [\n \"GLUTEN_FREE\",\n \"VEGAN\"\n ],\n \"salePrice\": 21.99,\n \"saleStartsAt\": \"2026-08-01T00:00:00.000Z\",\n \"saleEndsAt\": \"2026-08-15T23:59:59.000Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://asikodevapi.candourit.io/v1/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Premium Basmati Rice 5kg\",\n \"slug\": \"premium-basmati-rice-5kg\",\n \"description\": \"Long-grain aromatic basmati rice, perfect for jollof rice and other West African dishes.\",\n \"retailPrice\": 24.99,\n \"sku\": \"RICE-BAS-5KG\",\n \"tradePrice\": 19.99,\n \"currency\": \"NGN\",\n \"stockLevel\": 150,\n \"categoryId\": null,\n \"brandId\": null,\n \"packSize\": \"5kg\",\n \"images\": [\n \"https://cdn.asikofoods.com/products/basmati-rice-1.jpg\"\n ],\n \"tags\": [\n \"rice\",\n \"staple\",\n \"bulk\"\n ],\n \"dietaryTags\": [\n \"GLUTEN_FREE\",\n \"VEGAN\"\n ],\n \"salePrice\": 21.99,\n \"saleStartsAt\": \"2026-08-01T00:00:00.000Z\",\n \"saleEndsAt\": \"2026-08-15T23:59:59.000Z\"\n}"
response = http.request(request)
puts response.read_bodyinventory
Create product (Admin only)
POST
/
v1
/
products
Create product (Admin only)
curl --request POST \
--url https://asikodevapi.candourit.io/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Premium Basmati Rice 5kg",
"slug": "premium-basmati-rice-5kg",
"description": "Long-grain aromatic basmati rice, perfect for jollof rice and other West African dishes.",
"retailPrice": 24.99,
"sku": "RICE-BAS-5KG",
"tradePrice": 19.99,
"currency": "NGN",
"stockLevel": 150,
"categoryId": null,
"brandId": null,
"packSize": "5kg",
"images": [
"https://cdn.asikofoods.com/products/basmati-rice-1.jpg"
],
"tags": [
"rice",
"staple",
"bulk"
],
"dietaryTags": [
"GLUTEN_FREE",
"VEGAN"
],
"salePrice": 21.99,
"saleStartsAt": "2026-08-01T00:00:00.000Z",
"saleEndsAt": "2026-08-15T23:59:59.000Z"
}
'import requests
url = "https://asikodevapi.candourit.io/v1/products"
payload = {
"name": "Premium Basmati Rice 5kg",
"slug": "premium-basmati-rice-5kg",
"description": "Long-grain aromatic basmati rice, perfect for jollof rice and other West African dishes.",
"retailPrice": 24.99,
"sku": "RICE-BAS-5KG",
"tradePrice": 19.99,
"currency": "NGN",
"stockLevel": 150,
"categoryId": None,
"brandId": None,
"packSize": "5kg",
"images": ["https://cdn.asikofoods.com/products/basmati-rice-1.jpg"],
"tags": ["rice", "staple", "bulk"],
"dietaryTags": ["GLUTEN_FREE", "VEGAN"],
"salePrice": 21.99,
"saleStartsAt": "2026-08-01T00:00:00.000Z",
"saleEndsAt": "2026-08-15T23:59:59.000Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Premium Basmati Rice 5kg',
slug: 'premium-basmati-rice-5kg',
description: 'Long-grain aromatic basmati rice, perfect for jollof rice and other West African dishes.',
retailPrice: 24.99,
sku: 'RICE-BAS-5KG',
tradePrice: 19.99,
currency: 'NGN',
stockLevel: 150,
categoryId: null,
brandId: null,
packSize: '5kg',
images: ['https://cdn.asikofoods.com/products/basmati-rice-1.jpg'],
tags: ['rice', 'staple', 'bulk'],
dietaryTags: ['GLUTEN_FREE', 'VEGAN'],
salePrice: 21.99,
saleStartsAt: '2026-08-01T00:00:00.000Z',
saleEndsAt: '2026-08-15T23:59:59.000Z'
})
};
fetch('https://asikodevapi.candourit.io/v1/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://asikodevapi.candourit.io/v1/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Premium Basmati Rice 5kg',
'slug' => 'premium-basmati-rice-5kg',
'description' => 'Long-grain aromatic basmati rice, perfect for jollof rice and other West African dishes.',
'retailPrice' => 24.99,
'sku' => 'RICE-BAS-5KG',
'tradePrice' => 19.99,
'currency' => 'NGN',
'stockLevel' => 150,
'categoryId' => null,
'brandId' => null,
'packSize' => '5kg',
'images' => [
'https://cdn.asikofoods.com/products/basmati-rice-1.jpg'
],
'tags' => [
'rice',
'staple',
'bulk'
],
'dietaryTags' => [
'GLUTEN_FREE',
'VEGAN'
],
'salePrice' => 21.99,
'saleStartsAt' => '2026-08-01T00:00:00.000Z',
'saleEndsAt' => '2026-08-15T23:59:59.000Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://asikodevapi.candourit.io/v1/products"
payload := strings.NewReader("{\n \"name\": \"Premium Basmati Rice 5kg\",\n \"slug\": \"premium-basmati-rice-5kg\",\n \"description\": \"Long-grain aromatic basmati rice, perfect for jollof rice and other West African dishes.\",\n \"retailPrice\": 24.99,\n \"sku\": \"RICE-BAS-5KG\",\n \"tradePrice\": 19.99,\n \"currency\": \"NGN\",\n \"stockLevel\": 150,\n \"categoryId\": null,\n \"brandId\": null,\n \"packSize\": \"5kg\",\n \"images\": [\n \"https://cdn.asikofoods.com/products/basmati-rice-1.jpg\"\n ],\n \"tags\": [\n \"rice\",\n \"staple\",\n \"bulk\"\n ],\n \"dietaryTags\": [\n \"GLUTEN_FREE\",\n \"VEGAN\"\n ],\n \"salePrice\": 21.99,\n \"saleStartsAt\": \"2026-08-01T00:00:00.000Z\",\n \"saleEndsAt\": \"2026-08-15T23:59:59.000Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://asikodevapi.candourit.io/v1/products")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Premium Basmati Rice 5kg\",\n \"slug\": \"premium-basmati-rice-5kg\",\n \"description\": \"Long-grain aromatic basmati rice, perfect for jollof rice and other West African dishes.\",\n \"retailPrice\": 24.99,\n \"sku\": \"RICE-BAS-5KG\",\n \"tradePrice\": 19.99,\n \"currency\": \"NGN\",\n \"stockLevel\": 150,\n \"categoryId\": null,\n \"brandId\": null,\n \"packSize\": \"5kg\",\n \"images\": [\n \"https://cdn.asikofoods.com/products/basmati-rice-1.jpg\"\n ],\n \"tags\": [\n \"rice\",\n \"staple\",\n \"bulk\"\n ],\n \"dietaryTags\": [\n \"GLUTEN_FREE\",\n \"VEGAN\"\n ],\n \"salePrice\": 21.99,\n \"saleStartsAt\": \"2026-08-01T00:00:00.000Z\",\n \"saleEndsAt\": \"2026-08-15T23:59:59.000Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://asikodevapi.candourit.io/v1/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Premium Basmati Rice 5kg\",\n \"slug\": \"premium-basmati-rice-5kg\",\n \"description\": \"Long-grain aromatic basmati rice, perfect for jollof rice and other West African dishes.\",\n \"retailPrice\": 24.99,\n \"sku\": \"RICE-BAS-5KG\",\n \"tradePrice\": 19.99,\n \"currency\": \"NGN\",\n \"stockLevel\": 150,\n \"categoryId\": null,\n \"brandId\": null,\n \"packSize\": \"5kg\",\n \"images\": [\n \"https://cdn.asikofoods.com/products/basmati-rice-1.jpg\"\n ],\n \"tags\": [\n \"rice\",\n \"staple\",\n \"bulk\"\n ],\n \"dietaryTags\": [\n \"GLUTEN_FREE\",\n \"VEGAN\"\n ],\n \"salePrice\": 21.99,\n \"saleStartsAt\": \"2026-08-01T00:00:00.000Z\",\n \"saleEndsAt\": \"2026-08-15T23:59:59.000Z\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Example:
"Premium Basmati Rice 5kg"
Example:
"premium-basmati-rice-5kg"
Example:
"Long-grain aromatic basmati rice, perfect for jollof rice and other West African dishes."
Example:
24.99
Example:
"RICE-BAS-5KG"
Example:
19.99
Example:
"NGN"
Example:
150
Must be the id of a category already created via POST /categories, or null/omitted.
Example:
null
Must be the id of a brand already created via POST /brands, or null/omitted.
Example:
null
Available options:
500g, 1kg, 2kg, 5kg, 10kg, 25kg and above Example:
"5kg"
Example:
[
"https://cdn.asikofoods.com/products/basmati-rice-1.jpg"
]
Example:
["rice", "staple", "bulk"]
Available options:
VEGAN, HALAL, GLUTEN_FREE, ORGANIC Example:
["GLUTEN_FREE", "VEGAN"]
Example:
21.99
Example:
"2026-08-01T00:00:00.000Z"
Example:
"2026-08-15T23:59:59.000Z"
Response
201 - undefined
⌘I