Update product (Admin only)
curl --request PATCH \
--url https://asikodevapi.candourit.io/v1/products/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Premium Basmati Rice 5kg",
"slug": "premium-basmati-rice-5kg",
"description": "Updated description with more detail on sourcing and preparation.",
"retailPrice": 22.99,
"tradePrice": 18.99,
"currency": "NGN",
"sku": "RICE-BAS-5KG",
"stockLevel": 120,
"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": 19.99,
"saleStartsAt": "2026-08-01T00:00:00.000Z",
"saleEndsAt": "2026-08-15T23:59:59.000Z",
"isActive": true
}
'import requests
url = "https://asikodevapi.candourit.io/v1/products/{id}"
payload = {
"name": "Premium Basmati Rice 5kg",
"slug": "premium-basmati-rice-5kg",
"description": "Updated description with more detail on sourcing and preparation.",
"retailPrice": 22.99,
"tradePrice": 18.99,
"currency": "NGN",
"sku": "RICE-BAS-5KG",
"stockLevel": 120,
"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": 19.99,
"saleStartsAt": "2026-08-01T00:00:00.000Z",
"saleEndsAt": "2026-08-15T23:59:59.000Z",
"isActive": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Premium Basmati Rice 5kg',
slug: 'premium-basmati-rice-5kg',
description: 'Updated description with more detail on sourcing and preparation.',
retailPrice: 22.99,
tradePrice: 18.99,
currency: 'NGN',
sku: 'RICE-BAS-5KG',
stockLevel: 120,
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: 19.99,
saleStartsAt: '2026-08-01T00:00:00.000Z',
saleEndsAt: '2026-08-15T23:59:59.000Z',
isActive: true
})
};
fetch('https://asikodevapi.candourit.io/v1/products/{id}', 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/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Premium Basmati Rice 5kg',
'slug' => 'premium-basmati-rice-5kg',
'description' => 'Updated description with more detail on sourcing and preparation.',
'retailPrice' => 22.99,
'tradePrice' => 18.99,
'currency' => 'NGN',
'sku' => 'RICE-BAS-5KG',
'stockLevel' => 120,
'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' => 19.99,
'saleStartsAt' => '2026-08-01T00:00:00.000Z',
'saleEndsAt' => '2026-08-15T23:59:59.000Z',
'isActive' => true
]),
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/{id}"
payload := strings.NewReader("{\n \"name\": \"Premium Basmati Rice 5kg\",\n \"slug\": \"premium-basmati-rice-5kg\",\n \"description\": \"Updated description with more detail on sourcing and preparation.\",\n \"retailPrice\": 22.99,\n \"tradePrice\": 18.99,\n \"currency\": \"NGN\",\n \"sku\": \"RICE-BAS-5KG\",\n \"stockLevel\": 120,\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\": 19.99,\n \"saleStartsAt\": \"2026-08-01T00:00:00.000Z\",\n \"saleEndsAt\": \"2026-08-15T23:59:59.000Z\",\n \"isActive\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://asikodevapi.candourit.io/v1/products/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Premium Basmati Rice 5kg\",\n \"slug\": \"premium-basmati-rice-5kg\",\n \"description\": \"Updated description with more detail on sourcing and preparation.\",\n \"retailPrice\": 22.99,\n \"tradePrice\": 18.99,\n \"currency\": \"NGN\",\n \"sku\": \"RICE-BAS-5KG\",\n \"stockLevel\": 120,\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\": 19.99,\n \"saleStartsAt\": \"2026-08-01T00:00:00.000Z\",\n \"saleEndsAt\": \"2026-08-15T23:59:59.000Z\",\n \"isActive\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://asikodevapi.candourit.io/v1/products/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.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\": \"Updated description with more detail on sourcing and preparation.\",\n \"retailPrice\": 22.99,\n \"tradePrice\": 18.99,\n \"currency\": \"NGN\",\n \"sku\": \"RICE-BAS-5KG\",\n \"stockLevel\": 120,\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\": 19.99,\n \"saleStartsAt\": \"2026-08-01T00:00:00.000Z\",\n \"saleEndsAt\": \"2026-08-15T23:59:59.000Z\",\n \"isActive\": true\n}"
response = http.request(request)
puts response.read_bodyinventory
Update product (Admin only)
PATCH
/
v1
/
products
/
{id}
Update product (Admin only)
curl --request PATCH \
--url https://asikodevapi.candourit.io/v1/products/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Premium Basmati Rice 5kg",
"slug": "premium-basmati-rice-5kg",
"description": "Updated description with more detail on sourcing and preparation.",
"retailPrice": 22.99,
"tradePrice": 18.99,
"currency": "NGN",
"sku": "RICE-BAS-5KG",
"stockLevel": 120,
"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": 19.99,
"saleStartsAt": "2026-08-01T00:00:00.000Z",
"saleEndsAt": "2026-08-15T23:59:59.000Z",
"isActive": true
}
'import requests
url = "https://asikodevapi.candourit.io/v1/products/{id}"
payload = {
"name": "Premium Basmati Rice 5kg",
"slug": "premium-basmati-rice-5kg",
"description": "Updated description with more detail on sourcing and preparation.",
"retailPrice": 22.99,
"tradePrice": 18.99,
"currency": "NGN",
"sku": "RICE-BAS-5KG",
"stockLevel": 120,
"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": 19.99,
"saleStartsAt": "2026-08-01T00:00:00.000Z",
"saleEndsAt": "2026-08-15T23:59:59.000Z",
"isActive": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Premium Basmati Rice 5kg',
slug: 'premium-basmati-rice-5kg',
description: 'Updated description with more detail on sourcing and preparation.',
retailPrice: 22.99,
tradePrice: 18.99,
currency: 'NGN',
sku: 'RICE-BAS-5KG',
stockLevel: 120,
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: 19.99,
saleStartsAt: '2026-08-01T00:00:00.000Z',
saleEndsAt: '2026-08-15T23:59:59.000Z',
isActive: true
})
};
fetch('https://asikodevapi.candourit.io/v1/products/{id}', 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/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Premium Basmati Rice 5kg',
'slug' => 'premium-basmati-rice-5kg',
'description' => 'Updated description with more detail on sourcing and preparation.',
'retailPrice' => 22.99,
'tradePrice' => 18.99,
'currency' => 'NGN',
'sku' => 'RICE-BAS-5KG',
'stockLevel' => 120,
'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' => 19.99,
'saleStartsAt' => '2026-08-01T00:00:00.000Z',
'saleEndsAt' => '2026-08-15T23:59:59.000Z',
'isActive' => true
]),
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/{id}"
payload := strings.NewReader("{\n \"name\": \"Premium Basmati Rice 5kg\",\n \"slug\": \"premium-basmati-rice-5kg\",\n \"description\": \"Updated description with more detail on sourcing and preparation.\",\n \"retailPrice\": 22.99,\n \"tradePrice\": 18.99,\n \"currency\": \"NGN\",\n \"sku\": \"RICE-BAS-5KG\",\n \"stockLevel\": 120,\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\": 19.99,\n \"saleStartsAt\": \"2026-08-01T00:00:00.000Z\",\n \"saleEndsAt\": \"2026-08-15T23:59:59.000Z\",\n \"isActive\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://asikodevapi.candourit.io/v1/products/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Premium Basmati Rice 5kg\",\n \"slug\": \"premium-basmati-rice-5kg\",\n \"description\": \"Updated description with more detail on sourcing and preparation.\",\n \"retailPrice\": 22.99,\n \"tradePrice\": 18.99,\n \"currency\": \"NGN\",\n \"sku\": \"RICE-BAS-5KG\",\n \"stockLevel\": 120,\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\": 19.99,\n \"saleStartsAt\": \"2026-08-01T00:00:00.000Z\",\n \"saleEndsAt\": \"2026-08-15T23:59:59.000Z\",\n \"isActive\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://asikodevapi.candourit.io/v1/products/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.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\": \"Updated description with more detail on sourcing and preparation.\",\n \"retailPrice\": 22.99,\n \"tradePrice\": 18.99,\n \"currency\": \"NGN\",\n \"sku\": \"RICE-BAS-5KG\",\n \"stockLevel\": 120,\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\": 19.99,\n \"saleStartsAt\": \"2026-08-01T00:00:00.000Z\",\n \"saleEndsAt\": \"2026-08-15T23:59:59.000Z\",\n \"isActive\": true\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Example:
"Premium Basmati Rice 5kg"
Example:
"premium-basmati-rice-5kg"
Example:
"Updated description with more detail on sourcing and preparation."
Example:
22.99
Example:
18.99
Example:
"NGN"
Example:
"RICE-BAS-5KG"
Example:
120
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:
19.99
Example:
"2026-08-01T00:00:00.000Z"
Example:
"2026-08-15T23:59:59.000Z"
Example:
true
Response
200 - undefined
⌘I