Retrieving Items in Transaction Scope

Data Retrieval Methods

Get Single Transaction-Scope Item

  • Description: Retrieves a specific transaction-scope item using the get function, requiring both a transaction key and an item key (UUID, ExternalID, or InternalID).

  • Syntax:

    pepperi.api.transactionScopeItems.get({
      transaction: { UUID: "<transaction UUID>" },
      item: { UUID: "<item UUID>" }, // or { ExternalID: "" } or { InternalID: 123 }
      fields: ["Price", "Item.Name"]
    });
  • Example:

    pepperi.api.transactionScopeItems.get({
      transaction: { UUID: "txn123e-74ac-4041-8bb1-a76a3b5e78d8" },
      item: { UUID: "itm456f-74ac-4041-8bb1-a76a3b5e78d9" },
      fields: ["Price", "Item.Name"]
    });
  • Returns:

    {
      "success": true,
      "object": {
        "UUID": "aefb523e-74ac-4041-8bb1-a76a3b5e78d8",
        "Price": 123.4,
        "Item.Name": "Item AB Test1"
      }
    }

Search List of Transaction-Scope Items by Filter

  • Description: Retrieves multiple transaction-scope items using the search function, available from CPI 16. Requires a transaction key and supports filters, sorting, page size, and page number.

  • Syntax:

  • Example:

  • Returns:

Last updated

Was this helpful?