http://localhost:8081/api/v1/liveRequires omni_api_live_* key (or Live JWT). Scores against the live Sri Lanka & International network. Staging keys are rejected with 403.
http://localhost:8081/api/v1/stagingRequires omni_api_test_* key (or Staging JWT). Stores zero data (data_collected: false) and returns deterministic risk tiers for sample numbers. Live keys are rejected with 403.
/api/v1/staging/risks/checkCheck buyer phone risk & country tag without creating an order • Live Quota Cost: 1 (0 in Staging)
curl -X POST "http://localhost:8081/api/v1/staging/risks/check" \
-H "Authorization: Bearer omni_api_test_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"phone":"0770009999"}'Interactive Swagger Simulation Sandbox
Test live requests against /api/v1/staging/* directly from your browser. Zero quota used · zero data collected.
8 Fault-Aware Return Reason Codes
Pass one of these exact codes to POST /orders/{order_number}/return or POST /risks/reports.
CUSTOMER_REFUSED+1 StrikeBuyer refused parcel at doorstep
FAKE_ADDRESS_OR_NO_ANSWER+1 StrikeFake address or phone unreachable
CHANGED_MIND_NO_PICKUP+1 StrikeBuyer changed mind after dispatch
REPEAT_PRANK_ORDER+1 StrikeConfirmed prank / duplicate fake COD
MERCHANT_WRONG_ITEM0 PenaltyWrong SKU/size/color packed by merchant
MERCHANT_DAMAGED_ITEM0 PenaltyDamaged item or packaging
COURIER_LOST_OR_DELAYED0 PenaltyCourier delay or lost parcel
CUSTOMER_EXCHANGE_REQUEST0 PenaltyLegitimate agreed size/model exchange