Open a $2 receipted session
session_openOpen a $2 receipted negotiation session: deterministic, replayable, every move signed.
PAID ($2 once, from your credit balance) — the $2 covers EVERY move of this negotiation (up to 10 moves, 7 days), tuned to the category. A new key's 50¢ starter credit is a taste, not enough for a session — top up first. category: resale | supply | retail. side: buy | sell. walk_away = your true floor (sell) / ceiling (buy) — private, never crossed. Pass their_offers to get the first move back immediately with the session. Subsequent moves: session_advise with the session_id — no further charge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | RNG seed for the deterministic engine (default 0). | |
| side | Yes | Which side you're on: 'buy' or 'sell'. | |
| target | Yes | Your aspiration price in dollars. | |
| api_key | Yes | Your SNHP API key; $2 is debited from its credit balance (covers every move of this one negotiation). | |
| category | Yes | Negotiation category for tuning: 'resale' | 'supply' | 'retail'. | |
| my_offers | No | Your own offers so far, in dollars, oldest first (optional). | |
| walk_away | Yes | Your true reservation in dollars — floor (sell) / ceiling (buy); private, never crossed. | |
| rounds_left | No | Bargaining rounds remaining for this move (optional; overrides the category default). | |
| their_offers | No | The other side's offers so far, in dollars, oldest first — pass to get the first move back with the session (optional). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | ||
| error | No | ||
| funding | No | ||
| receipt | No | ||
| category | No | ||
| max_moves | No | ||
| expires_at | No | ||
| first_move | No | ||
| how_to_pay | No | ||
| session_id | No | ||
| price_cents | No | ||
| context_hash | No | ||
| balance_after | No | ||
| first_move_error | No | ||
| price_millicents | No |