Requires any of the permissions: | Product_Update, Product_Create |
All Verbs | /api/products/import |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ProductJson | query | List<ProductJson> | No | |
ImportOnhand | query | bool | No | |
SkipExists | query | bool | No | |
Method | query | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | long | No | |
Code | form | string | No | |
Code2 | form | string | No | |
Code3 | form | string | No | |
Code4 | form | string | No | |
Code5 | form | string | No | |
Name | form | string | No | |
Categories | form | string | No | |
CategoryId | form | long? | No | |
Unit | form | string | No | |
LargeUnit | form | string | No | |
ConversionValue | form | double | No | |
Price | form | decimal | No | |
LargeUnitPrice | form | decimal | No | |
OnHand | form | double | No | |
Cost | form | decimal | No | |
Attributies | form | string | No | |
Images | form | string | No | |
OrderQuickNotes | form | string | No | |
MinQuantity | form | double | No | |
MaxQuantity | form | double | No | |
ProductType | form | int | No | |
SplitForSalesOrder | form | bool | No | |
Hidden | form | bool | No | |
Printer | form | string | No | |
LargeUnitCode | form | string | No | |
Supplier | form | string | No | |
SupplierId | form | long? | No | |
VAT | form | double | No |
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
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: 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}],"ImportOnhand":false,"SkipExists":false,"Method":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {}