Skip to main content
The importer motion covers customs duty with scrips instead of cash. An importer facing a Bill of Entry funds the duty below face value: a credit that settles duty at face is worth nearly face to the buyer, and the difference is the saving.
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

Verify and authorize exactly as for an exporter. The firm buys once its state is connected.

2. Quote a duty requirement

Pass the duty amount you need covered as requirement_paise:
Because scrips transfer whole, the cover is the cheapest whole-credit bundle assembled to meet the requirement. 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.