Private
impersonatingCreate a new cost center. If ID is provided and an object with that ID already exists, a 409 (conflict) error is returned. Check out the docs for more info
ID of the buyer.
Required fields: Name
Delete a cost center. Check out the docs for more info
ID of the buyer.
ID of the cost center.
Delete a cost center assignment. Check out the docs for more info
ID of the buyer.
ID of the cost center.
Optional
userID of the user group.
Optional
userID?: stringID of the user.
Get a single cost center. Check out the docs for more info
ID of the buyer.
ID of the cost center.
Get a list of cost centers. Check out the docs for more info
ID of the buyer.
Optional
filters?: FiltersAn object or dictionary representing key/value pairs to apply as filters. Valid keys are top-level properties of the returned model or 'xp.???'
Optional
page?: numberPage of results to return. Default: 1. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.
Optional
pageNumber of results to return per page. Default: 20, max: 100.
Optional
search?: stringWord or phrase to search for.
Optional
searchComma-delimited list of fields to search on.
Optional
sortComma-delimited list of fields to sort by.
Get a list of cost center assignments. Check out the docs for more info
ID of the buyer.
Optional
costID of the cost center.
Optional
level?: PartyTypeLevel of the cost center assignment. Possible values: User, Group, Company.
Optional
page?: numberPage of results to return. Default: 1. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.
Optional
pageNumber of results to return per page. Default: 20, max: 100.
Optional
userID of the user group.
Optional
userID?: stringID of the user.
Partially update a cost center. Check out the docs for more info
ID of the buyer.
ID of the cost center.
Create or update a cost center. If an object with the same ID already exists, it will be overwritten. Check out the docs for more info
ID of the buyer.
ID of the cost center.
Required fields: Name
Create or update a cost center assignment. Check out the docs for more info
ID of the buyer.
Required fields: CostCenterID
Generated using TypeDoc
Description
enables impersonation by calling the subsequent method with the stored impersonation token
Example