| GET,POST,PUT,DELETE | /{Workspace}/PricingList/{ObjectId} | ||
|---|---|---|---|
| GET | /{Workspace}/PricingList |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Workspace | path | string | No | |
| ObjectId | path | string | No | |
| VersionId | body | string | No | |
| BasedOn | body | string | No | |
| Name | body | string | No | |
| Categories | body | List<PricingListCat> | No | |
| Items | body | List<PricingListItem> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ObjectId | form | string | No | |
| Name | form | string | No | |
| Categories | form | List<PricingListCat> | No | |
| Items | form | List<PricingListItem> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ObjectId | form | string | No | |
| Description | form | string | No | |
| Details | form | string | No | |
| Manufacturer | form | string | No | |
| Model | form | string | No | |
| Photo | form | string | No | |
| IsTaxable | form | bool | No | |
| Unit | form | string | No | |
| UnitPrice | form | double | No | |
| Barcode | form | string | 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 /{Workspace}/PricingList/{ObjectId} HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Workspace: String,
ObjectId: String,
VersionId: String,
BasedOn: String,
Name: String,
Categories:
[
{
ObjectId: String,
Name: String,
Categories:
[
{
ObjectId: String,
Name: String,
Categories:
[
{
ObjectId: String,
Name: String,
Items:
[
{
ObjectId: String,
Description: String,
Details: String,
Manufacturer: String,
Model: String,
Photo: String,
IsTaxable: False,
Unit: String,
UnitPrice: 0,
Barcode: String
}
]
}
],
Items:
[
{
ObjectId: String,
Description: String,
Details: String,
Manufacturer: String,
Model: String,
Photo: String,
IsTaxable: False,
Unit: String,
UnitPrice: 0,
Barcode: String
}
]
}
],
Items:
[
{
ObjectId: String,
Description: String,
Details: String,
Manufacturer: String,
Model: String,
Photo: String,
IsTaxable: False,
Unit: String,
UnitPrice: 0,
Barcode: String
}
]
}
],
Items:
[
{
ObjectId: String,
Description: String,
Details: String,
Manufacturer: String,
Model: String,
Photo: String,
IsTaxable: False,
Unit: String,
UnitPrice: 0,
Barcode: String
}
]
}