Skip to content
Get started

Creates or updates products in bulk.

ProductCreateProductsResponse Products.CreateProducts(ProductCreateProductsParams?parameters, CancellationTokencancellationToken = default)
POST/api/v2/public/products

Creates or updates products in bulk.

ParametersExpand Collapse
ProductCreateProductsParams parameters
Boolean flush

Query param: When true, removes existing products before inserting.

IReadOnlyList<Body> body

Body param

required Boolean IsCounted
required string ProductName

Display name of the product.

minLength1
required string ProductNumber

Unique product number.

minLength1
Boolean? AllowDecimal
IReadOnlyList<string>? AttentionCode
Double? AverageWeight
formatdouble
string? Barcode
IReadOnlyList<BarcodesArray>? BarcodesArray
string? Barcode
string? BaseUnitName
string? BrandCode
string? BrandDescription
Double CarrierItemQuantity
formatdouble
string? CategoryCode
string? Color
string? ColorCode
IReadOnlyList<string>? CountriesAllowed
IReadOnlyList<string>? CountriesNotAllowed
string? CountryCode
string? DefaultLocationTag
DateTimeOffset? DeprecationDate
formatdate-time
Int? ExpirationMinRange
formatint32
IReadOnlyList<FreeField>? FreeFields
string? Key
Int SortOrder
formatint32
string? Value
string? ImageUrl
Int? Ioq
formatint32
Boolean? IsActive
Boolean? IsAdr
Boolean? IsDeleted
Boolean? IsEditMinMax
Boolean? IsEditReplenishment
Boolean? IsExpiration
Boolean? IsMarkdownAllowed
Boolean? IsOrderManually
Boolean? IsOrdering
Boolean? IsPromotion
Boolean? IsResetStoreStock
Boolean? IsSet
Boolean? IsStock
Boolean? IsStoreProduct
Boolean? IsTemplate
Boolean? IsTheft
string? MarginCategory
Double? Moq
formatdouble
Double? Price
formatdouble
Double PriceCompareMultiplier
formatdouble
string? PriceCompareUnit
string? PriceLines
string? ProductDetails
string? ProductReferenceNumber
string? ProductStatus
string? ProductType
string? ProductUrl
IReadOnlyList<string>? PromoStoresAllowed
IReadOnlyList<string>? PromoStoresNotAllowed
Double? PromotionPrice
formatdouble
string? PromotionText
string? PromotionWeek
Double? PurchasePrice
formatdouble
string? PurchaseUnitBarcode
string? PurchaseUnitName
string? PurchaseUnitProductNumber
Double? PurchaseUnitQuantity
formatdouble
string? ReferralProductNumber
IReadOnlyList<SetProduct>? SetProducts
string? SetItemQuantity
string? SetProductNumber
IReadOnlyList<ShelfLabel>? ShelfLabels
string? Shelflabel1
string? Shelflabel2
string? Shelflabel3
string? Shelflabel4
string? Shelflabel5
string? Shelflabel6
string? Size
string? SizeCode
string? SmallestProductNumber
Double? SmallestQuantity
formatdouble
string? StoreNumber
IReadOnlyList<string>? StoresAllowed
IReadOnlyList<string>? StoresNotAllowed
string? SupplierName
string? SupplierNumber
string? SupplierProductNumber
IReadOnlyList<Unit>? Units
required string UnitBarcode
minLength1
required string UnitName
minLength1
required Double UnitQuantity
formatdouble
string? VariantCode
string? Volume
ReturnsExpand Collapse
class ProductCreateProductsResponse:

Standard success response returned by mutation endpoints.

string? Data

Optional data payload returned by the operation.

string? Message

Human-readable message describing the result.

Boolean Success

Indicates whether the operation completed successfully.

Creates or updates products in bulk.

ProductCreateProductsParams parameters = new();

var response = await client.Products.CreateProducts(parameters);

Console.WriteLine(response);
{
  "data": "12345",
  "message": "Record created successfully.",
  "success": true
}
Returns Examples
{
  "data": "12345",
  "message": "Record created successfully.",
  "success": true
}