Process a Payroll

Make payroll payments using SingleView APIs

Overview

Payroll payments can be processed through SingleView APIs and require the following details to be enclosed in the payment processing request:

πŸ“˜

Mandatory information

  • The user must provide the valid credentials in the header
  • Valid clientid, clientsecret, and signature
  • The request should be in the specified format
  • The request should include all the mandatory details with appropriate request tags

Process a Payroll

Endpoint details

Endpoint URLMethodGrant type
/v1/api/erp/svPayrollServicePOSTThe header must include:
1. clientid
2. clientsecret
3. signature

Initiate Payroll Payments

🚧

Note: A minimum of 3 payment entries are required to process a payroll request.

Sample request

curl --location --request POST 'https://servicesuat.onesingleview.com/v1/api/erp/svPayrollService' \
--header 'clientid: Enter_Client_ID' \
--header 'clientsecret: Enter_Client_Secret' \
--header 'signature: Enter_Signature' \
--header 'Content-Type: application/json' \
--data-raw '{
    "svPayrollServiceRQ": {
        "company": [
            {
                "companyCode": "Enter_Company_Code",
                "payroll": [
                    {
                        "acERPcode": "Enter_Account_ERP_Code",
                        "amount": "Enter_Amount",
                        "currency": "Enter_Currency",
                        "description": "Enter_Description",
                        "dueDate": "YYYY-MM-DD",
                        "userName": "Enter_Username",
                        "payrollPayId":"Enter_Payroll_Payment_ID",
                        "payeeDetails": [
                            {
                                "bankCode": "Enter_Bank_Code",
                                "iban": "Enter_IBAN",
                                "name": "Enter_Name",
                                "payeeId": "Enter_Payee_ID", 
                                "nationalId": "Enter_National_ID",
                                "basicSalary": "Enter_Basic_Salary",
                                "housingAllowance": "Enter_Housing_Allowance",
                                "otherAllowance": "Enter_Other_Allowance",
                                "deduction": "Enter_Deduction",
                                "amount": "Enter_Amount",
                                "currency": "Enter_Currency",
                                "remarks": "Enter_Remarks"
                                
                            },
                            {
                                "bankCode": "Enter_Bank_Code",
                                "iban": "Enter_IBAN",
                                "name": "Enter_Name",
                                "payeeId": "Enter_Payee_ID", 
                                "nationalId": "Enter_National_ID",
                                "basicSalary": "Enter_Basic_Salary",
                                "housingAllowance": "Enter_Housing_Allowance",
                                "otherAllowance": "Enter_Other_Allowance",
                                "deduction": "Enter_Deduction",
                                "amount": "Enter_Amount",
                                "currency": "Enter_Currency",
                                "remarks": "Enter_Remarks"
                            },
                            {
                                "bankCode": "Enter_Bank_Code",
                                "iban": "Enter_IBAN",
                                "name": "Enter_Name",
                                "payeeId": "Enter_Payee_ID", 
                                "nationalId": "Enter_National_ID",
                                "basicSalary": "Enter_Basic_Salary",
                                "housingAllowance": "Enter_Housing_Allowance",
                                "otherAllowance": "Enter_Other_Allowance",
                                "deduction": "Enter_Deduction",
                                "amount": "Enter_Amount",
                                "currency": "Enter_Currency",
                                "remarks": "Enter_Remarks"
                            }
                        ]
                    }
                ]
            }
        ]
    }
}

Request description

JSON TagDescriptionData Type
clientid
Mandatory
Unique client identificationString
clientsecret
Mandatory
Unique client secret keyString
signature
Mandatory
64-Bit encrypted signature codeString
svPayrollServiceRQ
Mandatory
Tag carrying information on request to process a payroll paymentObject
company
Mandatory
Tag carrying information about companyObject
companyCode
Mandatory
Unique company codeNumerical
payroll
Mandatory
Tag carrying information on payroll details in the requestObject
acERPcode
Mandatory
Unique account ERP identification codeNumerical
amount
Mandatory
Total amount of the payrollNumerical
currency
Mandatory
Currency representing the payroll amountString
description
Mandatory
Description of the payrollString
dueDate
Mandatory
Due date for processing the payrollString
userName
Mandatory
Unique user identification detailsString
payrollPayId
Mandatory
Unique payroll payment identificationString
payeeDetails
Mandatory
Tag carrying information of payees included in the payroll requestObject
bankCode
Mandatory
Unique bank identification codeStringt
iban
Mandatory
Unique international bank account numberString
name
Mandatory
Name of the payeeString
payeeId
Mandatory
Unique employee code or payee code identificationString
nationalId
Mandatory
Unique national identification details of the payeeString
basicSalary
Mandatory
Basic salary amount of the payeeNumerical
housingAllowance
Mandatory
Housing allowance amount of the payeeNumerical
otherAllowance
Mandatory
Other allowance amount of the payeeNumerical
deduction
Mandatory
Total deduction amount of the payeeNumerical
amount
Mandatory
Total amount for the payeeNumerical
currency
Mandatory
Currency representing the payee amountString
remarks
Optional
Remarks for payment to the payeeString

Sample response

{
    "svPayrollServiceRS": {
        "company": [
            {
                "companyCode": "Company_Code",
                "payroll": [
                    {
                        "acERPcode": "Account_ERP_Code",
                        "payrollPayId":"Payroll_Payment_ID",
                        "authId":"Authentication_ID",
                        "status": 0,
                        "message": "Status_Message",
                        "payeeDetails": [
                            {
                                "bankCode": "Bank_Code",
                                "payeeId": "Payee_ID"
                            },
                           {
                                "bankCode": "Bank_Code",
                                "payeeId": "Payee_ID"
                            },
                            {
                                "bankCode": "Bank_Code",
                                "payeeId": "Payee_ID"
                            }
                        ]
                    }
                ]
            }
        ]
    }
}

Response description

JSON TagDescriptionData Type
svPayrollServiceRSTag carrying information on process response for payroll processing requestObject
companyTag carrying information on companyObject
companyCodeUnique company identification codeNumerical
payrollTag carrying information on payroll payments in the responseObject
acERPcodeUnique ERP account codeNumerical
payrollPayIdUnique payroll payment identification detailsString
authIdUnique authentication identification detailsString
statusStatus code of the responseBoolean
messageStatus message descriptionString
payeeDetailsTag carrying information on payee payment details in the responseObject
bankCodeUnique bank code identificationString
payeeIdUnique payee/employee identificationString