Skip to main content

Create Payment Request

This is a request for payment generated by the client sent to the Payer requesting payments for a particular PO/invoice in certain currency virtual receiving account.

Definition

URL
POST https://api-test.instarem.com:4803/api/v1/client/{clientId}/payer/{payerId}/paymentRequest

Header Parameters:

ParameterDescriptionTypeRequired
authorizationAuthentication token.StringYes
content-typeThe Content-Type entity header is used to indicate the media type of the resource. Expected values could be multipart/form-data.StringYes

Path Parameters:

ParameterDescriptionTypeRequired
clientIdThis is the unique client ID generated by Nium.StringYes
payerIdThis is the unique payer ID generated by Nium.StringYes

Example Request:

curl --request post \\
--url "https://api-test.instarem.com:4803/api/v1/client/{clientId}/payer/{payerId}/paymentRequest" \\
--header 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0OTgxMzQ4OTQsImRhdGEiOnsic3ViIjoiNTk0MjNmMzZjZWEyMTQ2OTI2ODczOWE1IiwiY2xpZW50IjoiNTk0MjNmMzZjZWEyMTQ2OTI2ODczOWExIn0sImlhdCI6MTQ5ODA0ODQ5NH0.pevwSDpk-JDNtVIpqFu_m0Xu1UnDVumrAYStcrxf8sM' \\
--header 'content-type: multipart/form-data' \\
--form "clientId=593feb7c5g32bb2357b2df6c" \\
--form "payerId=ee0f344e-bbc7-4f33-a366-39386584cb30" \\
--form "amount=1000.12" \\
--form "description=Payment Request for Goods sent on 02/12/2020" \\
--form "dueDate=2021-01-10" \\
--form "terms=NET30" \\
--form "paymentReferenceNumber=CL123456" \\
--form "currencyCode=EUR" \\
--form "label=LOCAL" \\
--form "sendEmail=true" \\
--form "payReqDocs="

Body Parameters:

ParameterDescriptionTypeRequired
clientIdUnique id generated for Client.StringNo
payerIdUnique id generated for Payer.StringNo
amountThis is the payment amount that is being requested from the Payer.NumberYes
descriptionDescription of the payment being requested. This parameter is mandatory if currencyCode is INR.StringNo
dueDateThis field is date before which the invoice has to be paid/payment is to be made by the Payer.StringNo
termsInvoice payment terms outline how, when, and by what method a customer/Payer remits payment to a seller.StringNo
paymentReferenceNumberUnique Reference Number that is being requested from the Payer. This parameter is mandatory if currencyCode is INR.StringNo
currencyCodeCode of the currency in which the payment is being requested in. Example: CurrencyCode will be USD if the invoice currency is USD and payment is being requested in USD virtual receiving account.StringYes
labelThe type for virtual receiving account used for payment request and value for this could be LOCAL or GLOBAL or LOCAL,GLOBAL. For SGD currency, label should be LOCAL,GLOBALStringYes
sendEmailBoolean flag to send or not send email notification to the PAYERBooleanNo
payReqDocsThese documents could be invoice copy, PO copy, shipment notice copy for the Payers reference.FileNo

Response:

{
"paymentRequestId": "PR100799",
"virtualAccount": "9675538230127460",
"bankAccountName": "Instarem India",
"bankName": "DBS Hong Kong",
"bankAddress": "Hong Kong",
"bankRoutingDetails": {
"routing_code_1": "IFSC CODE",
"routing_value_1": "SBIN0000058",
"routing_code_2": "IFSC CODE",
"routing_value_2": "259087"
}
}

Response Parameters:

ParameterDescriptionType
paymentRequestIdUnique payment request ID.String
virtualAccountUnique virtual account number.String
bankAccountNameBeneficiary Name.String
bankNameBank Name.String
bankAddressAddress of the bank.String
bankRoutingDetails.routing_code_1Routing code type 1 (eg IFSC for India, SORT CODE for UK, ABA CODE for USA, BIC CODE for Europe)String
bankRoutingDetails.routing_value_1IFSC Code of the bank (eg SBIN0000058 for IFSC, 259087 for SORT CODE, 111000025 for ABA CODE, LIABLT20001 for BIC CODE)String
bankRoutingDetails.routing_code_2Routing code type 2 (eg IFSC for India, SORT CODE for UK, ABA CODE for USA, BIC CODE for Europe)String
bankRoutingDetails.routing_value_2IFSC Code of the bank (eg SBIN0000058 for IFSC, 259087 for SORT CODE, 111000025 for ABA CODE, LIABLT20001 for BIC CODE)String