forked from Shared/esg
parsian inquiries implemented
This commit is contained in:
@@ -352,9 +352,10 @@ POST /api/inquiry/sheba
|
||||
### Request Body
|
||||
```json
|
||||
{
|
||||
"accountOwnerType": "REAL",
|
||||
"nationalId": "0123456789",
|
||||
"shebaId": "IR123456789012345678901234"
|
||||
"accountOwnerType": "1",
|
||||
"nationalCode": "0123456789",
|
||||
"legalId": null,
|
||||
"sheba": "IR123456789012345678901234"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -362,10 +363,10 @@ POST /api/inquiry/sheba
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
|-------|------|----------|-------------|
|
||||
| accountOwnerType | string | Yes | Account owner type: "REAL" (person) or "LEGAL" (company) |
|
||||
| nationalId | string | Conditional | Required if accountOwnerType is "REAL" |
|
||||
| legalId | string | Conditional | Required if accountOwnerType is "LEGAL" |
|
||||
| shebaId | string | Yes | SHEBA/IBAN number (26 characters starting with IR) |
|
||||
| accountOwnerType | string | No | Account owner type; defaults to `"1"` in providers |
|
||||
| nationalCode | string | Yes | Iranian national code (10 digits) |
|
||||
| legalId | string | No | Legal identifier when needed by the selected account owner type |
|
||||
| sheba | string | Yes | SHEBA/IBAN number (26 characters starting with IR) |
|
||||
|
||||
### Success Response (200 OK)
|
||||
|
||||
@@ -398,12 +399,57 @@ curl -X POST https://api.example.com/api/inquiry/sheba \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "X-API-Key: your-api-key-here" \
|
||||
-d '{
|
||||
"accountOwnerType": "REAL",
|
||||
"nationalId": "0123456789",
|
||||
"shebaId": "IR123456789012345678901234"
|
||||
"accountOwnerType": "1",
|
||||
"nationalCode": "0123456789",
|
||||
"sheba": "IR123456789012345678901234"
|
||||
}'
|
||||
```
|
||||
|
||||
## Car Policy By Chassis
|
||||
|
||||
### Endpoint
|
||||
```
|
||||
POST /api/inquiry/policyByChassis
|
||||
```
|
||||
|
||||
### Request Body
|
||||
```json
|
||||
{
|
||||
"chassisNo": "NAAM01E15HK123456"
|
||||
}
|
||||
```
|
||||
|
||||
## Car Policy By Plate
|
||||
|
||||
### Endpoint
|
||||
```
|
||||
POST /api/inquiry/policyByPlate
|
||||
```
|
||||
|
||||
### Request Body
|
||||
```json
|
||||
{
|
||||
"plk1": "12",
|
||||
"plk2": "ب",
|
||||
"plk3": "345",
|
||||
"plksrl": "67"
|
||||
}
|
||||
```
|
||||
|
||||
## Car Policy By National Code
|
||||
|
||||
### Endpoint
|
||||
```
|
||||
POST /api/inquiry/policyByNationalCode
|
||||
```
|
||||
|
||||
### Request Body
|
||||
```json
|
||||
{
|
||||
"nationalCode": "0123456789"
|
||||
}
|
||||
```
|
||||
|
||||
## Error Responses
|
||||
|
||||
### 400 Bad Request - Invalid Input
|
||||
@@ -625,4 +671,4 @@ For API support:
|
||||
- **Documentation**: https://docs.example.com
|
||||
- **Status Page**: https://status.example.com
|
||||
- **Support Email**: support@example.com
|
||||
- **Emergency**: +98-21-1234-5678
|
||||
- **Emergency**: +98-21-1234-5678
|
||||
|
||||
Reference in New Issue
Block a user