Payments

Manage your payments with SingleView

SingleView ERP Integration API's Payment service allows you to make payments to a single or multiple accounts by sending a payment request.

Process a payment

Endpoint details

Endpoint URLMethodAuthentication requirements
v1/api/erp/svPaymentServicePOST1. clientid
2. clientsecret
3. signature

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/svPaymentService' \
--header 'clientid: Enter_Client_ID' \
--header 'clientsecret: Enter_Client_Secret' \
--header 'signature: Enter_Signature' \
--header 'Content-Type: application/json' \
--data-raw '{
  "svPaymentServiceRQ": {
    "company": [
      {
        "companyCode": "Enter_Company_Code",
        "payment": [
          {
            "userName": "Enter_Username",
            "payId": "Enter_Payment_ID",
            "transferType": "Enter_Transfer_Type_Code",
            "ownAccTxnType": "Enter_Own_Account_Transaction Type",
            "amount": 00.00,
            "currency": "Enter_Currency",
            "acERPcode": "Enter_Account_ERP_Code",
            "benERPcode": "Enter_Beneficiary_ERP_Code",
            "description": "Enter_Description",
            "iv": [
              {
                "supplierCode": "Enter_Supplier_Code",
                "createdDate": "YYYY-MM-DDTHH:MM:SSZ",
                "payDate": "YYYY-MM-DDTHH:MM:SSZ",
                "userId": "Enter_User_ID",
                "ivNumber": "Enter_IV_Number",
                "amount": 00.00,
                "approvers": "Enter_Last_Approver_ID",
                "description": "Enter_Description",
                "modeOfPay": "Enter_Mode_of_Payment",
                "ledgerRef": "Enter_Ledger_Referenece",
                "po": [
                    {
                     "supplierCode": "Enter_Supplier_Code",
                     "createdDate": "YYYY-MM-DDTHH:MM:SSZ",
                     "payDate": "YYYY-MM-DDTHH:MM:SSZ",
                     "userId": "Enter_User_ID",
                     "amount": 00.00,
                     "approvers": "Enter_Last_Approver_ID",
                     "description": "Enter_Description",
                     "modeOfPay": "Enter_Mode_of_Payment",
                     "ledgerRef": "Enter_Ledger_Referenece",
                      "items": [
                       {
                        "item": "Enter_Item_Code",
                        "createdDate": "YYYY-MM-DDTHH:MM:SSZ",
                        "description": "Enter_Description",
                        "quantity": 00,
                        "unitPrice": 00.00,
                        "discount": 00,
                        "discountPercentage": 00%,
                        "amount": 00.00,
                        "salesTaxInclude": 00.00,
                        "salesTaxPercentage": 00%,
                        "reason": "Enter_Reason"
                      },
                      {
                        "item": "Enter_Item_Code",
                        "createdDate": "YYYY-MM-DDTHH:MM:SSZ",
                        "description": "Enter_Description",
                        "quantity": 00,
                        "unitPrice": 00.00,
                        "discount": 00,
                        "discountPercentage": 00%,
                        "amount": 00.00,
                        "salesTaxInclude": 00.00,
                        "salesTaxPercentage": 00%,
                        "reason": "Enter_Reason"
                      }
                    ],
                    "poNumber": "Enter_PO_Number"
                  }
                ],
                "items": [
                  {
                    "item": "Enter_Item_Code",
                    "createdDate": "YYYY-MM-DDTHH:MM:SSZ",
                    "description": "Enter_Description",
                    "quantity": 00,
                    "unitPrice": 00.00,
                    "discount": 00,
                    "discountPercentage": 00%,
                    "amount": 00.00,
                    "salesTaxInclude": 00.00,
                    "salesTaxPercentage": 00%,
                    "reason": "Enter_Reason"
                  }
                ]
              }
            ]
          },
          {
            "payId": "Enter_Payment_ID",
            "userName": "Enter_Username",
            "transferType": "Enter_Transfer_Type",
            "amount": 00.00,
            "currency": "Enter_Currency",
            "acERPcode": "Enter_Account_ERP_Code",
            "benERPcode": "Enter_Beneficiary_ERP_Code",
            "description": "Enter_Description",
            "iv": [
              {
                "supplierCode": "Enter_Supplier_Code",
                "createdDate": "YYYY-MM-DDTHH:MM:SSZ",
                "payDate": "YYYY-MM-DDTHH:MM:SSZ",
                "userId": "Enter_User_ID",
                "ivNumber": "Enter_IV_Number",
                "amount": 00.00,
                "approvers": "Enter_Last_Approver_ID",
                "description": "Enter_Description",
                "modeOfPay": "Enter_Mode_of_Payment",
                "ledgerRef": "Enter_Ledger_Referenece",
                "po": [
                    {
                     "supplierCode": "Enter_Supplier_Code",
                     "createdDate": "YYYY-MM-DDTHH:MM:SSZ",
                     "payDate": "YYYY-MM-DDTHH:MM:SSZ",
                     "userId": "Enter_User_ID",
                     "amount": 00.00,
                     "approvers": "Enter_Last_Approver_ID",
                     "description": "Enter_Description",
                     "modeOfPay": "Enter_Mode_of_Payment",
                     "ledgerRef": "Enter_Ledger_Referenece",
                      "items": [
                       {
                        "item": "Enter_Item_Code",
                        "createdDate": "YYYY-MM-DDTHH:MM:SSZ",
                        "description": "Enter_Description",
                        "quantity": 00,
                        "unitPrice": 00.00,
                        "discount": 00,
                        "discountPercentage": 00%,
                        "amount": 00.00,
                        "salesTaxInclude": 00.00,
                        "salesTaxPercentage": 00%,
                        "reason": "Enter_Reason"
                      },
                      {
                        "item": "Enter_Item_Code",
                        "createdDate": "YYYY-MM-DDTHH:MM:SSZ",
                        "description": "Enter_Description",
                        "quantity": 00,
                        "unitPrice": 00.00,
                        "discount": 00,
                        "discountPercentage": 00%,
                        "amount": 00.00,
                        "salesTaxInclude": 00.00,
                        "salesTaxPercentage": 00%,
                        "reason": "Enter_Reason"
                      }
                    ],
                    "poNumber": "Enter_PO_Number"
                  }
                ],
                "items": [
                  {
                    "item": "Enter_Item_Code",
                    "createdDate": "YYYY-MM-DDTHH:MM:SSZ",
                    "description": "Enter_Description",
                    "quantity": 00,
                    "unitPrice": 00.00,
                    "discount": 00,
                    "discountPercentage": 00%,
                    "amount": 00.00,
                    "salesTaxInclude": 00.00,
                    "salesTaxPercentage": 00%,
                    "reason": "Enter_Reason"
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}'

Request details:

JSON TagDescriptionData type
clientid
Mandatory
Client IDString
clientsecret
Mandatory
Client CodeString
signature
Mandatory
SignatureString
svPaymentServiceRQ
Mandatory
Create payment request tagObject
company
Mandatory
Array of companiesArray
companyCode
Mandatory
Unique company codeString
payment
Mandatory
Array of paymentsArray
userName
Mandatory
Singleview UsernameString
payId
Mandatory
Unique reference id toward payment request from ERPString
transferType
Mandatory
Whether the transfer is:
0-OWN ACCOUNT
1-INTERBANK
2-SARIE
3-SWIFT
Number
ownAccTxnType
Mandatory for own account transfers (In-house Bank Account Transfers)
Whether the transfer is:
0-OWNACC
1-INTERBANK
2-SARIE
3-SWIFT
Number
amount
Mandatory
Total amount spent on PONumber
currency
Mandatory
CurrencyString
acERPCode
Mandatory
Account from which the amount will be deducted and is the mapping account ERP code for the bankString
benERPCode
Mandatory
Account where the money will be transferred to and is the mapping Beneficiary ERP code for the bank accountString
description
Mandatory
Description pertaining to the PO raised and/or the approver commentsString
iv
Optional
Array of invoicesArray
supplierCode
Optional
Unique code for the supplierString
createdDate
Optional
Date on which Invoice was createdString
payDate
Optional
By when the PO should be clearedString
userId
Optional
PO Raised by the userString
ivNumber
Optional
Invoice number or IDString
amount
Optional
Total amount for which transaction was madeNumber
approvers
Optional
Last approver who approved the PO, USER IDString
description
Optional
Description related to payment that includes an array of invoice references; in case a payment has more than one invoiceString
modeOfPay
Optional
Cash/Cheque/OnlineString
ledgerRef
Optional
Unique reference for the PO in ledgerString
po
Optional
Array of purchase ordersArray
poNumber
Optional
PO NumberString
supplierCode
Optional
Unique supplier codeString
createdDate
Optional
Date on which PO was createdString
payDate
Optional
By when the PO should be clearedString
userId
Optional
User who raised the POString
ivNumber
Optional
Invoice IDString
amount
Optional
Total amount for which transaction was madeString
approvers
Optional
Last approver who approved the PO, USER IDString
description
Optional
Description related to payment Will include an array of invoice references , in case a payment has more than one invoiceString
modeOfPay
Optional
Cash/Cheque/OnlineString
ledgerRef
Optional
Unique reference for the PO in ledgerString
items
Optional
Array of itemsArray
item
Optional
Item added to the invoiceString
createdDate
Optional
Date of invoice creationString
description
Optional
Description of the itemString
quantity
Optional
Number of units pertaining to the itemNumber
unitPrice
Optional
Price of each unit of itemNumber
discount
Optional
Value of the discountNumber
discountPercentage
Optional
% discountNumber
amount
Optional
Cost of total invoiced itemNumber
salesTaxInclude
Optional
Sales tax towards the invoiced itemNumber
salesTaxPercentage
Optional
Percentage of sales tax towards invoiceNumber
reason
Optional
ReasonString

Upon processing of the request and finding of valid authentication details, you'll get the following success response:

{
  "svPaymentServiceRS": {
    "company": [
      {
        "companyCode": "Company_Code",
        "userName": "Username",
        "payment": [
          {
            "authId": "OSV_Payment_ID",
            "status": Status_Code,
            "message": "Process/Status_Message",
          },
          {
            "payId": "Payment_ID",//In case of error
            "status": Status_Code,
            "message": "Process/Status_Code",
            "errorCode" : "Error_Code"
          }
        ]
      }
    ]
  }
}

Response description:

JSON TagDescriptionData type
svPaymentServiceRSAdd payment services Response TagObject
companyArray of companiesArray
companyCodeUnique company codeString
userNameSingleview usernameString
paymentArray of paymentsArray
authIdSingleview Payment IDString
payIdUnique reference id toward payment request from ERPString
statusStatus codeNumerical
messageProcess display messageString
errorCodeError codeString