Start one negotiation in the background
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 Set by GET /console/api/session. HttpOnly, SameSite=Strict, 8 hours.
In: cookie
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}Steps of the running or last negotiation GET
The steps of the negotiation started by `negotiate`, read from the merchant's signed receipt log as it grows. Each step is a receipt that was really written.
Start a fresh run POST
Opens a new data folder. Locally earlier folders are kept; in hosted mode they are deleted (`wiped`, `removed_folders`).