API ReferenceMerchant agent
Steps of the running or last negotiation
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.
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/console/api/negotiation"{ "running": false, "error": null, "case": "PP-D-REH-49D4D35C16", "steps": [ { "n": 1, "step": "PP-D-REH-49D4D35C16:decision", "action": "clearwake.dispute.decision", "ok": true, "at": "05:05:48" }, { "n": 2, "step": "PP-D-REH-49D4D35C16:offer", "action": "clearwake.dispute.offer_sent", "ok": true, "at": "05:05:48" }, { "n": 3, "step": "PP-D-REH-49D4D35C16:settlement", "action": "clearwake.dispute.settlement", "ok": false, "at": "05:05:48" }, { "n": 4, "step": "PP-D-REH-49D4D35C16:settlement", "action": "clearwake.dispute.settlement", "ok": true, "at": "05:05:48" } ]}Reconcile an UNKNOWN refund from the provider record POST
Reads the provider's refund for the case's stable request id and checks amount, currency and status. Nothing is sent again. Only a refund in state UNKNOWN is reconciled.
Start one negotiation in the background POST
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.