haggl_get_negotiation
Read the canonical state, current offer version, guidance and permitted actions of an existing negotiation. Use after human changes, reloads, transport switches or uncertain results; this does not open another session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Existing negotiation session id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Present only when the call failed: a machine-readable error code, e.g. quote_uncertain or rate_limited. | |
| error | No | Present only when the call failed: what went wrong. | |
| state | No | Canonical negotiation state. Follow allowed_actions. | |
| rounds | No | Each round: the offer and when it was made. | |
| status | No | Session status. | |
| guidance | No | What this merchant values, as contextual guidance. Evidence is optional. | |
| recovery | No | When the outcome is uncertain: the tool and session_id to read before retrying. | |
| retryable | No | Whether the same call may be retried. | |
| vendor_id | No | Vendor id. | |
| created_at | No | ISO 8601 time the session started. | |
| expires_at | No | ISO 8601 time the session expires. | |
| max_rounds | No | Most quote rounds in this session. | |
| next_steps | No | After acceptance: how the buyer redeems the offer (checkout_url, coupon_code, reference, expires_at, …). | |
| session_id | No | Negotiation session id. | |
| current_offer | No | The merchant's offer for the requested items. Merchant engines may add fields. | |
| current_round | No | Rounds used. | |
| accepted_offer | No | The merchant's offer for the requested items. Merchant engines may add fields. | |
| context_received | No | The buyer context fields received so far and their provenance. | |
| rounds_remaining | No | Rounds left. | |
| retry_after_seconds | No | When rate limited: seconds to wait before retrying. |