TAG LINE
TAG LINE
SMALL TITLE
Price books allow packages to be setup with different pricing across multiple currencies in different regions that you define..
identity READ-ONLY | "identity": 16 Type: Number This is the unique numeric identifier for the PriceBook |
ownerId READ-ONLY | "ownerId": 25 Type: Number Unique identifier for the associated Owner object. |
ownerName READ-ONLY | "ownerName": "Sample Name" Type: String The name of the object associated with the ownerId property. |
name | "name": "Authorized" Type: String User defined name for the Price Book. |
priceBookRegionId | "priceBookRegionId": 8 Type: Number Unique identifier for the associated PriceBookRegion object. |
priceBookRegionName | "priceBookRegionName": "Sample Name" Type: String The name of the object associated with the priceBookRegionId property. |
description | "description": "Authorized" Type: String User defined description for the Price Book. |
isStandard | "isStandard": true Type: Boolean Determines if the Price Book is the default price book in use. |
isActive | "isActive": true Type: Boolean Determines if the Price Book is active or not. |
created READ-ONLY | "created": "2021-04-26T15:25:27.587Z" Type: Date This is a system generated date when the record was created. Date and time values are specified in the ISO 8601 format. |
The PATCH verb allows you to update an object. Just like a put, you only need to supply the fields that will be updated in the payload. However, a patch allows you to update many objects at once.
PATCH operations can be used as a standard API call. Below you will find the child objects that can be updated as part of PATCH operations for the PriceBook object.
Standard PATCH objects:
DataFlow PATCH objects:
DELETE | PriceBook/{id} |
Delete an instance of the PriceBook object. Upon successful delete, this API will return a record of all of the related objects deleted with this operation. The specifics on which objects have been deleted will depend on which related objects have been populated in the system. | |
{id} | Unique identifier for the PriceBook object. |
Delete an instance of the PriceBook object. DELETE PriceBook/{id} HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "type": "delete", "results": { "totalCount": 4, "items": [ { "identity": 1, "action": "deleted", "dtoTypeKey": "priceBook" }, { "lhsId": 2, "rhsId": 2, "action": "detached", "dtoTypeKey": "sampleObjectConnector" }, { "foreignKeyIdentity": 2, "action": "deleted", "dtoTypeKey": "sampleObject" } ] } } |
GET | PriceBook/ |
Retrieve all of the PriceBook objects. | |
Retrieve all of the PriceBook objects. GET PriceBook/ HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "totalCount": 1, "items": [ { "identity": 1, "ownerId": 24, "ownerName": "Sample Text Data", "name": "Authorized", "priceBookRegionId": 11, "priceBookRegionName": "Sample Text Data", "description": "Authorized", "isStandard": true, "isActive": true, "created": "2021-04-26T15:25:27.587Z" } ] } |
GET | PriceBook/Paged |
Retrieve all of the PriceBook objects in a paged fashion. This endpoint implements pagination for its results. Individual pages can be requested to return a particular paged set in the list of results. To learn more, see details on working with paginated endpoints. | |
Retrieve all of the PriceBook objects in a paged fashion. GET PriceBook/Paged HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "pagination": { "pageNumber": 1, "pageSize": 20, "excludeTotalCount": false }, "pagedResults": { "totalCount": 1, "items": [ { "identity": 1, "ownerId": 17, "ownerName": "Sample Text Data", "name": "Authorized", "priceBookRegionId": 26, "priceBookRegionName": "Sample Text Data", "description": "Authorized", "isStandard": true, "isActive": true, "created": "2021-04-26T15:25:27.587Z" } ] } } |
GET | PriceBook/Paged/Detail |
Retrieve all of the PriceBook objects in a paged fashion with all object details. This endpoint returns additional detailed data related to this object. The specifics on which data is returned will depend on which related objects have been populated in the system. | |
Retrieve all of the PriceBook objects in a paged fashion with all object details. GET PriceBook/Paged/Detail HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "pagination": { "pageNumber": 1, "pageSize": 20, "excludeTotalCount": false }, "pagedResults": { "totalCount": 1, "items": [ { "identity": 1, "ownerId": 24, "ownerName": "Sample Text Data", "name": "Authorized", "priceBookRegionId": 3, "priceBookRegionName": "Sample Text Data", "description": "Authorized", "isStandard": true, "isActive": true, "created": "2021-04-26T15:25:27.587Z", "details": { "packageFrequencyList": [ { "identity": 40, "packageId": 78, "packageName": "Sample Text Data", "packageFrequencyId": 86, "packageFrequencyName": "Sample Text Data", "packageCurrencyId": 82, "currencyId": 7, "currencyName": "Sample Text Data", "currencyCode": "Sample Text Data" } ] } } ] } } |
GET | PriceBook/{id} |
Retrieve an instance of the PriceBook object by its ID. | |
{id} | Unique identifier for the PriceBook object. |
Retrieve an instance of the PriceBook object by its ID. GET PriceBook/{id} HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "instance": { "identity": 1, "ownerId": 23, "ownerName": "Sample Text Data", "name": "Authorized", "priceBookRegionId": 26, "priceBookRegionName": "Sample Text Data", "description": "Authorized", "isStandard": true, "isActive": true, "created": "2021-04-26T15:25:27.587Z" } } |
GET | PriceBook/{id}/Detail |
Retrieve deep detail of the PriceBook object by its ID. This endpoint returns additional detailed data related to this object. The specifics on which data is returned will depend on which related objects have been populated in the system. | |
{id} | Unique identifier for the PriceBook object. |
Retrieve deep detail of the PriceBook object by its ID. GET PriceBook/{id}/Detail HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "instance": { "identity": 1, "ownerId": 2, "ownerName": "Sample Text Data", "name": "Authorized", "priceBookRegionId": 20, "priceBookRegionName": "Sample Text Data", "description": "Authorized", "isStandard": true, "isActive": true, "created": "2021-04-26T15:25:27.587Z", "details": { "packageFrequencyList": [ { "identity": 40, "packageId": 78, "packageName": "Sample Text Data", "packageFrequencyId": 86, "packageFrequencyName": "Sample Text Data", "packageCurrencyId": 82, "currencyId": 7, "currencyName": "Sample Text Data", "currencyCode": "Sample Text Data" } ] } } } |
PATCH | PriceBook/{id} |
Update or Add the PriceBook object and optionally make changes to any child objects. Patch end points allow for adding/updating multiple related entities and the results of those changes will be reported in the response JSON payload in the items array. | |
{id} | Unique identifier for the PriceBook object. |
Update or Add the PriceBook object and optionally make changes to any child objects. PATCH PriceBook/{id} { "details": {}, "priceBooks": { "items": [ { "patchType": "create", "patchClientId": 1, "name": "Authorized", "priceBookRegionId": 9, "description": "Authorized", "isStandard": true, "isActive": true } ] } } HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "type": "patch", "results": { "totalCount": 1, "items": [ { "identity": 1, "action": "created", "dtoTypeKey": "priceBook", "instance": { "identity": 1, "ownerId": 21, "ownerName": "Sample Text Data", "name": "Authorized", "priceBookRegionId": 8, "priceBookRegionName": "Sample Text Data", "description": "Authorized", "isStandard": true, "isActive": true, "created": "2021-04-26T15:25:27.587Z" } } ] } } |
POST | PriceBook/ |
Create a new instance of the PriceBook object. | |
Create a new instance of the PriceBook object. POST PriceBook/ { "name": "Authorized", "priceBookRegionId": 22, "description": "Authorized", "isStandard": true, "isActive": true } HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "type": "create", "results": { "totalCount": 1, "items": [ { "identity": 1, "ownerId": 11, "ownerName": "Sample Text Data", "name": "Authorized", "priceBookRegionId": 8, "priceBookRegionName": "Sample Text Data", "description": "Authorized", "isStandard": true, "isActive": true, "created": "2021-04-26T15:25:27.587Z" } ] } } |
PUT | PriceBook/{id} |
Update an existing instance of the PriceBook object. | |
Update an existing instance of the PriceBook object. PUT PriceBook/{id} { "identity": 1, "name": "Authorized", "priceBookRegionId": 24, "description": "Authorized", "isStandard": true, "isActive": true } HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "type": "update", "results": { "totalCount": 1, "items": [ { "identity": 1, "ownerId": 23, "ownerName": "Sample Text Data", "name": "Authorized", "priceBookRegionId": 16, "priceBookRegionName": "Sample Text Data", "description": "Authorized", "isStandard": true, "isActive": true, "created": "2021-04-26T15:25:27.587Z" } ] } } |