Professional Documents
Culture Documents
Host Order Api V2
Host Order Api V2
SGS
المجلس الوطني االتحادي
1|Page
Smart Galaxy Solutions
2|Page
Smart Galaxy Solutions
http://fnchqapps01/FncPurchasingAPI/api/SaveNewDataHostingOrder
http://fncstgapp01/PurchasingEndPoint/api/SaveNewDataHostingOrder
The following unique IDs can be used to invoke the virtual service for each user.
http://fnchqapps01/FncPurchasingAPI /api/GetAllVendorList
the QA link:-
http://fncstgapp01/PurchasingEndPoint//api/GetAllVendorList
Value Mandatory/
Element / Attribute Notes
Optional
Content-Type application/ The Request Header Content Type
Mandatory
json
Authorization token Bearer Token Used for Authorization
Mandatory
Created by the Login API
3|Page
Smart Galaxy Solutions
HostingOrderFiles
Mandatory/ Element in
Element / Attribute Type Notes
Optional Arabic
This will be the files attachments of the
HostingOrderFilesDto
request
File Name of Attachment and extension نوع الملف
FileNameWithExtention string Mandatory
(ex, Pic.png)
FileAttachment Byte[] Mandatory The Physically file attachments الملف
HostingOrderDtl
Mandatory/ Element in
Element / Attribute Type Notes
Optional Arabic
HostingOrderDtlDto This will be the details of request
HostName string Mandatory Host Name أسم المستضيف
FromDate Datetime? Mandatory From Date من تاريخ
ToDate Datetime? Mandatory To Date إلى تاريخ
4|Page
Smart Galaxy Solutions
Example:
{
{
"TransYear" : 2023 ,
"HostingOrderDate" :"2023-05-05"
,"SAccNO" : "4121"
,"Note" :"Test1"
,"HostingOrderFiles" : [
{
"FileNameWithExtention" : "Pic.jpg",
"FileAttachment" : "/9j/4AAQSkZJRgABAQEASABIAAD/”
}]
, "HostingOrderDtl" : [{
"HostName":"kholoud Mohamed"
,"FromDate" : "2023-05-05"
,"ToDate":"2023-05-10"
}]
Mandatory/
Element / Attribute Type Notes
Optional
This will be the main response object
ResultApi
containing data in properties
Status int - 0 Not Valid , 1 is valid
The respone Message in Arabic
MessageAr string -
Language
The respone Message in English
MessageEn string -
Language
Valid bool - Valid of not
Returned IDNo if succeed (Primary
IDNO Decimal -
Key of the Table)
5|Page
Smart Galaxy Solutions
Example:
{
"Status": 1,
"MessageAr": ""تم الحفظ بنجاح,
"MessageEn": "Saved Successfully ",
"Valid": true,
"IDNO": 20.0
6|Page