POS365.VN APIs

<back to all web services

ProductImport

Requires Authentication
Requires any of the permissions:Product_Update, Product_Create
The following routes are available for this service:
All Verbs/api/products/import
ProductImport Parameters:
NameParameterData TypeRequiredDescription
ProductJsonqueryList<ProductJson>No
ImportOnhandqueryboolNo
SkipExistsqueryboolNo
MethodquerystringNo
ProductJson Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
CodeformstringNo
Code2formstringNo
Code3formstringNo
Code4formstringNo
Code5formstringNo
NameformstringNo
CategoriesformstringNo
CategoryIdformlong?No
UnitformstringNo
LargeUnitformstringNo
ConversionValueformdoubleNo
PriceformdecimalNo
LargeUnitPriceformdecimalNo
OnHandformdoubleNo
CostformdecimalNo
AttributiesformstringNo
ImagesformstringNo
OrderQuickNotesformstringNo
MinQuantityformdoubleNo
MaxQuantityformdoubleNo
ProductTypeformintNo
SplitForSalesOrderformboolNo
HiddenformboolNo
PrinterformstringNo
LargeUnitCodeformstringNo
SupplierformstringNo
SupplierIdformlong?No
VATformdoubleNo

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/import HTTP/1.1 
Host: api.pos365.vn 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ProductJson":[{"Id":0,"Code":"String","Code2":"String","Code3":"String","Code4":"String","Code5":"String","Name":"String","Categories":"String","CategoryId":0,"Unit":"String","LargeUnit":"String","ConversionValue":0,"Price":0,"LargeUnitPrice":0,"OnHand":0,"Cost":0,"Attributies":"String","Images":"String","OrderQuickNotes":"String","MinQuantity":0,"MaxQuantity":0,"ProductType":0,"SplitForSalesOrder":false,"Hidden":false,"Printer":"String","LargeUnitCode":"String","Supplier":"String","SupplierId":0,"VAT":0}],"ImportOnhand":false,"SkipExists":false,"Method":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{}