Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenakh97 committed Jul 2, 2024
1 parent 93dd6c4 commit 7df4b7d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,29 @@ Returns
}
```
### ICCID
The structure of an ICCID according to the International Telecommunication Union
should be:
![IccidSchema](./docs/fig1.png)
This gives the structure:
`ICCID = MII + CC + IIN + IAIN + C`
Example Onomondo SIM:
`ICCID = 89 + 45 + 73 + 0000271204 + 3`
### API Response
The API will return different status codes based on different scenarios:
| StatusCode | Explanation |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| 200 | The request was successful and you should get the most recent data from our database. If data is older than 5 minutes, new data will be fetched. |
| 400 | Bad request. The request parameters didn't validate. Either not a valid iccid or from a not supported issuer. |
| 400 | Bad request. The request parameters didn't validate. Either not a valid iccid or from an issuer that we don't support. |
| 404 | Not found. The SIM doesn't exist in the issuers API. This response will be cached for 30 days. |
| 409 | No information about SIM in cache. Try again later, and you will get either a 404 if the SIM doensn't exist or 200 with data. |
| 500 | Internal Error. |
Expand Down
Binary file added docs/structure-of-iccid-according-to-itu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7df4b7d

Please sign in to comment.