Retrieving Standard Resources
Data Retrieval Methods
Get Single Object by Unique Key
Description: Retrieves a single object using the get function for the desired resource, supporting only UUID as the key.
Supported Resources:
accounts
transactions
activities
transactionLines
transactionScopeItems
from CPI 15.85
items
catalogs
users
contacts
Syntax:
pepperi.api.<resource>.get({ key: { UUID: "<UUID>" }, fields: [<string array of relevant field names>] });Example:
pepperi.api.activities.get({ key: { UUID: "aefb523e-74ac-4041-8bb1-a76a3b5e78d8" }, fields: ["UUID", "ExternalID", "MyTSA"] });Returns:
{ "success": true, "object": { "UUID": "aefb523e-74ac-4041-8bb1-a76a3b5e78d8", "ExternalID": "ABC123", "MyTSA": 34.56 } }The returned object can be used for update functions.
Search List of Objects by Filter
Description: Retrieves multiple objects using the search function with a filter, sort, page size, and page number.
Supported Resources:
accounts
transactions
activities
transactionLines
transactionScopeItems
from CPI 15.85
items
catalogs
users
contacts
Syntax:
Example:
Returns:
Retrieve Item’s Images (To Be Developed)
Description: Planned enhancement to add 12 new fields to the items resource for image retrieval, supporting up to 6 images per item.
Fields to Add: ImageURL, ImageURI, ImageURL2, ImageURI2, ..., up to ImageURL6, ImageURI6.
Behavior: Similar to attachments.get, where:
ImageURL returns a URL.
ImageURI returns Base64 content on mobile devices and a URL on the Web App.
Status: To be developed; not yet available in current API versions.
Last updated
Was this helpful?