NinjaPipe icon

NinjaPipe

Production-ready NinjaPipe node with one action interface, safer validation, Databin webhook support, and update-friendly UX

Product → Get Product

AI-generated

Summary

Retrieve a product record by its ID from the NinjaPipe API.

Inputs

  • id (required) — The Product ID to fetch.
  • resourcePathOverride — Override the default product path (e.g., '/products') if the workspace uses a different endpoint.
  • showAdvanced — Show advanced options such as path override and raw JSON fields.
  • flattenCustomFields — Flatten custom fields into cf_* keys in the returned record.

Output shape

a single product record

The record is flattened when flattenCustomFields is true; otherwise the raw API response is returned. Errors are thrown unless continueOnFail is enabled.

Examples

Example 1: Basic retrieval of a product by ID

resource = Product, operation = Get Product, id = '12345', flattenCustomFields = true

Example 2: Retrieve with custom path and raw output

resource = Product, operation = Get Product, id = '987', resourcePathOverride = '/custom/products', flattenCustomFields = false

Example 3: Retrieve with advanced options enabled

resource = Product, operation = Get Product, id = '555', showAdvanced = true, flattenCustomFields = true

Links

Discussion