POS365.VN APIs

<back to all web services

ProductSave

Requires Authentication
Requires any of the permissions:Product_Update, Product_Create
The following routes are available for this service:
POST/api/products
ProductSave Parameters:
NameParameterData TypeRequiredDescription
ProductbodyProductNo
OnHandbodydoubleNo
CompareOnHandbodydoubleNo
MinQuantitybodydoubleNo
MaxQuantitybodydoubleNo
CostbodydecimalNo
CompareCostbodydecimalNo
PriceByBranchbodydecimalNo
PriceByBranchLargeUnitbodydecimalNo
ProductPartnersbodyList<ProductPartner>No
Product Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
CodeformstringNo
NameformstringNo
AttributesNameformstringNo
CategoryIdformlong?No
DescriptionformstringNo
PriceformdecimalNo
PriceLargeUnitformdecimalNo
ProductTypeformbyteNo
ConversionValueformdoubleNo
UnitformstringNo
LargeUnitformstringNo
IsSerialNumberTrackingformboolNo
CreatedDateformDateTimeNo
CreatedByformlongNo
ModifiedDateformDateTime?No
ModifiedByformlong?No
RetailerIdformintNo
IsPercentageOfTotalOrderformboolNo
SplitForSalesOrderformboolNo
OrderQuickNotesformstringNo
PrinterformstringNo
Hiddenformbool?No
IsTimerformbool?No
Coefficientformdouble?No
BonusPointformdoubleNo
ShowOnBranchIdformstringNo
BonusPointForAssistantformdoubleNo
BonusPointForAssistant2formdoubleNo
BonusPointForAssistant3formdoubleNo
PriceConfigformstringNo
BlockOfTimeToUseServiceformintNo
IsPriceForBlockformboolNo
FormularformstringNo
PositionformlongNo
LargeUnitCodeformstringNo
Code2formstringNo
Code3formstringNo
Code4formstringNo
Code5formstringNo
CategoryformCategoryNo
CompositeItemProductsformICollection<CompositeItem>No
ProductAttributesformICollection<ProductAttribute>No
ProductImagesformICollection<ProductImage>No
Category Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
NameformstringNo
ImageURLformstringNo
DescriptionformstringNo
ParentIdformlong?No
RetailerIdformintNo
CreatedDateformDateTimeNo
CreatedByformlongNo
ModifiedDateformDateTime?No
ModifiedByformlong?No
ShowOnBranchIdformstringNo
PositionformlongNo
ParentformCategoryNo
CompositeItem Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
ProductIdformlongNo
ItemIdformlongNo
QuantityformdoubleNo
RetailerIdformintNo
QuantityLargeUnitformdoubleNo
ItemformProductNo
ProductAttribute Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
ProductIdformlongNo
AttributeNameformstringNo
AttributeValueformstringNo
RetailerIdformintNo
ProductImage Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
ProductIdformlongNo
ImageURLformstringNo
ThumbnailUrlformstringNo
IsDefaultformboolNo
ProductPartner Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
ProductIdformlongNo
PartnerIdformlongNo
CostformdecimalNo
PlanToChangeCostformDateTime?No
NewCostformdecimalNo
RetailerIdformintNo
CreatedDateformDateTimeNo
CreatedByformlongNo
PartnerformPartnerNo
ProductformProductNo
Partner Parameters:
NameParameterData TypeRequiredDescription
PlainPasswordformstringNo
IdformlongNo
CodeformstringNo
NameformstringNo
AddressformstringNo
PhoneformstringNo
DOBformDateTime?No
EmailformstringNo
TypeformbyteNo
GenderformbyteNo
TaxCodeformstringNo
TotalDebtformdecimalNo
LoyaltyformdecimalNo
DescriptionformstringNo
CreatedByformlongNo
CreatedDateformDateTimeNo
ModifiedByformlong?No
ModifiedDateformDateTime?No
RetailerIdformintNo
ImageformstringNo
IdentifyNoformstringNo
LeadOwnerIdformlong?No
CompanyformstringNo
DepartmentformstringNo
PasswordformstringNo
ProvinceformstringNo
PointformlongNo
ShippingAddressformstringNo
Phone2formstringNo
MemberJoinDateformDateTime?No
TransactionvalueformdecimalNo
LeadOwnerformUserNo
PartnerGroupMembersformICollection<PartnerGroupMember>No
User Parameters:
NameParameterData TypeRequiredDescription
PlainPasswordformstringNo
IdformlongNo
EmailformstringNo
UserNameformstringNo
PasswordformstringNo
NameformstringNo
DOBformDateTime?No
AddressformstringNo
PhoneformstringNo
CreatedDateformDateTimeNo
IsActiveformboolNo
IsAdminformboolNo
RetailerIdformintNo
CreatedByformlongNo
AdminGroupformbyteNo
ManagedByformlong?No
IdentityCardNumberformstringNo
ManagedByNavigationformUserNo
PartnerGroupMember Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
PartnerIdformlongNo
GroupIdformlongNo
Product Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
CodeformstringNo
NameformstringNo
AttributesNameformstringNo
CategoryIdformlong?No
DescriptionformstringNo
PriceformdecimalNo
PriceLargeUnitformdecimalNo
ProductTypeformbyteNo
ConversionValueformdoubleNo
UnitformstringNo
LargeUnitformstringNo
IsSerialNumberTrackingformboolNo
CreatedDateformDateTimeNo
CreatedByformlongNo
ModifiedDateformDateTime?No
ModifiedByformlong?No
RetailerIdformintNo
IsPercentageOfTotalOrderformboolNo
SplitForSalesOrderformboolNo
OrderQuickNotesformstringNo
PrinterformstringNo
Hiddenformbool?No
IsTimerformbool?No
Coefficientformdouble?No
BonusPointformdoubleNo
ShowOnBranchIdformstringNo
BonusPointForAssistantformdoubleNo
BonusPointForAssistant2formdoubleNo
BonusPointForAssistant3formdoubleNo
PriceConfigformstringNo
BlockOfTimeToUseServiceformintNo
IsPriceForBlockformboolNo
FormularformstringNo
PositionformlongNo
LargeUnitCodeformstringNo
Code2formstringNo
Code3formstringNo
Code4formstringNo
Code5formstringNo
CategoryformCategoryNo
CompositeItemProductsformICollection<CompositeItem>No
ProductAttributesformICollection<ProductAttribute>No
ProductImagesformICollection<ProductImage>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/products HTTP/1.1 
Host: api.pos365.vn 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Product":{"Id":0,"Code":"String","Name":"String","AttributesName":"String","CategoryId":0,"Description":"String","Price":0,"PriceLargeUnit":0,"ProductType":0,"ConversionValue":0,"Unit":"String","LargeUnit":"String","IsSerialNumberTracking":false,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"RetailerId":0,"IsPercentageOfTotalOrder":false,"SplitForSalesOrder":false,"OrderQuickNotes":"String","Printer":"String","Hidden":false,"IsTimer":false,"Coefficient":0,"BonusPoint":0,"ShowOnBranchId":"String","BonusPointForAssistant":0,"BonusPointForAssistant2":0,"BonusPointForAssistant3":0,"PriceConfig":"String","BlockOfTimeToUseService":0,"IsPriceForBlock":false,"Formular":"String","Position":0,"LargeUnitCode":"String","Code2":"String","Code3":"String","Code4":"String","Code5":"String","Category":{"Id":0,"Name":"String","ImageURL":"String","Description":"String","ParentId":0,"RetailerId":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"ShowOnBranchId":"String","Position":0,"Parent":{"Id":0,"Name":"String","ImageURL":"String","Description":"String","ParentId":0,"RetailerId":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"ShowOnBranchId":"String","Position":0,"Parent":{"Id":0,"Name":"String","ImageURL":"String","Description":"String","ParentId":0,"RetailerId":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"ShowOnBranchId":"String","Position":0}}}},"OnHand":0,"CompareOnHand":0,"MinQuantity":0,"MaxQuantity":0,"Cost":0,"CompareCost":0,"PriceByBranch":0,"PriceByBranchLargeUnit":0,"ProductPartners":[{"Id":0,"ProductId":0,"PartnerId":0,"Cost":0,"PlanToChangeCost":"0001-01-01T00:00:00.0000000Z","NewCost":0,"RetailerId":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"Partner":{"PlainPassword":"String","Id":0,"Code":"String","Name":"String","Address":"String","Phone":"String","DOB":"0001-01-01T00:00:00.0000000Z","Email":"String","Type":0,"Gender":0,"TaxCode":"String","TotalDebt":0,"Loyalty":0,"Description":"String","CreatedBy":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","RetailerId":0,"Image":"String","IdentifyNo":"String","LeadOwnerId":0,"Company":"String","Department":"String","Password":"String","Province":"String","Point":0,"ShippingAddress":"String","Phone2":"String","MemberJoinDate":"0001-01-01T00:00:00.0000000Z","Transactionvalue":0,"LeadOwner":{"PlainPassword":"String","Id":0,"Email":"String","UserName":"String","Password":"String","Name":"String","DOB":"0001-01-01T00:00:00.0000000Z","Address":"String","Phone":"String","CreatedDate":"0001-01-01T00:00:00.0000000Z","IsActive":false,"IsAdmin":false,"RetailerId":0,"CreatedBy":0,"AdminGroup":0,"ManagedBy":0,"IdentityCardNumber":"String","ManagedByNavigation":{"PlainPassword":"String","Id":0,"Email":"String","UserName":"String","Password":"String","Name":"String","DOB":"0001-01-01T00:00:00.0000000Z","Address":"String","Phone":"String","CreatedDate":"0001-01-01T00:00:00.0000000Z","IsActive":false,"IsAdmin":false,"RetailerId":0,"CreatedBy":0,"AdminGroup":0,"ManagedBy":0,"IdentityCardNumber":"String","ManagedByNavigation":}}},"Product":{"Id":0,"Code":"String","Name":"String","AttributesName":"String","CategoryId":0,"Description":"String","Price":0,"PriceLargeUnit":0,"ProductType":0,"ConversionValue":0,"Unit":"String","LargeUnit":"String","IsSerialNumberTracking":false,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"RetailerId":0,"IsPercentageOfTotalOrder":false,"SplitForSalesOrder":false,"OrderQuickNotes":"String","Printer":"String","Hidden":false,"IsTimer":false,"Coefficient":0,"BonusPoint":0,"ShowOnBranchId":"String","BonusPointForAssistant":0,"BonusPointForAssistant2":0,"BonusPointForAssistant3":0,"PriceConfig":"String","BlockOfTimeToUseService":0,"IsPriceForBlock":false,"Formular":"String","Position":0,"LargeUnitCode":"String","Code2":"String","Code3":"String","Code4":"String","Code5":"String","Category":{"Id":0,"Name":"String","ImageURL":"String","Description":"String","ParentId":0,"RetailerId":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"ShowOnBranchId":"String","Position":0,"Parent":{"Id":0,"Name":"String","ImageURL":"String","Description":"String","ParentId":0,"RetailerId":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"ShowOnBranchId":"String","Position":0,"Parent":}}}}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Id":0,"Code":"String","Name":"String","AttributesName":"String","CategoryId":0,"Description":"String","Price":0,"PriceLargeUnit":0,"ProductType":0,"ConversionValue":0,"Unit":"String","LargeUnit":"String","IsSerialNumberTracking":false,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"RetailerId":0,"IsPercentageOfTotalOrder":false,"SplitForSalesOrder":false,"OrderQuickNotes":"String","Printer":"String","Hidden":false,"IsTimer":false,"Coefficient":0,"BonusPoint":0,"ShowOnBranchId":"String","BonusPointForAssistant":0,"BonusPointForAssistant2":0,"BonusPointForAssistant3":0,"PriceConfig":"String","BlockOfTimeToUseService":0,"IsPriceForBlock":false,"Formular":"String","Position":0,"LargeUnitCode":"String","Code2":"String","Code3":"String","Code4":"String","Code5":"String","Category":{"Id":0,"Name":"String","ImageURL":"String","Description":"String","ParentId":0,"RetailerId":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"ShowOnBranchId":"String","Position":0,"Parent":{"Id":0,"Name":"String","ImageURL":"String","Description":"String","ParentId":0,"RetailerId":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"ShowOnBranchId":"String","Position":0,"Parent":{"Id":0,"Name":"String","ImageURL":"String","Description":"String","ParentId":0,"RetailerId":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"ShowOnBranchId":"String","Position":0}}}}