Live Production APILIVE
http://localhost:8081/api/v1/live

Requires omni_api_live_* key (or Live JWT). Scores against the live Sri Lanka & International network. Staging keys are rejected with 403.

Staging Simulator API0 QUOTA · NO DATA COLLECTED
http://localhost:8081/api/v1/staging

Requires 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.

POST/api/v1/staging/risks/check

Check buyer phone risk & country tag without creating an order • Live Quota Cost: 1 (0 in Staging)

Dual Auth: Direct API Key or JWT
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.

STAGING KEYS ONLY (omni_api_test_*)
Quick-Fill Pre-Set Staging Sample Phone Numbers:

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 Strike

Buyer refused parcel at doorstep

FAKE_ADDRESS_OR_NO_ANSWER+1 Strike

Fake address or phone unreachable

CHANGED_MIND_NO_PICKUP+1 Strike

Buyer changed mind after dispatch

REPEAT_PRANK_ORDER+1 Strike

Confirmed prank / duplicate fake COD

MERCHANT_WRONG_ITEM0 Penalty

Wrong SKU/size/color packed by merchant

MERCHANT_DAMAGED_ITEM0 Penalty

Damaged item or packaging

COURIER_LOST_OR_DELAYED0 Penalty

Courier delay or lost parcel

CUSTOMER_EXCHANGE_REQUEST0 Penalty

Legitimate agreed size/model exchange