StoreHarmony API
  1. Stock Inventory
StoreHarmony API
  • Storeharmony API
  • Mobile Apps
    • Apps Registration
      • Authentication
        • Verify User Registration from a Website
        • Verify User Registration
        • Reset User Password
        • Register a new store
        • User Login For Apps
        • Authenticate User
    • Stock Inventory
      • Stock Categories
        • getStoreCategories
        • updateStoreCategory
        • createStoreCategory
        • createStoreSubCategory
        • deleteStoreCategory
        • Upload Category Picture
        • createBulkStoreCategory
      • Create Bulk Products
        POST
      • Create Product with Variants
        POST
      • Add Variants to Product
        POST
      • Upload Product Picture
        POST
      • Update Product Prices
        POST
      • Add New Quantity to Product
        POST
      • Deduct Quantity from Product
        POST
      • Creates a simple product in the inventory
        POST
      • Get Product by Item ID
        GET
      • getProductTransfers
        GET
      • acceptTransferIntoStore
        GET
      • listProductsPricesForRecentChanges
        GET
      • listProductsPrices
        GET
      • Get Inventory Stock Items
        GET
      • getProductAudit
        GET
      • findBySKU
        GET
      • Update Product
        PUT
      • Removes provided variants from provided Existing Product
        PUT
      • Add Variants to Existing Product
        POST
      • getProductsWithComplexQuery
        POST
      • Removes Product by Item ID
        DELETE
      • Add Variants to Existing Product
        GET
    • Store Admin Operations
      • Get Store User
      • Edit Store User
      • Delete a Store User
      • Get Bank Account List for the Store
      • Update Bank Account Details
      • Create Bank Account
      • Delete Bank Account
      • Add a User to Store
      • Set Default Bank
      • List all users for a Store User
      • Get Bank Account Details
      • Delete Bank Account
    • Invoicing Operations
      • createPDFInvoiceLink
  • CRM
    • Customer Registration
      • Register a new customer
      • Log in a customer
      • Verify Customer Email
      • Verify Customer Mobile
      • Reset Customer Password
  • Online Store
    • Restuarant Order Menus AppCalls
      • Place an Order
      • Submit Store Review
      • getServiceName
      • Load a Restro Store Detail
      • Restro Product Order
      • Track Order Status
      • Restro Store Tables
      • List Auto Categories
      • Restro Product Details
      • Fetch Related Products or Recommended Pairs for a Product
      • Fetch All Categories
      • Fetch All Products Belonging to a Particular Category
      • Fetch All Products by Store ID Based on Categories and Subcategories
      • Fetch All Categories and Subcategories by Store ID
    • updatesOrder
    • cancelOrder
    • postCustomerReview
    • getCustomerProfile
    • updateProfile
    • updateProfileShippingAddress
    • submitIssues
    • placeOrderToStore
    • contactStore
    • calculateOrderShipping
    • passResetting
    • getStoreInfo
    • getCustomerWalletReport
    • getRegularPurchase
    • getRecentPurchase
    • getCustomerReceipts
    • getReceiptDetails_1
    • getCustomerProfileDetails
    • getCustomerOrders
    • getOrderDetails
    • getCustomerLoyaltyReport
    • getCustomerInvoices
    • trackPayment
    • trackOrder_1
    • loadDeliverypolicy
    • listAutoCategories_1
    • getShippingRates
    • shippingInformation
    • searchProducts
    • sendReceipt
    • listStoreProductsForHome
    • loadProductByItemId_1
    • getCustomerReview
    • loadProducRecommendationsByItemId
    • loadProductBySlug
    • loadRelatedProductsByItemId
    • loadPrivacypolicy
    • searchPagedProducts
    • searchPagedProductsByPages
    • getStoreLocations
    • getGeocode
    • loadHomeBanners
    • getCountries_1
    • getCountryStates_1
    • getCountryStatesLGARegion_1
    • loadStoreCategories_1
    • loadStoreSubCategories_1
    • loadStoreAllCategoriesAndSubCategories_1
    • loadStoreBanners
    • verifyMobile_1
    • verifyEmail
    • loadAboutUs
    • Log in a customer with token
    • Log in a customer
    • Register a new customer
  • User Operations
    • Get User Information
    • Update User Information
    • Set Default Wallet Bank Account
    • Set VAT, VAT Type and currency etc used for business activities in this location
    • Set a particular location as the default store used for business activities
    • Retrieve Profile Image
    • Upload Profile Image
    • Log a User Complaint
    • createNewStoreLocation
    • Change User Password
    • Get the details, settings and important parameters for a store location
    • Get Bank Account Details
    • Switch account to another store location
    • Get User Store Locations
  • Data Sources & Reports
    • getSalesReportsDetails
    • getSalesReports
    • Sales Report with products sold
    • Sales Report by Criteria
    • Track Sales By Receipt
    • getCustomerDataSet
  • Utility Operations
    • Create PDF Invoice Link
    • Load Store Credentials By ID
    • Verify Mobile Number
    • Verify Email Address
    • Retrieve Store Profiles
    • Retrieve List of Roles
    • Retrieve Registered Nigerian Banks. Only Supports Nigerian Banks
    • Lookup Bank Account Details
    • Retrieve List of Countries
    • Retrieve States in a Country
    • Retrieve Regions within a State
  • Payments & Webhooks
    • reversalMerchantPOSTerminal_1
    • payViaMerchantPOSTerminal_1
    • Creates a bank transfer account
  • Webhooks & Operations
    • reversalMerchantPOSTerminal
    • payViaMerchantPOSTerminal
  1. Stock Inventory

Creates a simple product in the inventory

POST
/app/{storeid}/stock
Stock Inventory Basic Functions
Creates a simple product in the inventory at the provided store location. This includes details like name, quantity, cost price, and more.

Request

Path Params
storeid
string 
required
ID of the store location where the product is being added
Header Params
sessiontoken
string 
required
Session token for authentication
Body Params application/json
Product details to be added
productCategory
string 
required
The category of the product.
Example:
Electronics
subcategory
string 
optional
The subcategory of the product.
Example:
Smartphones
itemDescription
string 
required
A detailed description of the product.
Example:
Latest model smartphone with 128GB storage
quantity
number <double>
optional
The available quantity of the product in stock.
Example:
100
costPrice
number <double>
optional
The cost price of the product.
Example:
500
sellingPrice
number <double>
required
The selling price of the product.
Example:
700
bulkPrice
number <double>
optional
The price of the product when purchased in bulk.
Example:
600
qtyPerBulk
number <double>
optional
The quantity per bulk unit.
Example:
10
barcode
string 
optional
The barcode of the product.
Example:
123456789012
productBrand
string 
optional
The brand of the product.
Example:
BrandX
color
string 
optional
The color of the product.
Example:
Black
size
string 
optional
The size of the product.
Example:
Large
expireDate
string <date-time>
optional
The expiration date of the product. Note: Expire date must be in the future for the sumbit to work
memberPrice
number <double>
optional
The price of the product for members.
Example:
650
supplierNo
string 
optional
The supplier number associated with the product.
Example:
SUP12345
storeId
string 
optional
The ID of the store where the product is located.
Example:
STORE001
productType
string 
required
The type of the product. Possible values: raw_material, whole_item, service.
Example:
whole_item
photoData
array[string <byte>]
optional
The binary array representing the picture of an item
Example
{
  "productCategory": "Electronics",
  "subcategory": "Smartphones",
  "itemDescription": "Latest model smartphone with 128GB storage",
  "quantity": 100,
  "costPrice": 500,
  "sellingPrice": 700,
  "bulkPrice": 600,
  "qtyPerBulk": 10,
  "barcode": "123456789012",
  "productBrand": "BrandX",
  "color": "Black",
  "size": "Large",
  "expireDate": "2019-08-24T14:15:22Z",
  "memberPrice": 650,
  "supplierNo": "SUP12345",
  "storeId": "STORE001",
  "productType": "whole_item",
  "photoData": [
    "string"
  ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://gateway.storeharmony.com/cloudapi/app//stock' \
--header 'sessiontoken;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "productCategory": "Electronics",
    "subcategory": "Smartphones",
    "itemDescription": "Latest model smartphone with 128GB storage",
    "quantity": 100,
    "costPrice": 500,
    "sellingPrice": 700,
    "bulkPrice": 600,
    "qtyPerBulk": 10,
    "barcode": "123456789012",
    "productBrand": "BrandX",
    "color": "Black",
    "size": "Large",
    "expireDate": "2019-08-24T14:15:22Z",
    "memberPrice": 650,
    "supplierNo": "SUP12345",
    "storeId": "STORE001",
    "productType": "whole_item",
    "photoData": [
        "string"
    ]
}'

Responses

🟢200OK
*/*
Product created successfully.
Body
itemId
string 
optional
slug
string 
optional
itemName
string 
optional
itemBarcode
string 
optional
itemForm
string 
optional
itemPictureId1
string 
optional
itemPictureId2
string 
optional
category
string 
optional
manufacturer
string 
optional
color
string 
optional
size
string 
optional
price
integer <int64>
optional
taxable
boolean 
optional
promoprice
integer <int64>
optional
unitsOfMeasure
string 
optional
inStock
boolean 
optional
minOrder
number <double>
optional
addedBy
string 
optional
addedDate
string <date-time>
optional
expireDate
string <date-time>
optional
batchNo
string 
optional
maxOrder
integer <int32>
optional
availableQty
number <double>
optional
aboutItem
string 
optional
variantId
string 
optional
inventoryItemId
string 
optional
productId
string 
optional
tags
string 
optional
specification
array [array] 
optional
string 
optional
Example
{
  "itemId": "string",
  "slug": "string",
  "itemName": "string",
  "itemBarcode": "string",
  "itemForm": "string",
  "itemPictureId1": "string",
  "itemPictureId2": "string",
  "category": "string",
  "manufacturer": "string",
  "color": "string",
  "size": "string",
  "price": 0,
  "taxable": true,
  "promoprice": 0,
  "unitsOfMeasure": "string",
  "inStock": true,
  "minOrder": 0,
  "addedBy": "string",
  "addedDate": "2019-08-24T14:15:22Z",
  "expireDate": "2019-08-24T14:15:22Z",
  "batchNo": "string",
  "maxOrder": 0,
  "availableQty": 0,
  "aboutItem": "string",
  "variantId": "string",
  "inventoryItemId": "string",
  "productId": "string",
  "tags": "string",
  "specification": [
    [
      "string"
    ]
  ]
}
🟠400Bad Request
🟠404Record Not Found
🔴500Server Error
Modified at 2025-03-27 14:31:04
Previous
Deduct Quantity from Product
Next
Get Product by Item ID
Built with