All calls below use the base URL and header from Authentication:
export BASE_URL=https://api.scripxhq.com and X-ScripX-Key: $SCRIPX_KEY. Run the whole flow in the sandbox first with a scripx_test_… key.1. Connect the importer firm
state is connected.
2. Quote a duty requirement
Pass the duty amount you need covered asrequirement_paise:
all_in_paise is what the importer pays in cash, savings_paise is the gain versus paying duty in full, and residual_paise is any duty left to settle in cash when a bundle cannot land exactly on the requirement.
3. Place the order with a ceiling
max_pct_bps is the buyer’s structural price ceiling: the order never fills above it.
4. Settlement applies the cover on ICEGATE
Buyer funds are locked before the scrip moves. On match, title transfers to the importer and the cover is applied against the Bill of Entry on ICEGATE. Settlement is delivery-versus-payment: if it cannot complete, it unwinds and refunds in full the same day. Track it with webhooks (order.matched, settlement.settled) or positions.