Bills

Get SADAD bill enquiry and make payment

SingleView B2B Payouts API allows you to manage SADAD bills. It allows you to:

  • Fetch updated bill information using Bill Enquiry
  • Make SADAD bill payments using Bill Payment

Bill Enquiry

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

Endpoint details

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

Sample request

curl --location 'https://sandboxapi.onesingleview.com/api/enquiry/sadad/bill'
--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": {
  "OSVSadadBillEnquiryRequest": {  
    "TransactionType": "SADADENQ",  
    "OSVSadadBillEnquiry": [
      {
        "BankCode": "Enter_Bank_Code",  
        "CompanyCode": "Enter_Company_Code",  
        "TransactionReferenceNumber": "Enter_Transaction_Reference_Number",  
        "MessageDescription": "Enter_Messgae_Description",  
        "TransactionData": [
          {
            "SequenceNumber": "Enter_Sequence_Number",  
            "BillerId": "Enter_Biller_Id",  
            "BillCategory": "Enter_Bill_Category",  
            "SubscriberNumber": "Enter_Subscriber_Number",  
            "AccountNumber": "Enter_Account_Number"
          }
        ]
      }
    ]
  }
}

Request description

JSON TagDescriptionData type
Message
Mandatory
Header information (client credentials)Object
OSVSadadBillEnquiryRequest
Mandatory
Root node containing all the SADAD bill informationObject
TransactionType
Mandatory
Type of transaction to be mentioned as SADADENQString
OSVSadadBillEnquiry
Mandatory
Tag carrying information on the SADAD bill 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 billObject
SequenceNumber
Mandatory
Unique sequence number of the SADAD billString
BillerId
Mandatory
Unique biller identification detailsString
BillCategory
Mandatory
Unique bill category of the SADAD billString
SubscriberNumber
Mandatory
Unique subscriber identification detailsString
AccountNumber
Mandatory
Unique account number for the respective SADAD billString

Sample response

{
  "OSVSadadBillEnquiryResponse": {
    "MessageType": "SADADENQ",
    "TimeStamp": "YYYY-MM-DDTHH:MM:SS",
    "OSVSadadBillEnquiry": [
      {
        "BankCode": "Bank_Code",  
        "CompanyCode": "Company_Code",  
        "TransactionReferenceNumber": "Transaction_Reference_Number",  
        "MessageDescription": "Message_Description",  
        "Status": "OK",  
        "TransactionData": [
          {
            "SequenceNumber": "Sequence_Number",  
            "BillerID": 000,  
            "SubscriberNumber": "Subscriber_Number",  
            "ServiceType": "Service_Type",  
            "BillerDetail": "Biller_Detail",  
            "BillAccountID": "Bill_Account_ID",  
            "BillNo": "Bill_Number",  
            "BillCategory": "Bill_Category",  
            "BillCategoryType": "Bill_Category_Type",  
            "AmountDue": 00,  
            "BillPaid": "Bill_Paid",  
            "CustType": "Customer_Type",  
            "BillStatus": "Bill_Status",  
            "Balance": 0,  
            "PaidDate": "YYYYMMDD",  
            "OpenDate": "YYYYMMDD",  
            "CloseDate": "YYYYMMDD",  
            "DueDate": "YYYYMMDD",  
            "ExpiryDate": "YYYYMMDD",  
            "StatusCode": "OK",  
            "StatusDetail": "Status_Detail"
          }
        ]
      }
    ]
  }
}

Response description

JSON TagDescriptionData type
OSVSadadBillEnquiryResponseTag carrying information on bill enquiry responseObject
MessageTypeDetails on type of message to be displayed as SADADENQString
TimeStampDetails on date and time of the responseString
OSVSadadBillEnquiryTag carrying information on the SADAD bill enquiryObject
BankCodeUnique bank identification codeString
CompanyCodeUnique company identification codeString
TransactionReferenceNumberUnique transaction reference details of the transactionString
MessageDescriptionDescription of the messageString
StatusStatus of the responseBoolean
TransactionDataTag carrying information on the SADAD bill enquiryObject
SequenceNumberUnique sequence identification of the billString
BillerIDUnique biller identification detailsString
SubscriberNumberUnique subscriber identification detailsString
ServiceTypeDetails on type of the bill serviceString
BillerDetailDetails of the billerString
BillAccountIDUnique bill account identification detailsString
BillNoUnique bill numberString
BillCategoryDetails of the bill categoryString
BillCategoryTypeDetails of the type of bill categoryString
AmountDueDetails of amount due for the billNumerical
BillPaidDetails of bill paymentString
CustTypeDetails on type of the customerString
BillStatusStatus of the billString
BalanceTotal bill balanceNumerical
PaidDateLast paid date of the billString
OpenDateInitial period of the billing cycleString
CloseDateFinal period of the billing cycleString
DueDateDue date for the payment of bill amountString
ExpiryDateExpiry date of the billing serviceString
StatusCodeStatus code of the bill responseBoolean
StatusDetailDetails on the status code displayedString

Bill Payment

This service allows you to make payment for SADAD bills.

Endpoint details

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

Sample request

curl --location 'https://sandboxapi.onesingleview.com/api/payment/sadad/bill'
--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": {  
  "OSVSadadBillPaymentRequest": {  
    "TransactionType": "SADADTRN",  
    "OSVSadadBillPayment": [  
      {  
        "BankCode": "Enter_Bank_Code",  
        "CompanyCode": "Enter_Company_Code",  
        "TransactionReferenceNumber": "Enter_Transaction_Reference_Number",  
        "MessageDescription": "Enter_Message_Description",  
        "AccountNumber": "Enter_Account_Number",  
        "TransactionData": [  
          {  
            "SequenceNumber": "Enter_Sequence_Number",  
            "SubscriberNumber": "Enter_Subscriber_Number",  
            "BillerId": "Enter_Biller_Id",  
            "BillAccountID": "Enter_Bill_Account_Id",  
            "BillNumber": "Enter_Biller_Number",  
            "PaymentType": "Enter_Payment_Type",  
            "BillCategory": "Enter_Bill_Category",  
            "Amount": "00",  
            "PayExactDue": false,  
            "ServiceType": "Enter_Service_Type"  
          }  
        ]  
      }  
    ]  
  }  
}

Request description

JSON TagDescriptionData type
Message
Mandatory
Header information (client credentials)Object
OSVSadadBillPaymentRequest
Mandatory
Root node containing all the SADAD bill and payment informationObject
TransactionType
Mandatory
Type of transaction to be mentioned as SADADTRNString
OSVSadadBillPayment
Mandatory
Tag carrying information on the payment for the requested SADAD billObject
BankCode
Mandatory
Unique bank identification codeString
CompanyCode
Mandatory
Unique company identification codeString
TransactionReferenceNumber
Mandatory
Unique transaction reference numberString
MessageDescription
Mandatory
Details of the transactionString
AccountNumber
Mandatory
Unique account number for the respective SADAD billString
TransactionData
Mandatory
Tag carrying information on the payment details of requested SADAD billObject
SequenceNumber
Mandatory
Unique sequence number of the SADAD billString
SubscriberNumber
Mandatory
Unique subscriber identification detailsString
BillerId
Mandatory
Unique biller identification detailsString
BillAccountID
Mandatory
Unique bill account identification detailsString
BillNumber
Mandatory
Unique bill numberString
PaymentType
Mandatory
Type of payment for SADAD billString
BillCategory
Mandatory
Unique bill category of the SADAD billString
Amount
Mandatory
Details on bill amount to be paidNumerical
PayExactDue
Mandatory
false indicates paying other than the due amount
true indicates paying the exact bill due amount
Boolean
ServiceType
Mandatory
Details on service type of the SADAD billString

Sample response

{  
  "OSVSadadBillPaymentResponse": {  
    "MessageType": "SADADTRN",  
    "TimeStamp": "YYYY-MM-DDTHH:MM:SS",  
    "OSVSadadBillPayment": [  
      {  
        "BankCode": "Bank_Code",  
        "CompanyCode": "Company_Code",  
        "MessageDescription": "Message_Description",  
        "TransactionReferenceNumber": "Transaction_Reference_Number",  
        "AccountNumber": "Account_Number",  
        "BankReferenceNumber": "Bank_Reference_Number",  
        "TransactionData": [  
          {  
            "PaymentRefNumber": "Payment_Ref_Number",  
            "SADADRqUID": "SADAD_Rq_UID",  
            "SequenceNum": "Sequence_Num",  
            "BankReference": 0000000000,  
            "SadadReference": 0000000000,  
            "BillerID": 000,  
            "SubscriberNumber": "Subscriber_Number",  
            "PaidAmount": "000",  
            "PaidDate": "YYYYMMDD",  
            "envelopeDateTime": "YYYYMMDD",  
            "StatusCode": "OK",  
            "StatusDetail": "Status_Detail"  
          }  
        ]  
      }  
    ]  
  }  
}

Response description

JSON TagDescriptionData type
OSVSadadBillPaymentResponseTag carrying information on bill payment responseObject
MessageTypeDetails on type of message to be displayed as SADADTRNString
TimeStampDetails on date and time of the responseString
OSVSadadBillPaymentTag carrying information on the SADAD bill paymentObject
BankCodeUnique bank identification codeString
CompanyCodeUnique company identification codeString
MessageDescriptionDescription of the messageString
TransactionReferenceNumberUnique transaction reference details of the transactionString
AccountNumberUnique SADAD bill account identificationString
BankReferenceNumberUnique bank reference identification for the paymentString
TransactionDataTag carrying information on the SADAD bill paymentObject
PaymentRefNumberUnique payment reference identification numberString
SADADRqUIDUnique SADAD request identification numberString
SequenceNumUnique sequence identification of the billString
BankReferenceUnique bank reference details for the bill paymentString
SadadReferenceUnique SADAD reference details for the bill paymentString
BillerIDUnique biller identification detailsString
SubscriberNumberUnique subscriber identification detailsString
PaidAmountDetails on the amount paid towards the SADAD bill dueNumerical
PaidDateDate of payment of SADAD billString
envelopeDateTimDate and time stand of the payment responseString
StatusCodeStatus code of the bill payment responseBoolean
StatusDetailDetails on the status code displayedString