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.
Endpoint URL | Method | Authentication requirements |
|---|---|---|
| POST |
|
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": "1101",
"bulkId": null,
"payment": [
{
"userName": "sayeed_7612",
"payId": "4782567",
"transferType": "2",
"ownAccTxnType": null,
"amount": 10.64,
"currency": "SAR",
"acERPcode": "1101_SNB01",
"benERPcode": 123456,
"benDetails": {
"bankCode": "",
"bic": "",
"iban": "",
"name": "",
"currency": "",
"desc": "",
"type": "",
"add": "",
"city": "",
"country": ""
},
"description": "1677745/Claims Paid on Direct / مرزوق مبارك محسن القحطاني",
"iv": [
{
"supplierCode": "2",
"createdDate": "2026-08-24T00:00:00",
"payDate": "2026-08-24T00:00:00",
"userId": "1130",
"ivNumber": "UAT_PPR_Retail_01",
"amount": 4045.64,
"approvers": "1130",
"description": "1677745/Claims Paid on Direct / مرزوق مبارك محسن القحطاني",
"modeOfPay": "EFT",
"ledgerRef": "2697342UAT_PPR_Retail_01",
"po": null,
"item": [
{
"item": "0",
"createdDate": "2025-04-24T00:00:00",
"description": "0",
"quantity": 0,
"unitPrice": 0,
"discount": 0,
"discountPercentage": 0,
"amount": 3517.94,
"salesTaxInclude": 527.7,
"salesTaxPercentage": 15,
"reason": "0"
}
]
}
]
}
]
}
]
}
}'Request details:
JSON Tag | Description | Data type |
|---|---|---|
svPaymentServiceRQ Mandatory | Tag carrying information on request to create payment | Object |
company Mandatory | Tag carrying information on company for creation of payment | Object/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 payments | Object/Array |
payId Mandatory | Unique reference identification details of payment request from ERP | String |
userName Mandatory | SingleView account's Username | String |
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: | Number |
amount Mandatory | Total amount spent on purchase order | Number |
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 bank | Alphanumeric |
Beneficiary details Conditional Mandatory | Beneficiary account information included through the | String/Object |
benERPCode Specific Mandatory | Account where the money will be transferred to and is the mapping Beneficiary ERP code for the bank account | String |
benDetails Specific Mandatory | 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": "1101",
"payment": [
{
"payId": "4782567",
"authId": "339276619",
"acERPcode": "1101_SNB01",
"benERPcode": "Retail_2613809",
"status": 0,
"message": "data added successfully"
}
]
}
]
}
}Response description:
JSON Tag | Description | Data type |
|---|---|---|
svPaymentServiceRS | Add payment services Response Tag | Object |
company | Array of companies | Array |
companyCode | Unique company code | String |
payment | Array of payments | Array |
authId | SingleView Payment ID | String |
payId | Unique reference id toward payment request from ERP | String |
acERPcode | Unique ERP based account identification details | Alphanumeric |
benERPcode | Unique beneficiary identification details | Alphanumeric |
status | Status code | Numerical |
message | Process display message | String |
errorCode | Error code | String |