MOI

Get MOI Enquiry, Make Payment, and Initiate & Track Refund

SingleView B2B Payouts API allows you to access the following options related to SADAD MOIs:

  • Fetch updated MOI information using MOI Enquiry
  • Make payments for MOIs using MOI Payment
  • Initiate refunds using MOI Refund
  • Track MOI refund using Refund Status

MOI Enquiry

This service allows you to fetch updated information on SADAD MOI.

Endpoint details

Endpoint URLMethodAuthentication requirements
/api/enquiry/sadad/moiPOST1.clientid
2. clientsecret
3. Authorization: Bearer (Token)
4. SVReferenceID
5. CompanyId
6. Signature

Sample request

curl --location 'https://sandboxapi.onesingleview.com/api/enquiry/sadad/moi'
--header 'clientsecret: Enter-Client-Secret'
--header 'clientid: Enter-Client-Id'
--header 'SVReferenceID: Enter-SV-Reference-Id'
--header 'Device: Device-type'
--header 'DateTimeStamp: YYYY-MM-DDTHH:MM:SS'
--header 'CompanyId: Enter-Company-Id'
--header 'BaseCurrency: SAR'
--header 'Authorization: Bearer <Enter-Token>'
--header 'Content-Type: application/json'
--data '{
"Message": {  
  "OSVSadadMOIEnquiryRequest": {  
    "TransactionType": "SADADMOI",  
    "OSVSadadMOIEnquiry": [  
      {  
        "BankCode": "Enter_Bank_Code",  
        "CompanyCode": "Enter_Company_Code",  
        "TransactionReferenceNumber": "Enter_Transaction_Reference_Number",  
        "MessageDescription": "Enter_Message_Description",  
        "TransactionData": [  
          {  
            "SequenceNumber": "Enter_Sequence_Number",  
            "POINum": "0000000000",  
            "POIType": "Enter_POI_Type",  
            "AccountNumber": "Enter_Account_Number",  
            "BillerID": "000",  
            "BillCategory": "00",  
            "ServiceCode": "000",  
            "BranchCode": "00000",  
            "RequestType": "000",  
            "ID": "0000000000",  
            "Duration": "00"  
          }  
        ]  
      }  
    ]  
  }  
}'

Request description

JSON TagDescriptionData type
Message
Mandatory
Header information (client credentials)Object
OSVSadadMOIEnquiryRequest
Mandatory
Root node containing all the SADAD MOI informationObject
TransactionType
Mandatory
Type of transaction to be mentioned as SADADMOIString
OSVSadadMOIEnquiry
Mandatory
Tag carrying information on the SADAD MOI requestedObject
BankCode
Mandatory
Unique bank identification codeString
CompanyCode
Mandatory
Unique company identification codeString
TransactionReferenceNumber
Mandatory
Unique transaction reference numberString
MessageDescription
Mandatory
Details about the transactionString
TransactionData
Mandatory
Tag carrying information on the requested SADAD MOIObject
SequenceNumber
Mandatory
Unique sequence number of the SADAD MOIString
POINum
Mandatory
Unique customer identification detailsString
POIType
Mandatory
Type of customer identificationString
AccountNumber
Mandatory
Unique account number details of the SADAD MOIString
BillerId
Mandatory
Unique biller identification detailsString
BillCategory
Mandatory
Unique bill category of the SADAD MOIString
ServiceCode
Mandatory
Unique service identification detailsString
BranchCode
Mandatory
Unique branch identification details for the respective SADAD MOIString
RequestType
Mandatory
Type of requestString
ID
Mandatory
Unique identification detailsString
Duration
Mandatory
Duration of the requestNumerical

Sample response

{  
  "OSVSadadMOIEnquiryResponse": {  
    "MessageType": "SADADMOI",  
    "TimeStamp": "YYYY-MM-DDTHH:MM:SS",  
    "OSVSadadMOIEnquiry": [  
      {  
        "BankCode": "Bank_Code",  
        "CompanyCode": "Company_Code",  
        "TransactionReferenceNumber": "Transaction_Reference_Number",  
        "MessageDescription": "Message_Description",  
        "Status": "SUCCESS",  
        "TransactionData": [  
          {  
            "ID": "ID",  
            "BillerID": "Biller_Id",  
            "GroupPayId": 00000000,  
            "FeeReferenceId": "Fee_Reference_Id",  
            "SadadReferenceId": 0000000000,  
            "BeneficiaryName": "Beneficiary_Name",  
            "DueAmount": 0000,  
            "PreviousAmount": "0000",  
            "PmtIdType": "Payment_Id_Type",  
            "StatusDetail": "Success",  
            "StatusCode": "OK",  
            "FeeDetails": [  
              {  
                "Fees": {  
                  "FeeType": "Fee_Type",  
                  "FeeAmount": 0000  
                }  
              }  
            ]  
          }  
        ]  
      }  
    ]  
  }  
}

Response description

JSON TagDescriptionData type
OSVSadadMOIEnquiryResponseRoot tag carrying MOI enquiry responseObject
MessageTypeMessage type mentioned as SADADMOIString
TimeStampStamp denoting date and time of the responseString
OSVSadadMOIEnquiryTag carrying information on SADAD MOIObject
BankCodeUnique bank identification detailsString
CompanyCodeUnique company identification detailsString
TransactionReferenceNumberUnique transaction reference detailsString
MessageDescriptionDetails about the responseString
StatusStatus of the response for MOI enquiryBoolean
TransactionDataTag carrying transaction information for MOI enquiryObject
IDUnique customer identification detailsString
BillerIDUnique biller identification detailsString
GroupPayIdUnique group payment identification detailsString
FeeReferenceIdUnique fee reference identification detailsString
SadadReferenceIdUnique SADAD reference identification detailsString
BeneficiaryNameBeneficiary name for the SADAD MOIString
DueAmountDue amount for the SADAD MOINumerical
PreviousAmountAmount denoting any carried dues from previous monthNumerical
PmtIdTypeUnique payment identification typeString
StatusDetailDetails about the status of the MOIString
StatusCodeCode representing the status of MOI enquiryBoolean
FeeDetailsTag carrying information on MOI fee detailsObject
FeesTag carrying individual MOI fee detailsObject
FeeTypeDetails on MOI fee typeString
FeeAmountAmount denoting the MOI feeNumerical

MoI Payment

This service allows you to make payment for SADAD MOI.

Endpoint details

Endpoint URLMethodAuthentication requirements
/api/payment/sadad/moiPOST1.clientid
2. clientsecret
3. Authorization: Bearer (Token)
4. SVReferenceID
5. CompanyId
6. Signature

Sample request

curl --location 'https://sandboxapi.onesingleview.com/api/payment/sadad/moi'
--header 'clientsecret: Enter-Client-Secret'
--header 'clientid: Enter-Client-Id'
--header 'SVReferenceID: Enter-SV-Reference-Id'
--header 'Device: Device-type'
--header 'DateTimeStamp: YYYY-MM-DDTHH:MM:SS'
--header 'CompanyId: Enter-Company-Id'
--header 'BaseCurrency: SAR'
--header 'Authorization: Bearer <Enter-Token>'
--header 'Content-Type: application/json'
--data '{
"Message": {  
  "OSVSadadMOIPaymentRequest": {  
    "TransactionType": "SADADMOI",  
    "OSVSadadMOIPayment": [  
      {  
        "BankCode": "Enter_Bank_Code",  
        "CompanyCode": "Enter_Company_Code",  
        "AccountNumber": "Enter_Account_Number",  
        "TransactionReferenceNumber": "Enter_Transaction_Reference_Number",  
        "MessageDescription": "Enter_Message_Description",  
        "TransactionData": [  
          {  
            "ID": "Enter_ID",  
            "VisaCount": "Enter_Visa_Count",  
            "GroupPayId": "Enter_Group_Payment_ID",  
            "SequenceNumber": "Enter_Sequence_Number",  
            "ReferenceNumber": "Enter_Reference_Number",  
            "FeeReferenceId": "Enter_Fee_Reference_Id",  
            "SADADReferenceId": "Enter_SADAD_Reference_Id",  
            "DueAmount": "Enter_Due_Amount",  
            "PaymentType": "Enter_Payment_Type",  
            "BillerID": "Enter_Biller_ID",  
            "RequestType": "Enter_Request_type",  
            "NationalID": "Enter_National_ID",  
            "SponsorID": "Enter_Sponsor_ID",  
            "JobCategory": "Enter_Job_Category",  
            "Duration": "Enter_Duration"  
          }  
        ]  
      }  
    ]  
  }  
}'

Request description

JSON TagDescriptionData type
Message
Mandatory
Header informationObject
OSVSadadMOIPaymentRequest
Mandatory
Root node containing all the SADAD MOI payment informationObject
TransactionType
Mandatory
Type of transaction to be mentioned as SADADMOIString
OSVSadadMOIPayment
Mandatory
Tag carrying information on the SADAD MOI payment requestedObject
BankCode
Mandatory
Unique bank identification codeString
CompanyCode
Mandatory
Unique company identification codeString
AccountNumber
Mandatory
Unique account identification number with SADAD MOI String
TransactionReferenceNumber
Mandatory
Unique transaction reference numberString
MessageDescription
Mandatory
Details of the transactionString
TransactionData
Mandatory
Tag carrying information on the requested SADAD MOI paymentObject
ID
Mandatory
Unique identification detailsString
VisaCount
Mandatory
Number indicating the count of the VisaNumerical
GroupPayId
Mandatory
Unique group payment identificationString
SequenceNumber
Mandatory
Unique sequence number of the paymentString
ReferenceNumber
Mandatory
Unique payment reference numberString
FeeReferenceId
Mandatory
Unique fee reference identification detailsString
SADADReferenceId
Mandatory
Unique SADAD reference number of the paymentString
DueAmount
Mandatory
Amount denoting the total dueNumerical
PaymentType
Mandatory
Details on the type of paymentStrong
BillerID
Mandatory
Unique biller identification detailsString
RequestType
Mandatory
Type of the requestString
NationalID
Mandatory
Unique national identification details of the customerString
SponsorID
Mandatory
Unique sponsor identification details for the visaString
JobCategory
Mandatory
Details of the job categoryString
Duration
Mandatory
Duration of the visaString

Sample response

{  
  "OSVSadadMOIPaymentResponse": {  
    "MessageType": "SADADMOI",  
    "TimeStamp": "YYYY-MM-DDTHH:MM:SS",  
    "OSVSadadMOIPayment": [  
      {  
        "BankCode": "Bank_Code",  
        "TransactionReferenceNumber": "Transaction_Reference_Number",  
        "MessageDescription": "Message_Description",  
        "CompanyCode": "Company_Code",  
        "AccountNumber": "Account_Number",  
        "BankReferenceNumber": "Bank_Reference_Number",  
        "TransactionData": [  
          {  
            "PaymentRefNumber": "Payment_Ref_Number",  
            "SADADRqUID": "SADAD_Rq_UID",  
            "SequenceNum": "Sequence_Num",  
            "BankReference": "Bank_Reference",  
            "SadadReference": "Sadad_Reference",  
            "BillerID": "Biller_ID",  
            "SubscriberNumber": "Subscriber_Number",  
            "ServiceType": "Service_Type",  
            "PaidAmount": "Paid_Amount",  
            "StatusCode": "OK",  
            "FeeReferenceId": "Fee_Reference_Id",  
            "StatusDetail": "OK",  
            "CurrentAmount": "Current_Amount",  
            "PreviousAmount": "Previous_Amount",  
            "ID": "ID",  
            "VIsaNumber": "Visa_Number",  
            "BeneficiaryName": "Beneficiary_Name",  
            "Fees": [  
              {  
                "FeeAmount": "Fee_Amount",  
                "FeeType": "Fee_Type"  
              }  
            ]  
          }  
        ]  
      }  
    ]  
  }  
}

Response description

Meta TagDescriptionData type
OSVSadadMOIPaymentResponseRoot tag carrying SADAD MOI payment responseObject
MessageTypeType of response message represented as SADADMOIString
TimeStampDate and time of the responseString
OSVSadadMOIPaymentTag carrying information on SADAD MOI paymentObject
BankCodeUnique bank identification codeString
TransactionReferenceNumberUnique transaction reference detailsStering
MessageDescriptionDetails about the SADAD MOI paymentString
CompanyCodeUnique company identification detailsString
AccountNumberUnique account identification details for the SADAD MOIString
BankReferenceNumberUnique bank reference identification detailsString
TransactionDataTag carrying information on SADAD MOI payment transactionObject
PaymentRefNumberUnique payment reference detailsString
SADADRqUIDSADAD request unique identification detailsString
SequenceNumUnqiue sequence number of the SADAD MOI paymentString
BankReferenceUnique bank reference detailsString
SadadReferenceUnique SADAD reference detailsString
BillerIDUnique biller identification detailsString
SubscriberNumberUnique SADAD MOI subscriber identification detailsString
ServiceTypeType of the SADAD MOI serviceString
PaidAmountTotal paid amount for the MOINumerical
StatusCodeStatus code of the MOI payment transactionBoolean
FeeReferenceIdUnique fee reference identificationString
StatusDetailStatus details of the SADAD MOI payment transactionString
CurrentAmountCurrent amount paid for the SADAD MOINumerical
PreviousAmountPrevious amount paid for the SADAD MOINumerical
IDUnique customer identification detailsString
VIsaNumberUnique visa number of the customerString
BeneficiaryNameName of the beneficiaryString
FeesTag carrying information on SADAD MOI fee detailsObject
FeeAmountAmount denoting the feeNumerical
FeeTypeDetails on fee typeString

Initiate Refund

This service allows you to initiate refund for SADAD MOI.

Endpoint details

Endpoint URLMethodAuthentication requirements
/api/refund/sadad/moiPOST1.clientid
2. clientsecret
3. Authorization: Bearer (Token)
4. SVReferenceID
5. CompanyId
6. Signature

Sample request

curl --location 'https://sandboxapi.onesingleview.com/api/refund/sadad/moi'
--header 'clientsecret: Enter-Client-Secret'
--header 'clientid: Enter-Client-Id'
--header 'SVReferenceID: Enter-SV-Reference-Id'
--header 'Device: Device-type'
--header 'DateTimeStamp: YYYY-MM-DDTHH:MM:SS'
--header 'CompanyId: Enter-Company-Id'
--header 'BaseCurrency: SAR'
--header 'Authorization: Bearer <Enter-Token>'
--header 'Content-Type: application/json'
--data '{
"Message": {  
  "OSVSadadMOIRefundRequest": {  
    "TransactionType": "SADADMOI",  
    "OSVSadadMOIRefund": [  
      {  
        "BankCode": "Enter_Bank_Code",  
        "CompanyCode": "Enter_Company_Code",  
        "TransactionReferenceNumber": "Enter_Transaction_Reference_Number",  
        "MessageDescription": "Enter_Message_Description",  
        "TransactionData": [  
          {  
            "SequenceNumber": "Enter_Sequence_Number",  
            "AccountNumber": "Enter_Account_Number",  
            "BillerID": "Enter_Biller_Id",  
            "BillCategory": "Enter_Bill_Category",  
            "ServiceCode": "Enter_Service_Code",  
            "RequestType": "Enter_Request_Type",  
            "ID": "Enter_ID",  
            "Duration": "Enter_Duration"  
          }  
        ]  
      }  
    ]  
  }  
}'

Request description

JSON TagDescriptionData type
Message
Mandatory
Header information (client credentials)Object
OSVSadadMOIRefundRequest
Mandatory
Root node containing all the SADAD MOI refund informationObject
TransactionType
Mandatory
Type of transaction to be mentioned as SADADMOIString
OSVSadadMOIRefund
Mandatory
Tag carrying information on the SADAD MOI refund requestedObject
BankCode
Mandatory
Unique bank identification codeString
CompanyCode
Mandatory
Unique company identification codeString
TransactionReferenceNumber
Mandatory
Unique transaction reference numberString
MessageDescription
Mandatory
Details of the transactionString
TransactionData
Mandatory
Tag carrying information on the requested SADAD MOI refundObject
SequenceNumber
Mandatory
Unique sequence number of the MOI payment refundString
AccountNumber
Mandatory
Unique payment account numberString
BillerID
Mandatory
Unique MOI biller identification detailsString
BillCategory
Mandatory
Unique MOI bill categoryString
ServiceCode
Mandatory
Unique service code of the MOIString
RequestType
Mandatory
Type of the requestString
ID
Mandatory
Unique identification details of the customerString
Duration
Mandatory
Duration of the visaString

Sample response

{  
  "OSVSadadMOIRefundResponse": {  
    "MessageType": "SADADMOI",  
    "TimeStamp": "YYYY-MM-DDTHH:MM:SS",  
    "OSVSadadMOIRefund": [  
      {  
        "BankCode": "Bank_Code",  
        "CompanyCode": "Company_Code",  
        "TransactionReferenceNumber": "Transaction_Reference_Number",  
        "MessageDescription": "Message_Description",  
        "Status": "Status",  
        "TransactionData": [  
          {  
            "ID": 000000,  
            "BillerID": "Biller_ID",  
            "FeeReferenceId": "Fee_Reference_Id",  
            "SadadReferenceId": "Sadad_Reference_Id",  
            "BeneficiaryName": "Beneficiary_Name",  
            "DueAmount": "Due_Amount",  
            "PreviousAmount": "Previous_Amount",  
            "PmtIdType": "Payment_Id_Type",  
            "StatusDetail": "Status_Detail",  
            "StatusCode": "Status_Code",  
            "FeeDetails": [  
              {  
                "Fees": {  
                  "FeeType": "Fee_Type",  
                  "FeeAmount": "Fee_Amount"  
                }  
              },  
              {  
                "Fees": {  
                  "FeeType": "Fee_Type",  
                  "FeeAmount": "Fee_Amount"  
                }  
              }  
            ]  
          }  
        ]  
      }  
    ]  
  }  
}

Response description

Meta TagDescriptionData type
OSVSadadMOIRefundResponseRoot tag carrying SADAD MOI refund responseObject
MessageTypeType of response message represented as SADADMOIString
TimeStampDate and time of the responseString
OSVSadadMOIRefundTag carrying information on SADAD MOI refundObject
BankCodeUnique bank identification codeString
CompanyCodeUnique company identification detailsString
TransactionReferenceNumberUnique transaction reference detailsString
MessageDescriptionDetails about the SADAD MOI refundString
StatusStatus of the refundString
TransactionDataTag carrying information on MOI transaction dataObject
IDUnique bank reference identification detailsString
BillerIDUnique biller identification detailsString
FeeReferenceIdUnique bank fee reference detailsString
SadadReferenceIdUnique SADAD reference detailsString
BeneficiaryNameName of the beneficiaryString
DueAmountCurrent amount due for refundNumerical
PreviousAmountPrevious amount due for the SADAD MOINumerical
PmtIdTypeUnique payment identification type detailsString
StatusDetailDetails of the statusString
StatusCodeUnique status code of the processString
FeeDetailsTag carrying information on fee detailsObject
FeeTag carrying information on SADAD MOI refund feeObject
FeeAmountAmount denoting the feeNumerical
FeeTypeDetails on fee typeString

Refund Status

This service allows you to track the status of refund for SADAD MOI.

Endpoint details

Endpoint URLMethodAuthentication requirements
/api/moi/refund/statusPOST1.clientid
2. clientsecret
3. Authorization: Bearer (Token)
4. SVReferenceID
5. CompanyId
6. Signature

Sample request

curl --location 'https://sandboxapi.onesingleview.com/api/moi/refund/status'
--header 'clientsecret: Enter-Client-Secret'
--header 'clientid: Enter-Client-Id'
--header 'SVReferenceID: Enter-SV-Reference-Id'
--header 'Device: Device-type'
--header 'DateTimeStamp: YYYY-MM-DDTHH:MM:SS'
--header 'CompanyId: Enter-Company-Id'
--header 'BaseCurrency: SAR'
--header 'Authorization: Bearer <Enter-Token>'
--header 'Content-Type: application/json'
--data '{
"Message": {  
  "OSVSadadMOIRefundStatusRequest": {  
    "TransactionType": "SADADMOI",  
    "OSVSadadMOIRefundStatus": [  
      {  
        "BankCode": "Enter_Bank_Code",  
        "CompanyCode": "Enter_Company_Code",  
        "TransactionReferenceNumber": "Enter_Transaction_Reference_Number",  
        "MessageDescription": "Enter_Message_Description",  
        "TransactionData": [  
          {  
            "SequenceNumber": "Enter_Sequence_Number",  
            "AccountNumber": "Enter_Account_Number",  
            "BillerID": "Enter_Biller_ID",  
            "BillCategory": "Enter_Bill_Category",  
            "ServiceCode": "Enter_Service_Code",  
            "RequestType": "Enter_Request_Type",  
            "ID": "Enter_ID",  
            "Duration": "Enter_Duration",  
            "SadadReferenceId": "Enter_Sadad_Reference_Id"  
          }  
        ]  
      }  
    ]  
  }  
}'

Request description

JSON TagDescriptionData type
Message
Mandatory
Header information (client credentials)Object
OSVSadadMOIRefundStatusRequest
Mandatory
Root node containing all the SADAD MOI refund status informationObject
TransactionType
Mandatory
Type of transaction to be mentioned as SADADMOIString
OSVSadadMOIRefundStatus
Mandatory
Tag carrying information on the SADAD MOI refund status requestedObject
BankCode
Mandatory
Unique bank identification codeString
CompanyCode
Mandatory
Unique company identification codeString
TransactionReferenceNumber
Mandatory
Unique transaction reference numberString
MessageDescription
Mandatory
Details of the transactionString
TransactionData
Mandatory
Tag carrying information on the requested SADAD MOI refund statusObject
SequenceNumber
Mandatory
Unique sequence number of the MOI payment refund statusString
AccountNumber
Mandatory
Unique payment account numberString
BillerID
Mandatory
Unique MOI biller identification detailsString
BillCategory
Mandatory
Unique MOI bill categoryString
ServiceCode
Mandatory
Unique service code of the MOIString
RequestType
Mandatory
Type of the requestString
ID
Mandatory
Unique identification details of the customerString
Duration
Mandatory
Duration of the visaString
SadadReferenceId
Mandatory
Unique SADAD reference identification detailsString

Sample response

{  
  "OSVSadadMOIRefundStatusResponse": {  
    "OSVSadadMOIRefundStatus": [  
      {  
        "BankCode": "Bank_Code",  
        "Status": "Status",  
        "TransactionData": [  
          {  
            "FeeReferenceId": "Fee_Reference_Id",  
            "SadadReferenceId": "Sadad_Reference_Id",  
            "BeneficiaryName": "Beneficiary_Name",  
            "DueAmount": "Due_Amount",  
            "PreviousAmount": "Previous_Amount",  
            "PmtIdType": "Payment_Id_Type",  
            "StatusDetail": "Status_Detail",  
            "StatusCode": "Status_Code",  
            "FeeDetails": [  
              {  
                "Fees": {  
                  "FeeType": "Fee_Type",  
                  "FeeAmount": "Fee_Amount"  
                }  
              }  
            ]  
          }  
        ]  
      }  
    ]  
  }  
}

Response description

Meta TagDescriptionData type
OSVSadadMOIRefundStatusResponseRoot tag carrying SADAD MOI refund status responseObject
MessageTypeType of response message represented as SADADMOIString
TimeStampDate and time of the responseString
OSVSadadMOIRefundStatusTag carrying information on SADAD MOI refundObject
BankCodeUnique bank identification codeString
StatusStatus of the refundString
TransactionDataTag carrying information on SADAD MOI refund transactionObject
FeeReferenceIdUnique bank fee reference detailsString
SadadReferenceIdUnique SADAD reference detailsString
BeneficiaryNameName of the beneficiaryString
DueAmountCurrent amount due for refundNumerical
PreviousAmountPrevious amount due for the SADAD MOINumerical
PmtIdTypeUnique payment identification type detailsString
StatusDetailDetails of the statusString
StatusCodeUnique status code of the processString
FeeDetailsTag carrying information on fee detailsObject
FeeTag carrying information on SADAD MOI refund feeObject
FeeAmountAmount denoting the feeNumerical
FeeTypeDetails on fee typeString