API ReferenceMerchant agent

Start one negotiation in the background

POST
/console/api/negotiate

Runs case n (offer, buyer accepts, PayPal shaped record read back) on the local provider in the background. Read progress with getNegotiation. Only one runs at a time.

Authorization

consoleSession csrfToken
clearwake_console<token>

Set by GET /console/api/session. HttpOnly, SameSite=Strict, 8 hours.

In: cookie

X-Clearwake-CSRF<token>

The csrf value from GET /console/api/session, an HMAC of the session id. Required on every POST.

In: header

Request Body

application/json

An empty JSON object.

An empty JSON object. The route takes no fields.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/console/api/negotiate" \  -H "Content-Type: application/json" \  -d '{}'
{  "started": true,  "from": 0}