POS365.VN APIs

<back to all web services

PricebookImport

Requires Authentication
The following routes are available for this service:
All Verbs/api/pricebooks/import
PricebookImport Parameters:
NameParameterData TypeRequiredDescription
ProductJsonqueryList<ProductJson>No
PriceBookIdquerylongNo
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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /api/pricebooks/import HTTP/1.1 
Host: api.pos365.vn 
Accept: application/json
Content-Type: application/json
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}],"PriceBookId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}