SimahPro Direct - API Integration V 0.2
SimahPro Direct - API Integration V 0.2
Classification: Restricted
Classification: Restricted
API Integration
Version <0.2>
31- August - 2021
IT Development
Classification: Restricted
Revision History
Version Date Description Author(s)
0.1 11/04/2021 Draft Abuzieneh
0.2 31/08/2021
Contents
REVISION HISTORY ............................................................................................................................................................................2
1. INTRODUCTION .........................................................................................................................................................................2
WELCOME TO SIMAHPRO DIRECT, YOUR NEW CHANNEL TO EXPLORE ALL THE BENEFITS SIMAH CAN OFFER TO IT MEMBERS .............................................. 2
2. INTEGRATION ............................................................................................................................................................................3
3. AUTHENTICATION .....................................................................................................................................................................3
4. MEMBER REFERENCE NUMBER MAPPING .................................................................................................................................4
5. SERVICES ...................................................................................................................................................................................4
6. REQUEST ...................................................................................................................................................................................4
7. RESPONSE .................................................................................................................................................................................5
8. SECURITY ..................................................................................................................................................................................7
9. ERROR MESSAGES .....................................................................................................................................................................7
1. Introduction
Welcome to Simahpro direct, your new channel to explore all the benefits Simah can
offer to it members
https://spapiuat.simah.com/swagger/index.html
Classification: Restricted
2. Integration
For members to able to establish a connection between their system and Simah API, member has to provide a public
static IP to be whitelisted by Simah.
Members should obtain user name, password and URL for required environment in order to setup a connection with
Simah. Operation department at Simah will provide these information.
3. Authentication
The service authentication is based on Oauth 2.0 JWT token. In order to issue token please initiate the below request in
your corresponding programing language. The response will contain the JWT token if the authentication is valid,
otherwise the account will be blocked for 15 minutes after 3 failed attempts.
In case of successful response the subsequent requests Simah services will require the token to be passed as a bearer
authentication mechanism.
CURL Request:
POST /api/v1/Identity/login
"username": [username]
"password":[password]
CURL Response
"isSuccess": true,
"data": {
"token": "{token}"
},
"message": null
Token will be valid for a cetin period of time. Once expired , error number 401 will be returned and member need to
reissue the token
Classification: Restricted
1- Not to send reference number and rely on Simah default reference number which has the following format
2 0 0 1 1 1 E Q 0 1 0 1 2 1 1 5 3 3 1 2 3 4
2- To send their own reference number using any format they finds fit for them.
Allowed format: any number with a minimum length of 1 and max length of 42 digit, only “_” allowed as special
character.
If member choose to go with option 2, Simah will still prefix the reference number with the following code 20+[4 digit
member code] + [ 2 digit service code] when returning the response to the customer
For example, if member “Alpha” with member code = 777 tries to do enquires then
Service Reference simah receives from member in request Reference simah return to member in response
enquiry MemberReferenceNumber 200xxxEQMemberReferenceNumber
enquiry 112233445566 200777EQ112233445566
5. Services
6. Request
A sample request schema can be found under each type of request e.g. For Review enquiry:
Classification: Restricted
7. Response
A sample response schema can be found under each type of request under the 200 code response e.g. For Review
enquiry and the description for the properties are available by browsing the model:
Classification: Restricted
Lookups:
In order to do
Products /api/v1/Lookup/lookup/getallproducts
Get all lookup values for the products that are assigned to the member
Nationalities /api/v1/Lookup/lookup/nationalities
Get all lookup values for the nationalities
Country Codes
/api/v1/Lookup/lookup/countrycodes
Get all lookup values for the country codes
Classification: Restricted
Cities /api/v1/Lookup/lookup/cities
Get all lookup values for the cities
8. Security
The payload data traffic is encrypted using TLS encryption with rate limiting to prevent denial of service attacks. The
principle of least privilege is applied across the API to grant only the minimum required privileges.
The API uses strong authentication and authorization mechanism with authorization mechanism of OAuth 2.0 and
OpenID Connect.
9. Error Messages
Code Description
Classification: Restricted
Classification: Restricted