Retrieve bill details for the SADAD bill and MOIs
SingleView ERP Integration API's Payment service allows you to retrieve SADAD Bill & MOI amounts through the svSadadEnqService.
Endpoint URL | Method | Authentication requirements |
|---|---|---|
| POST |
|
A request in the following format should be posted to the above mentioned Endpoint with valid authentication details:
curl --location --request POST 'https://servicesuat.onesingleview.com/v1/api/erp/svSadadEnqService' \
--header 'clientid: Enter_Client_ID' \
--header 'clientsecret: Enter_Client_Secret' \
--header 'signature: Enter_Signature' \
--header 'Content-Type: application/json' \
--header 'logsource: Web' \
--data '{
"svSadadEnqServiceRQ": {
"groupCode": "1000",
"company": [
{
"companyCode": "1101",
"userName": "Abdul1234",
"enquiry": [
{
"type": "bill",
"acERPcode": "1110",
"subscriberNumber": "7525306001",
"billCode": "010"
},
{
"type": "moi",
"acERPcode": "1333",
"subscriberNumber": "7525306001",
"billCode": "010",
"TransactionType": "",
"ID": "",
"Duration": "",
"SponsorID": "",
"JobCategory": "",
"NoOfDependent": "",
"EventActualDate": "",
"CitizenId": "",
"LicenseType": "",
"PassportType": "",
"VehicleSequence": "",
"NewOwnerId": "",
"VehicleCustomCardNumber": "",
"RegistrationType": "",
"BodyType": "",
"VisaCount": "",
"VisaType": "",
"VisaNumber": "",
"IssuanceReason": "",
"CardVersionNumber": "",
"VerdictNumber": "",
"ViolationID": ""
}
]
}
]
}
}'Request details:
JSON Tag | Description | Data type |
|---|---|---|
clientid | Unique client identification details | String |
clientsecret | Unique client secret code | String |
signature | 64-Bit string obtained by processing client signature key through Base-64 and SHA-256 | String |
svSadadEnqServiceRQ | Tag carrying information on request to create SADAD enquiry request | Object |
company | Tag carrying information on company for creation of payment | Object/Array |
companyCode | Unique identification code of the company | String |
userName | SingleView account's Username | String |
enquiry | Tag carrying the information on SADAD enquiry request | Object/Array |
type | Type of record for SADAD enquiry to be among | String |
acERPcode | Unique ERP code assigned to the bank account | Alphanumeric |
subscriberNumber | Unique subscriber number for the requested SADAD Bill/MOI | Numerical |
billCode | Unique bill identification code of the requested SADAD Bill/MOI | Numerical |
TransactionType | Unique identification code for transaction type for SADAD MOI. | Numerical |
ID | Unique identification details of the owner for the requested SADAD MOI | Numerical |
Duration | Duration of the identification mentioned | Numerical |
SponsorID | Unique identification details of the sponsor | Numerical |
JobCategory | Job category of the applicant or SADAD MOI applicant | Numerical |
NoOfDependent | Number of dependents related to the SADAD MOI applicant | Numerical |
EventActualDate | Date representing the event occurred on | String |
CitizenId | Unique citizen identification details of the SADAD MOI applicant | Numerical |
LicenseType | Type of license held by the SADAD MOI applicant | Numerical |
PassportType | Type of passport held by the SADAD MOI applicant | Numerical |
VehicleSequence | Sequence number of the vehicle held by the SADAD MOI applicant | Numerical |
NewOwnerId | New owner identification details | Numerical |
VehicleCustomCardNumber | Identification number of vehicle custom card | Numerical |
RegistrationType | Type of registration of the vehicle held by the SADAD MOI applicant | String |
BodyType | Body type of the vehicle held by the SADAD MOI applicant | Numerical |
VisaCount | Count of visa's of the SADAD MOI applicant | Numerical |
VisaType | Type of visa held by the SADAD MOI applicant | String |
VisaNumber | Visa identification number held by the SADAD MOI applicant | Numerical |
IssuanceReason | Reason of vehicle issuance | String |
CardVersionNumber | Unique version number of the card | Numerical |
VerdictNumber | Unique verdict identification number | Numerical |
ViolationID | Unique violation identification details | Numerical |
Upon processing of the request and finding of valid authentication details, you'll get the following success response:
{
"svSadadEnqServiceRS": {
"company": [
{
"companyCode": "1101",
"userName": "Abdul1234",
"enquiryRes": [
{
"type": "bill",
"acERPcode": "1110",
"subscriberNumber": "7525306001",
"billCode": "010",
"dueDate": "20200709",
"enqSuccess": "OK",
"AmountDue": 1372,
"serviceType": "GOVT",
"amount": 1372
},
{
"type": "moi",
"acERPcode": "1333",
"subscriberNumber": "7525306001",
"billCode": "010",
"AmountDue": 200,
"FeeDetails": "",
"FeeReferenceId": "",
"SadadReferenceId": "",
"GroupPayId": ""
}
]
}
]
}
}Response description:
JSON Tag | Description | Data type |
|---|---|---|
svSadadEnqServiceRS | Tag representing the response for SADAD enquiry services | Object |
company | Tag carrying information on companies included in the response | Object |
companyCode | Unique company identification code | String |
userName | SingleView account's username | String |
enquiryRes | Array of SADAD bill/MOI records included in the request | Array |
type | Type of SADAD enquiry record among | String |
acERPcode | Unique ERP code assigned to the bank account | Alphanumeric |
subscriberNumber | Unique subscriber identification number of the bill/MOI | Numerical |
billCode | Unique bill code of the SADAD bill/MOI | Numerical |
for type= | dueDate - Due date of the SADAD bill | Date |
| enqSuccess - Status about the processing of the enquiry request | Numerical |
| AmountDue - Amount due for the SADAD bill | Numerical |
| serviceType - Type of service obtained from | String |
| amount - Total amount of the service | Numerical |
for type= | AmountDue - Total amount due for the MOI service | Numerical |
| FeeDetails - Fee details on the MOI service | String |
| FeeReferenceId - Unique reference identification details for the MOI service fees | Alphanumeric |
| SadadReferenceId - Unique SADAD MOI reference identification number | Alphanumeric |
| GroupPayId - Unique group payment identification details | Numerical |