Skip to content

Main content

Basket Added Item Source Code

Record an explicit source code for a supplied basket-added item without inferring purchase motivation.

Loading tool…

Description

Record an explicit source code for a supplied basket-added item.

Consumer records distinguish events, choices, prices, quantities and supplied survey scales. A unit-price comparison requires comparable goods and quantity units, while a reversed score retains the original scale bounds. An observed time gap or selected option does not establish motivation, causation, consent or the fairness of a commercial practice.

Record an explicit source code for a supplied basket-added item.

When to use this tool

Use Basket Added Item Source Code when you already have basketId, itemId, suppliedSource and need to record an explicit source code for a supplied basket-added item.

How to use the tool and how it works

  1. Enter basketId, itemId, suppliedSource. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read token. Use the output convention below.

Enter basketId, itemId, suppliedSource using the field constraints below. Encode these values, in exactly that order, as a JSON array and return the serialized array as text in token. String values are preserved without trimming or external terminology lookup.1

Input fieldMeaning and unitsAccepted input
basketIdBasket IdRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192.
itemIdItem IdRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192.
suppliedSourceSupplied SourceRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
tokenTokenRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "basketId": "B17",
    "itemId": "I4",
    "suppliedSource": "search"
  },
  "output": {
    "token": "[\"B17\",\"I4\",\"search\"]"
  }
}

Limitations and assumptions

  • The result records supplied values without inferring purchase motivation. Sources and asserted relationships are not independently authenticated.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Review the original transaction, interface, survey and event records for a behavioral conclusion. Use the complete study design and applicable commercial terms when interpreting comparisons; local flags and ratios do not estimate demand or verify an actual customer experience.

References

  1. Calculation and input contract: consumer-behavior/basket-added-item-source-code — tool.io

Similar or alternative tools