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 URL | Method | Authentication requirements |
---|---|---|
| POST | 1/. |
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",
"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",
"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"
}
]
}
]
}
]
}
]
}
}'
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",
"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",
"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 Tag | Description | Data type |
---|---|---|
clientid Mandatory | 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 |
svPaymentServiceRQ | Tag carrying information on request to create payment | Object |
company | Tag carrying information on company for creation of payment | Object/Array |
companyCode | Unique identification code of the company
| String |
bulkId | Unique bulk payment identification details that represents a bulk/batch payment | String |
payment | Array of payments | Object/Array |
payId | Unique reference identification details of payment request from ERP | String |
userName | SingleView account's Username | String |
transferType | Whether the transfer is: | Number |
ownAccTxnType | Whether the transfer is: | Number |
amount | Total amount spent on purchase order | Number |
currency | Currency of the payment
| Alphanumeric |
acERPCode | Account from which the amount will be deducted and is the mapping account ERP code for the bank | Alphanumeric |
Beneficiary details | Beneficiary account information included through the | String/Object |
benERPCode | Account where the money will be transferred to and is the mapping Beneficiary ERP code for the bank account | String |
benDetails | Tag carrying beneficiary details that are to be provided manually if
| Object |
description | Description pertaining to the PO raised and/or the approver comments | String |
iv | Array of invoices | Object/Array |
supplierCode | Unique code for the supplier identification
| String |
createdDate | Date on which Invoice was created | String |
payDate | By when the PO should be cleared | String |
userId | PO Raised by the user | String |
ivNumber | Invoice number or ID | String |
amount | Total amount for which transaction was made | Number |
approvers | Last approver who approved the PO, USER ID | String |
description | Description related to payment that includes an array of invoice references; in case a payment has more than one invoice | String |
modeOfPay | Cash/Cheque/Online | String |
ledgerRef | Unique reference for the PO in ledger | String |
po | Array of purchase orders | Array |
poNumber | PO Number | String |
supplierCode | Unique supplier code | String |
createdDate | Date on which PO was created in | Date |
payDate | Date for the payment of the PO in | Date |
userId | Name of the user creating the PO
| String |
ivNumber | Unique invoice identification details
| String |
amount | Total amount of the transaction | Numeric |
approvers | Name of the user approving the PO
| String |
description | Description related to payment Will include an array of invoice references , in case a payment has more than one invoice
| String |
modeOfPay | Details on the mode of the payment | String |
ledgerRef | Unique reference for the PO in ledger | String |
items | Array of items | Array |
item | Item added to the invoice | String |
createdDate | Date of invoice creation | String |
description | Description of the item | String |
quantity | Number of units pertaining to the item | Number |
unitPrice | Price of each unit of item | Number |
discount | Value of the discount | Number |
discountPercentage | % discount | Number |
amount | Cost of total invoiced item | Number |
salesTaxInclude | Sales tax towards the invoiced item | Number |
salesTaxPercentage | Percentage of sales tax towards invoice | Number |
reason | Reason | String |
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 Tag | Description | Data type |
---|---|---|
svPaymentServiceRS | Add payment services Response Tag | Object |
company | Array of companies | Array |
companyCode | Unique company code | String |
userName | SingleView account's username | String |
payment | Array of payments | Array |
authId | SingleView Payment ID | String |
payId | Unique reference id toward payment request from ERP | String |
status | Status code | Numerical |
message | Process display message | String |
errorCode | Error code | String |
Updated 3 days ago