Picnic icon

Picnic

Wrapper around the picnic-api npm package

Add Product To Cart

AI-generated

Summary

Add a specified quantity of a product to the Picnic shopping cart by providing the product ID and desired count.

Inputs

  • Product ID (required) — The unique identifier of the product to add to the cart.
  • Count — The number of units of the product to add; must be at least 1, defaults to 1.

Output shape

a single JSON object containing the operation name and the result of adding the product to the cart

The output JSON includes the 'operation' field set to 'addToCart' and a 'result' field with the API response detailing the updated cart state or confirmation of the addition.

Examples

Example 1: Add 3 units of a product with ID 'abc123' to the cart

Set Product ID to 'abc123' and Count to 3 in the node parameters.

Links

Discussion