forked from Yara724/api
automatiacally previous stages submitted
This commit is contained in:
@@ -25,6 +25,22 @@ expertise on this same claim, supply `?expertiseId=44237`. A missing saved
|
||||
expertise ID without an explicit override returns 400. File and expertise IDs
|
||||
must be positive safe integers.
|
||||
|
||||
Local validation errors return a stable `code`, a specific Persian message, and
|
||||
the relevant field/product metadata. They do not collapse to the generic form
|
||||
validation message:
|
||||
|
||||
| Code | Meaning |
|
||||
|---|---|
|
||||
| `FANAVARAN_LOCAL_CLAIM_ID_INVALID` | `claimCaseId` must be a local MongoDB ObjectId, not the numeric external claim ID |
|
||||
| `FANAVARAN_HULL_CLAIM_REQUIRED` | The linked claim resolves to third-party; `actualProduct` and `expectedProduct` identify the mismatch |
|
||||
| `FANAVARAN_HULL_CLAIM_NOT_SUBMITTED` | No external `claimId` is saved for the local claim |
|
||||
| `FANAVARAN_HULL_EXPERTISE_ID_MISSING` | No expertise ID is saved and no override was supplied |
|
||||
| `FANAVARAN_HULL_FILE_ID_INVALID` / `FANAVARAN_HULL_EXPERTISE_ID_INVALID` | The selected external ID is not a positive safe integer |
|
||||
| `FANAVARAN_CLIENT_INVALID` | The requested tenant is unsupported |
|
||||
|
||||
Selecting `parsian` chooses the insurer; it does not change a third-party claim
|
||||
into a hull claim. These VHUD routes intentionally reject third-party claims.
|
||||
|
||||
Every response wraps the unmodified vendor body in `data`, with `clientKey`,
|
||||
`claimCaseId`, `claimId`, and the selected `fileId` or `expertiseId` when relevant:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user