All Verbs | /api/pricebooks/import |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ProductJson | query | List<ProductJson> | No | |
PriceBookId | query | long | 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 .jsv suffix or ?format=jsv
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: text/jsv
Content-Type: text/jsv
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: text/jsv Content-Length: length { }