Status Virtual Account
1 min
POST
https://dev.nicepay.co.id/nicepay/api/v1.0/transfer-va/status
Header Parameters
- X-TIMESTAMPstringrequiredExample
- X-SIGNATUREstringrequiredDefault50qKbU/O5o3Ro2Njl71aGUJ0wc1S06LBkDJfijG/bUuKJl6t5tuSp7MtVt2pVZXUHm696ZOQBviaPuFGJBJpiA==
- X-PARTNER-IDstringrequiredExample
- X-EXTERNAL-IDstringrequiredExample
- CHANNEL-IDstringrequiredExample
Body Parameters
- bodystatus_body_1Example
{ "partnerServiceId": "", "customerNo": "", "virtualAccountNo": "70014000091511466666", "inquiryRequestId": "", "additionalInfo": { "totalAmount": { "value": "10000.00", "currency": "IDR" }, "trxId": "2023123100000000000001", "tXidVA": "IONPAYTEST02202304271511466666" } }- objectStatusVirtualAccount
- partnerServiceIdstringrequiredDescription
- customerNostringDescription
- virtualAccountNostringrequiredExampleDescription
- inquiryRequestIdstringrequiredDescription
- additionalInfoadditionalInfoStatus
- totalAmountadditionalInfoStatus_totalAmount
- valuestringExample
- currencystringExample
- trxIdstring
- tXidVAstring
- object
Responses
200
- Success
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
- virtualAccountDataSuccess_virtualAccountData
- partnerServiceIdstringDescription
- customerNostringDescription
- virtualAccountNostringExampleDescription
- inquiryRequestIdstringDescription
- totalAmounttotalAmount
- valuestringExample
- currencystringExample
- additionalInfoSuccess_virtualAccountData_additionalInfo
- bankCdstringExampleDescription
- tXidVAstringExampleDescription
- goodsNmstringExampleDescription
- vacctValidDtstringExampleDescription
- vacctValidTmstringExampleDescription
- virtualAccountNamestringExampleDescription
- trxIdstringExampleDescription
- transactionStatusDescstringExampleDescription
- latestTransactionStatusstringExampleDescription
202
- RequestInProgress
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
409
- DuplicatepartnerReferenceNo
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
500
- GeneralError
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
504
- RequestTimeout
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
curl
curl --request POST \
--url https://dev.nicepay.co.id/nicepay/api/v1.0/transfer-va/status \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-timestamp: 2024-03-05T14:15:40+07:00' \
--header 'x-signature: 50qKbU/O5o3Ro2Njl71aGUJ0wc1S06LBkDJfijG/bUuKJl6t5tuSp7MtVt2pVZXUHm696ZOQBviaPuFGJBJpiA==' \
--header 'x-partner-id: TNICEVA023' \
--header 'x-external-id: 20240304173021' \
--header 'channel-id: TNICEVA023' \
--data '{
"partnerServiceId": "",
"virtualAccountNo": "9912391111111111",
"inquiryRequestId": ""
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("x-timestamp", "2024-03-05T14:15:40+07:00");
myHeaders.append("x-signature", "50qKbU/O5o3Ro2Njl71aGUJ0wc1S06LBkDJfijG/bUuKJl6t5tuSp7MtVt2pVZXUHm696ZOQBviaPuFGJBJpiA==");
myHeaders.append("x-partner-id", "TNICEVA023");
myHeaders.append("x-external-id", "20240304173021");
myHeaders.append("channel-id", "TNICEVA023");
var raw = JSON.stringify({
"partnerServiceId": "",
"virtualAccountNo": "9912391111111111",
"inquiryRequestId": ""
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://dev.nicepay.co.id/nicepay/api/v1.0/transfer-va/status", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://dev.nicepay.co.id/nicepay/api/v1.0/transfer-va/status")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request["x-timestamp"] = "2024-03-05T14:15:40+07:00"
request["x-signature"] = "50qKbU/O5o3Ro2Njl71aGUJ0wc1S06LBkDJfijG/bUuKJl6t5tuSp7MtVt2pVZXUHm696ZOQBviaPuFGJBJpiA=="
request["x-partner-id"] = "TNICEVA023"
request["x-external-id"] = "20240304173021"
request["channel-id"] = "TNICEVA023"
request.body = JSON.dump({
"partnerServiceId": "",
"virtualAccountNo": "9912391111111111",
"inquiryRequestId": ""
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://dev.nicepay.co.id/nicepay/api/v1.0/transfer-va/status"
payload = json.dumps({
"partnerServiceId": "",
"virtualAccountNo": "9912391111111111",
"inquiryRequestId": ""
})
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'x-timestamp': '2024-03-05T14:15:40+07:00',
'x-signature': '50qKbU/O5o3Ro2Njl71aGUJ0wc1S06LBkDJfijG/bUuKJl6t5tuSp7MtVt2pVZXUHm696ZOQBviaPuFGJBJpiA==',
'x-partner-id': 'TNICEVA023',
'x-external-id': '20240304173021',
'channel-id': 'TNICEVA023'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// Successful
{
"responseCode": "2002600",
"responseMessage": "Successful",
"virtualAccountData": {
"partnerServiceId": "",
"customerNo": "",
"virtualAccountNo": "7001400002007725",
"inquiryRequestId": "",
"totalAmount": {
"value": "10000.00",
"currency": "IDR"
},
"additionalInfo": {
"bankCd": "BMRI",
"tXidVA": "TNICEVA02302202403061508052242",
"goodsNm": "John Doe",
"vacctValidDt": "20240307",
"vacctValidTm": "150805",
"virtualAccountName": "John Doe",
"trxId": "2023123100000000000001",
"transactionStatusDesc": "Pending",
"latestTransactionStatus": "03"
}
}
}GENERATED
// Successful
{
"responseCode": "2002600",
"responseMessage": "Successful",
"virtualAccountData": {
"partnerServiceId": "",
"customerNo": "",
"virtualAccountNo": "7001400002007725",
"inquiryRequestId": "",
"totalAmount": {
"value": "10000.00",
"currency": "IDR"
},
"additionalInfo": {
"bankCd": "BMRI",
"tXidVA": "TNICEVA02302202403061508052242",
"goodsNm": "John Doe",
"vacctValidDt": "20240307",
"vacctValidTm": "150805",
"virtualAccountName": "John Doe",
"trxId": "2023123100000000000001",
"transactionStatusDesc": "Pending",
"latestTransactionStatus": "03"
}
}
}Successful
{
"responseCode": "2002700",
"responseMessage": "Successful",
"virtualAccountData": {
"partnerServiceId": "",
"customerNo": "",
"virtualAccountNo": "70014000091511466666",
"inquiryRequestId": "",
"totalAmount": {
"value": "10000.00",
"currency": "IDR"
},
"additionalInfo": {
"virtualAccountName": "Jhon Doe",
"trxId": "2023123100000000000001",
"transactionStatusDesc": "Success",
"latestTransactionStatus": "00",
"bankCd": "BMRI",
"tXidVA": "IONPAYTEST02202304271511466666",
"goodsNm": "John Doe",
"vacctValidDt": "20230429",
"vacctValidTm": "151146"
}
}
}202
// Request In Progress
{
"responseCode": "202XX00",
"responseMessage": "Request In Progress"
}GENERATED
// Request In Progress
{
"responseCode": "202XX00",
"responseMessage": "Request In Progress"
}Request In Progress
{
"responseCode": "202XX00",
"responseMessage": "Request In Progress"
}409
// Duplicate partnerReferenceNo
{
"responseCode": "409XX01",
"responseMessage": "Duplicate partnerReferenceNo"
}GENERATED
// Duplicate partnerReferenceNo
{
"responseCode": "409XX01",
"responseMessage": "Duplicate partnerReferenceNo"
}Duplicate partnerReferenceNo
{
"responseCode": "409XX01",
"responseMessage": "Duplicate partnerReferenceNo"
}500
// General Error
{
"responseCode": "500XX00",
"responseMessage": "General Error"
}GENERATED
// General Error
{
"responseCode": "500XX00",
"responseMessage": "General Error"
}General Error
{
"responseCode": "500XX00",
"responseMessage": "General Error"
}504
// Request Timeout
{
"responseCode": "504XX00",
"responseMessage": "Request Timeout"
}GENERATED
// Request Timeout
{
"responseCode": "504XX00",
"responseMessage": "Request Timeout"
}Request Timeout
{
"responseCode": "504XX00",
"responseMessage": "Request Timeout"
}