build_experience_note
Returns an UNSIGNED Nostr kind 422 'shopping experience' event template for a store, for you to sign with your own (ideally site-specific) key and publish to your own relays. KlickyMart never signs or publishes for you. Optionally POST the signed event to /reviews (or the submit_review tool). Location must be ZIP3, US state (US-KS) or country only. Proof tags (zap/preimage/cashu/order_hash = sha256 of the confirmation) mark a verified purchase. preset=checkout (record_checkout): one call at the payment screen records subtotal, shipping and tax for a ZIP3; depth is then optional.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | a store or payment fee, e.g. a gift-card fee | |
| tax | No | ||
| agent | No | ||
| basis | No | visit = you went to the store; directory = written from KlickyMart data; secondhand = relayed; omitted = unknown. Only visit counts toward the chart. | |
| depth | No | furthest stage reached (same stages as checkout maps; 'attempt' accepted as an alias) | |
| guest | No | yes/no are aliases for true/false | |
| price | No | the item price you saw (alias price_seen) | |
| steps | No | ||
| total | No | ||
| walls | No | ||
| domain | Yes | ||
| preset | No | checkout = record_checkout: call once at the payment screen, before paying. Needs region (ZIP3 only), price_seen (subtotal), shipping, tax; total optional and checked. Sets basis=visit, depth=payment, shipping_source=checkout. 2+ independent aged keys are needed before a quote drives est_total on /landed. | |
| rating | No | ||
| region | No | ZIP3, US-XX or country code | |
| strict | No | reject unknown fields instead of ignoring them with a warning | |
| blocker | No | ||
| product | No | product URL or GTIN | |
| currency | No | ||
| pay_used | No | vocab pay code (see /vocab.json), e.g. ln, btc, card, spay | |
| shipping | No | ||
| btc_route | No | ||
| delivered | No | ||
| estimated | No | true = every amount you give is an estimate; false = none; or a list of amount kinds you estimated (array or comma string, e.g. tax,total) | |
| narrative | No | ||
| duration_s | No | ||
| price_paid | No | what you actually paid, if you paid | |
| price_seen | No | ||
| pay_offered | No | vocab codes; an empty list means you looked and saw none (tagged none-observed); omit if not checked | |
| price_source | No | price copied from KlickyMart data or read on the store | |
| delivery_days | No | ||
| shipping_source | No | where the shipping amount came from: the store's shipping policy, the checkout itself, or unknown | |
| account_required | No | ||
| shown_before_payment | No | comma list: tax, shipping, none, not-observed or unknown | |
| tax_shown_before_payment | No | ||
| shipping_shown_before_payment | No |