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",
      "bulkId": "Enter_Bulk_Id",
      "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",
          "benDetails": {
            "bankCode": "Enter_Bank_Code",
            "bic": "Enter_BIC",
            "iban": "Enter_IBAN",
            "name": "Enter_Name",
            "currency": "Enter_Currency",
            "desc": "Enter_Description",
            "type": "Enter_Type_Local/International",
            "add": "Enter_Address",
            "city": "Enter_Address",
            "country": "Enter_Country"
          },
          "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": 0,
                      "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",
          "benDetails": {
            "bankCode": "Enter_Bank_Code",
            "bic": "Enter_BIC",
            "iban": "Enter_IBAN",
            "name": "Enter_Name",
            "currency": "Enter_Currency",
            "desc": "Enter_Description",
            "type": "Enter_Type_Local/International",
            "add": "Enter_Address",
            "city": "Enter_Address",
            "country": "Enter_Country"
          },
          "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
Unique client identification details
Length of input:
Min 3 Characters
Max 20 Characters
String
clientsecret
Mandatory
Unique client secret code
Length of input:
Min 3 Characters
Max 20 Characters
String
signature
Mandatory
64-Bit string obtained by processing client signature key through Base-64 and SHA-256String
svPaymentServiceRQ
Mandatory
Tag carrying information on request to create paymentObject
company
Mandatory
Tag carrying information on company for creation of paymentObject/Array
companyCode
Mandatory
Unique identification code of the company
Length of input:
Min 3 Characters
Max 20 Characters
String
bulkId
Conditional
Unique bulk payment identification details that represents a bulk/batch payment String
payment
Mandatory
Array of paymentsObject/Array
payId
Mandatory
Unique reference identification details of payment request from ERPString
userName
Mandatory
SingleView account's UsernameString
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 purchase orderNumber
currency
Mandatory
Currency of the payment
Length of input:
Min 3 Characters
Max 20 Characters
Alphanumeric
acERPCode
Mandatory
Account from which the amount will be deducted and is the mapping account ERP code for the bankAlphanumeric
benERPCode OR benDetails
Specific Mandatory
Beneficiary account details
benERPCode
Specific Mandatory
Account where the money will be transferred to and is the mapping Beneficiary ERP code for the bank accountString
benDetails
Specific Mandatory
Tag carrying beneficiary details that are to be provided manually if benERPCode does not existsObject
bankCode - Beneficiary unique bank code
bic - Beneficiary bank identification code"
iban - Unique bank account identification number
name - Name of the account holder
currency - Currency details of the amount transfer
desc - Description about the transfer
type - Type of transfer
add - Address of the beneficiary
city - City of the beneficiary
country - Country of the beneficiary
Specific Mandatory
Beneficiary account information included in the benDetails tagString
description
Mandatory
Description pertaining to the PO raised and/or the approver commentsString
iv
Optional
Array of invoicesObject/Array
supplierCode
Optional
Unique code for the supplier identification
Length of input:
Min 3 Characters
Max 20 Characters
String
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 created in YYYY-MM-DDTHH:MM:SSZ formatDate
payDate
Optional
Date for the payment of the PO in YYYY-MM-DDTHH:MM:SSZ formatDate
userId
Optional
Name of the user creating the PO
Length of input:
Min 3 Characters
Max 20 Characters
String
ivNumber
Optional
Unique invoice identification details
Length of input:
Min 3 Characters
Max 20 Characters
String
amount
Optional
Total amount of the transactionNumeric
approvers
Optional
Name of the user approving the PO
Length of input:
Min 3 Characters
Max 20 Characters
String
description
Optional
Description related to payment Will include an array of invoice references , in case a payment has more than one invoice
Length of input:
Min 3 Characters
Max 35 Characters
String
modeOfPay
Optional
Details on the mode of the paymentString
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",
        "payment": [
          {
            "payId": "Pay_ID",
            "authId": "OSV_Payment_ID",
            "acERPcode": "Account_ERP_Code",
            "benERPcode": "Enter_Beneficiary_ERP_Code",
            "status": Status_Code,
            "message": "Process/Status_Message",
          },
          {
            "payId": "Pay_ID",
            "authId": "OSV_Payment_ID",
            "acERPcode": "Account_ERP_Code",
            "benERPcode": "Enter_Beneficiary_ERP_Code",
            "status": Status_Code,
            "message": "Process/Status_Message"
          }
        ]
      }
    ]
  }
}

Response description:

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