This commit is contained in:
@@ -32,19 +32,23 @@ curl --request GET \
|
||||
|
||||
## Responses
|
||||
|
||||
All responses wrap the result in a top-level `data` object.
|
||||
|
||||
### Success — Prepaid
|
||||
|
||||
```json
|
||||
{
|
||||
"custType": "PRE",
|
||||
"msisdn": "9609654321"
|
||||
"data": {
|
||||
"custType": "PRE",
|
||||
"msisdn": "9609654321"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
| Field | Type | Description |
|
||||
|---|---|---|
|
||||
| `custType` | `string` | `"PRE"` = prepaid customer |
|
||||
| `msisdn` | `string` | The MSISDN that was queried |
|
||||
| `data.custType` | `string` | `"PRE"` = prepaid customer |
|
||||
| `data.msisdn` | `string` | The MSISDN that was queried |
|
||||
|
||||
→ Offer **Raastas** top-up only.
|
||||
|
||||
@@ -54,8 +58,10 @@ curl --request GET \
|
||||
|
||||
```json
|
||||
{
|
||||
"custType": "POST",
|
||||
"msisdn": "9609123456"
|
||||
"data": {
|
||||
"custType": "POST",
|
||||
"msisdn": "9609123456"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -67,8 +73,10 @@ curl --request GET \
|
||||
|
||||
```json
|
||||
{
|
||||
"custType": "HYBRID",
|
||||
"msisdn": "9609789012"
|
||||
"data": {
|
||||
"custType": "HYBRID",
|
||||
"msisdn": "9609789012"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -80,18 +88,20 @@ curl --request GET \
|
||||
|
||||
```json
|
||||
{
|
||||
"custType": null,
|
||||
"errorMessage": "Data Not Found",
|
||||
"msisdn": "9609000000"
|
||||
"data": {
|
||||
"custType": null,
|
||||
"errorMessage": "Data Not Found",
|
||||
"msisdn": "9609000000"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
| Field | Type | Description |
|
||||
|---|---|---|
|
||||
| `custType` | `null` | Number is not an Ooredoo subscriber |
|
||||
| `errorMessage` | `string` | `"Data Not Found"` |
|
||||
| `data.custType` | `null` | Number is not an Ooredoo subscriber |
|
||||
| `data.errorMessage` | `string` | `"Data Not Found"` |
|
||||
|
||||
Treat `custType: null` as unsupported — fall back to Dhiraagu lookup.
|
||||
Treat `custType: null` or absent as unsupported — fall back to Dhiraagu lookup.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user