negotiation policy

Draft the reply to a buyer's message, inside your rules

post/v1/reply

Request

  • Base URL: https://api.snhp.dev (the document declares no server; this is the origin it was published from)
  • URL: https://api.snhp.dev/v1/reply
  • Auth: none declared

Request body

policyobject required

The policy from /v1/policy/compile or /v1/policy/check (or a template).

messagestring required

The buyer's latest message, as they wrote it.

stateobject nullable

The state returned by the previous reply; omit to start.

enginestring nullable

The engine that decides offers; default: the policy's own engine (templates set their tested default), else bundle3.

flagsobject nullable

What YOUR records confirm about this buyer, e.g. {"new_customer": true}. Never what the buyer claims.

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.