Payment Enquiry

Get payment request details and status

Payment Enquiry API services allows you to know the payment information that has been processed. This allows you to track and get the payment status in real-time.

Get Payment Enquiry

Endpoint details

Endpoint URL

Method

Authentication requirements

/v1/api/erp/svPayEnquiryService/

POST

  1. clientid
  2. clientsecret
  3. signature

A request in the following format should be posted to the above-mentioned endpoint to fetch the payment status and details:

curl --location --request POST 'https://servicesuat.onesingleview.com/v1/api/erp/svPayEnquiryService' \
--header 'clientid: Enter_Client_ID' \
--header 'clientsecret: Enter_Client_Secret' \
--header 'signature: Enter_Signature' \
--header 'Content-Type: application/json' \
--data-raw '{
"svPayEnquiryServiceRQ": {
  "company": [
    {
      "companyCode": "SV0001",
      "fromDate": "2024-06-01",
      "toDate": "2024-06-31",
      "payId": [
        "468741"
      ],
      "authId": [
        "335707985"
      ],
      "type": "payment"
    }
  ]
}
}'

Request details:

JSON Tag

Description

Data type

svPayEnquiryServiceRQ Mandatory

Payment enquiry request tag

Object

company Mandatory

Array of companies

Array

companyCode Mandatory

Unique company code

String

fromDate Mandatory

From Date Period YYYY-MM-DD format

String

toDate Mandatory

To Date Period YYYY-MM-DD format

String

payId Conditional

Array of ERP pay IDs Mandatory ifauthId is not mentioned

Array

authId Conditional

Array of ERP Authentication IDs Mandatory ifpayId is not mentioned

Array

type Mandatory

Transaction type to be mentioned among payment or statement

String

If the details are found to be valid, the following successful response will be displayed:

{
  "svPayEnquiryServiceRS": {
    "company": [
      {
        "companyCode": "SV0001",
        "payment": [
          {
            "payId": "468741",
            "authId": "335707985",
            "seqNum": "595562489248932",
            "svRefId": "49494622648494",
            "currency": "SAR",
            "txnDate": "2024-06-02T11:12:13Z",
            "status": 0, // completed
            "approval_status": 0,
            "type": "payment",
            "bankCharges":"Y", // Y or N
            "chargeAmount":40.00,
            "amount": 40000.00            
          }
        ]
      }
    ]
  }
}

Response description:

JSON TagDescriptionData type
svPaymentServiceRSAdd payment services Response TagObject
companyArray of companiesArray
companyCodeUnique company codeString
paymentArray of paymentsArray
payIdUnique reference id toward payment request from ERPString
authIdSingleView Authentication IDString
seqNumSequence numberString
svRefIdSingleView Reference IDString
currencyCurrency of paymentString
txnDateTransaction dateString
statusStatus of the paymentString
approval_statusApproval status of the payment requestString
typeTransaction type to be mentioned as paymentString
bankChargesStatus of amount charged by the bank denoted as Y or NString
chargeAmountCharged Amount for the transactionNumerical
amountAmount of the transactionNumerical
📘

Note

Refer Types & Statuses for more info on payment status update codes.