Gets a price lists with all properties.
URL
(GET) /api/pricing/pricelists/{id}
PARAMETERS
URL parameters are:
id | The price list ID | Integer, Mandatory |
RESULTS
Each element in items represents a price list:
plid | The price list ID | int |
code | The price list code. The default price lists (generally) has an empty string. This field can be set by the user in the UI. | string |
name | The name of the price list. | string |
cid | The company which owns the price list, i.e. which provides the services in the price list.
In other words: A price lists is always owned by the company which provides the listed services. Passing a client company to the API URL will return price lists owned by the master company. Hence be careful to understand the difference between the cid passed in the URL and cid of a price list. It is not necessarily the same! | int |
enabled | Indicates if the price list is enabled or disabled. A disabled price list cannot be used for cost calculation. | bool |
isDefault | True if this is the default price list for the company in the API URL. | bool |
isDraft | Indicates if the price list is a draft. Wordbee Translator proposes price list drafting workflows that involve the supplier company. Please check out the online user guides for how this works. | bool |
currency | A three letter currency code such as EUR or USD. | string |
currencyt | Title of currency such as "Euro" or "US dollars" | string |
comments | Internal comments. Not accessible to external users. Empty string if none. | string |
contractno | Internal contract number assigned to this price list. This field is visible to internal users only. Empty string if none. | string |
EXAMPLES
The following example is for a manager user accessing a job which is proposed to him/her. As a manager, the user has management level actions as well.
{ "id": "c231", "jobid": 231, "iscodyt": true, "status": 1, "statust": "Not assigned", "hasPredecessor": false, "assignment": { "mode": 0, "modet": "Fixed assignment", "cid": null, "cname": null, "uid": null, "uname": null, "wasAccepted": false }, "readOnly": false, "actions": [ { "id": "OPENING_ACCEPT_INACTIVE", "title": "Yes, I want to reserve this upcoming job!", "desc": "This job is still inactive but you can already reserve it now. This will put your name on the job.", "isinfo": false, "isprimary": true, "affectsRights": true, "style": "Green", "uicontrol": "Terms" }, { "id": "OPENING_DECLINE", "title": "Unfortunately, I have to decline this proposal.", "desc": "This will remove the job opening from your job list.", "isinfo": false, "isprimary": true, "affectsRights": true, "style": "Gray", "uicontrol": "None" }, { "id": "ADMIN_STATUS_NOTASSIGNED", "title": "Change status to 'Not assigned'", "desc": null, "isinfo": false, "isprimary": false, "affectsRights": true, "style": "Default", "uicontrol": "None" }, { "id": "ADMIN_STATUS_NOTSTARTED", "title": "Change status to 'Not started'", "desc": null, "isinfo": false, "isprimary": false, "affectsRights": true, "style": "Default", "uicontrol": "None" } ], "uicontrols": { "Terms": { "termsShow": true }, "None": null }, }