Ledger and reports
POST/v1/guarantee/simulate-claim

Simulate guarantee claim

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/guarantee/simulate-claim" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"amount_base_units":"50000"}'

Records a simulated claim against the Guarantee pool, optionally tied to a dispute, and posts it to the simulated ledger. Requires reconcile; not available to merchants; the amount must be between 1 and the pool balance.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/guarantee/simulate-claimBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Body

application/json · required. Fields are listed under Request body below.

Requires permissionreconcile
Held by finance. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Request Body

application/json
  1. body
amount_base_units*Amount Base Units

Amount in integer base units, carried as a string (USDC and USDT have 6 decimals: "50000" = 0.05).

dispute_id?|

Dispute id (dsp_...).

Response Body

Success.

application/json
  1. response
simulated?Simulated

True when the figure is simulated and no funds move.

Defaulttrue
claim*
pool*
ledger_txn_id*Ledger Txn Id
[key: string]?any