A purchasing price list is a container for price list entries. First create the price list and then the price list entries associated with the list. Price lists contain the prices for products or services purchased from vendors. Typically there is one price list per vendor, but multiple lists can be created as needed. See Price lists — Purchasing for more information.
Returns up to 100 object references from the collection with a key, ID, and link for each purchasing price list. This operation is mostly for use in testing; use query to find objects that meet certain criteria and specify the properties that are returned.
Subscription | Purchasing |
---|---|
User type | Business, Project Manager, Employee, Warehouse |
Permissions | List, View Price Lists |
OK
Bad Request
{- "ia::result": [
- {
- "key": "2",
- "id": "Purchase Price List",
- "href": "/objects/purchasing/price-list/2"
}, - {
- "key": "6",
- "id": "Base Price List Purchase",
- "href": "/objects/purchasing/price-list/6"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new purchasing price list.
Subscription | Purchasing |
---|---|
User type | Business, Warehouse |
Permissions | List, View, Add Price Lists |
id required | string Name or other unique identifier for the purchasing price list. Example: "Base Price List Purchase" |
appliesTo | string Application |
startDate | string <date> Start date for the time frame in which the price list is effective. Example: "2021-01-01" |
endDate | string <date> End date for the time frame in which the price list is effective. Example: "2100-12-31" |
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" |
Created
Bad Request
{- "id": "Base Price List Purchase",
- "startDate": "2000-01-01",
- "endDate": "2030-12-31",
- "status": "active"
}
{- "ia::result": {
- "key": "6",
- "id": "Base Price List Purchase",
- "href": "/objects/purchasing/price-list/6"
}, - "ia::meta": {
- "totalCount": 1
}
}
Returns detailed information for a specified purchasing price list.
Subscription | Purchasing |
---|---|
User type | Business, Project Manager, Employee, Warehouse |
Permissions | List, View Price Lists |
key required | string System-assigned key for the purchasing price list. Example: 99 |
OK
Bad Request
{- "ia::result": {
- "key": "6",
- "id": "Base Price List Purchase",
- "startDate": "2000-01-01",
- "endDate": "2030-12-31",
- "status": "active",
- "href": "/objects/purchasing/price-list/6"
}, - "ia::meta": {
- "totalCount": 1
}
}
Updates an existing purchasing price list by setting field values. Any fields not provided remain unchanged.
Subscription | Purchasing |
---|---|
User type | Business, Warehouse |
Permissions | List, View, Edit Price Lists |
key required | string System-assigned key for the purchasing price list. Example: 99 |
appliesTo | string Application |
startDate | string <date> Start date for the time frame in which the price list is effective. Example: "2021-01-01" |
endDate | string <date> End date for the time frame in which the price list is effective. Example: "2100-12-31" |
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" |
OK
Bad Request
{- "startDate": "2021-01-01",
- "endDate": "2100-01-01"
}
{- "ia::result": {
- "key": "6",
- "id": "Base Price List Purchase",
- "href": "/objects/purchasing/price-list/6"
}, - "ia::meta": {
- "totalCount": 1
}
}
Deletes a purchasing price list. A price list can be deleted if it has not been assigned to any objects. This removes the price list and all of its associated price list entries from the system.
Subscription | Purchasing |
---|---|
User type | Business, Warehouse |
Permissions | List, View, Delete Price Lists |
key required | string System-assigned key for the purchasing price list. Example: 99 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "purchasing/price-list" | ||||||||
fields | Array of strings List of fields to include in the response. Can be any combination of these:
Example: ["key","id","max:vendor.creditLimit"] | ||||||||
Array of equal (object) or not equal (object) or less than (object) or (less than or equal (object)) or greater than (object) or (greater than or equal (object)) or in (object) or not in (object) or between (object) or not between (object) or contains (object) or does not contain (object) or has (object) or starts with (object) or does not start with (object) or ends with (object) or does not end with (object) Filter conditions to select the objects to return based on their field values. You use operators and conditions to build your filter, such as Example: [{"$eq":{"status":"active"}},{"$gt":{"totalDue":"1000"}},{"$contains":{"name":"Acme"}}] | |||||||||
Array Any of: Field value must be equal to this specified value. For date fields, you can use these macro values that are relative to the current date or the
These are most useful for queries that you want to save and use repeatedly, such as for views or reports. Just change the For example,
| |||||||||
filterExpression | string Default: "and" Logical operators to apply when there are multiple filter conditions. The conditions in the Shortcuts:
Example: "(1 and 2) or 3" | ||||||||
| |||||||||
Array of objects Set the order of the results by specifying field names to sort by and whether they should be in ascending or descending order. Example: [{"totalDue":"asc"},{"lastPaymentMadeDate":"desc"}] | |||||||||
Array
| |||||||||
start | integer First record of the result set to include in the response. Example: 1 | ||||||||
size | integer Number of records to include in the result set, 4000 maximum. Example: 100 |
OK
Bad Request
{- "object": "purchasing/price-list",
- "filters": [
- {
- "$eq": {
- "status": "active"
}
}
], - "fields": [
- "key",
- "id",
- "startDate",
- "href"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "1",
- "id": "Base Price List",
- "startDate": "2022-01-01",
- "href": "/objects/purchasing/price-list/1"
}, - {
- "key": "4",
- "id": "Purchasing Cost Price List",
- "startDate": "2022-01-01",
- "href": "/objects/purchasing/price-list/4"
}, - {
- "key": "20",
- "id": "Sam Barnes Company Price List",
- "startDate": "2023-05-28",
- "href": "/objects/purchasing/price-list/20"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}