Testing
Reserved Scenarios
Fixed RC numbers for deterministic staging responses and webhook flows.
Why these RC numbers exist
The staging replica uses reserved RC numbers to make error handling and lifecycle testing predictable. Use them when you want to validate a specific branch in your integration without waiting for random data.
| Status | Meaning | Notes |
|---|---|---|
| STG409DELETD | Deleted vehicle conflict | Challan search returns 409 with a deleted-vehicle style message. |
| STG409FOREGN | Organization mismatch conflict | Challan search returns 409 and indicates the vehicle belongs elsewhere. |
| STG502UPSTRM | Upstream fetch failure | Challan search returns 502 and emits challan_search.failed. |
| STG429LIMIT | Daily limit simulation | Search and payment-link generation return a daily-limit style 429. |
| STG409PAYBLK | Non-payable challans | Search generates non-payable challans so payment-link creation returns 409. |
| STGPAYEXPIRE | Immediate expired payment result | Payment-link create returns ACTIVE, then status becomes EXPIRED and payment_link.expired is emitted. |
| STGPAYFAILED | Immediate failed payment result | Payment-link create returns ACTIVE, then status becomes FAILED and payment_link.failed is emitted. |
Common testing pattern
- Generate a staging key.
- Search a normal RC number once with
rcTypeandcityId. - Create a payment link and verify the default
PAIDflow. - Repeat with one reserved RC number to verify your error handling or alternate webhook branch.
First-search reminder
Even in staging, a brand new RC search still requires:
rcNumberrcTypecityId
After the first successful search, the staging replica reuses the stored dummy vehicle and challans for that API key.
Webhook expectations
STG502UPSTRMtriggerschallan_search.failed- Standard successful searches trigger
challan_search.completed - Standard payment links emit
payment_link.createdfollowed bypayment_link.paid STGPAYEXPIREemitspayment_link.createdthenpayment_link.expiredSTGPAYFAILEDemitspayment_link.createdthenpayment_link.failed
