Playbooks for the last mile.
Practical guides on RTO, COD and DPDP for Indian D2C teams — plus developer docs. We'd rather ship these properly than pad this page, so here's what's coming and what's live.
The RTO playbook
How to score, verify and recover risky COD orders — and what good RTO looks like for Indian D2C.
- Building a risk baseline
- Prepaid incentive maths
- Lane & pincode rules
COD best practices
Turning cash on delivery from a liability into a controllable, profitable channel.
- When to add a COD fee
- OTP & WhatsApp confirmation
- Partial-COD for high-ticket
DPDP for D2C
What India's Digital Personal Data Protection Act means for checkout, consent and customer data.
- Consent done right
- Server-side analytics & DPDP
- Honouring withdrawal
Developer docs
Open APIs, webhooks and the JS SDK — build custom surfaces on ShopnTap.
- Quickstart & auth
- Mounting Magic Checkout
- Webhook events
Build on the API.
Mount checkout in your own frontend, read COD risk at order time, and subscribe to webhooks for fulfilment — all through a typed GraphQL API and JS SDK. It's API-first and open, never a locked plugin.
- GraphQL schema for orders, risk, settlements and consent.
- Webhooks for order state, risk decisions and RTO events.
- JS SDK to embed checkout and score carts client- or server-side.
# Score a cart for COD / RTO risk
query ScoreCart($cartId: ID!) {
riskScore(cartId: $cartId) {
tier # low | medium | high
score # 0–100
reasons # human-readable
suggestedAction # NUDGE_PREPAID …
}
}Illustrative query — schema shared on request.
Want a guide before it's published?
Tell us which topic matters most to your team right now and we'll share our working notes — and let you know the moment the full version ships.