Appearance
Inquiry VA V2 PG3
Inquiry VA will show only the latest 5 transactions histories. The transactions history will be shown when the transaction is failed, or succeed only. You'll find more than one transaction history only on VA Feature type 2, 3 and 4 which supports multi use VA.
##Information
Key | Value |
---|---|
Hostname | https://api-stage.ifortepay.id |
Path | /va/inquiry |
HTTP Method | POST |
Headers
📋 Required HTTP Headers for /va/inquiry
Key | Format | Required | Value |
---|---|---|---|
Content-Type | application/json | M | |
Authorization | String | M | Basic { Base64encodedKey } |
x-req-signature | String | M | { x-req-signature } |
x-version | String | M | v3 |
##Example
Body raw
json
{
"external_id":"18457738645627",
"order_id":"Test-01",
"transaction_id":"8393c208-8b83-49eb-8c0b-0b50016e7401",
"payment_method":"BANK_TRANSFER",
"payment_channel":"PERMATA"
}
Example Request
shell
curl --location 'https://api-stage.ifortepay.id/va/inquiry' \
--header 'Content-Type: application/json' \
--header 'Authorization: {{Authorization}}' \
--header 'x-req-signature: {{x-req-signature}}' \
--header 'x-version: v3' \
--data '{
"external_id":"58816161026381",
"order_id":"Test-01",
"transaction_id":"20e0d5f1-ada2-4fd1-bac3-4b6832f134da",
"payment_method":"BANK_TRANSFER",
"payment_channel":"FINPAY"
}'
go
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api-stage.ifortepay.id/va/inquiry"
method := "POST"
payload := strings.NewReader(`{
"external_id":"58816161026381",
"order_id":"Test-01",
"transaction_id":"20e0d5f1-ada2-4fd1-bac3-4b6832f134da",
"payment_method":"BANK_TRANSFER",
"payment_channel":"FINPAY"
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Authorization", "{{Authorization}}")
req.Header.Add("x-req-signature", "{{x-req-signature}}")
req.Header.Add("x-version", "v3")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
js
var axios = require('axios');
var data = JSON.stringify({
"external_id": "58816161026381",
"order_id": "Test-01",
"transaction_id": "20e0d5f1-ada2-4fd1-bac3-4b6832f134da",
"payment_method": "BANK_TRANSFER",
"payment_channel": "FINPAY"
});
var config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://api-stage.ifortepay.id/va/inquiry',
headers: {
'Content-Type': 'application/json',
'Authorization': '{{Authorization}}',
'x-req-signature': '{{x-req-signature}}',
'x-version': 'v3'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
php
use GuzzleHttp\Client;
$client = new Client();
$headers = [
'Content-Type' => 'application/json',
'Authorization' => '{{Authorization}}',
'x-req-signature' => '{{x-req-signature}}',
'x-version' => 'v3'
];
$body = '{
"external_id": "58816161026381",
"order_id": "Test-01",
"transaction_id": "20e0d5f1-ada2-4fd1-bac3-4b6832f134da",
"payment_method": "BANK_TRANSFER",
"payment_channel": "FINPAY"
}';
$request = new Request('POST', 'https://api-stage.ifortepay.id/va/inquiry', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
Example Response
json
{
"response_code": "00",
"transaction_id": "20e0d5f1-ada2-4fd1-bac3-4b6832f134da",
"external_id": "58816161026381",
"order_id": "Test-01",
"currency": "IDR",
"transaction_status": "PAID",
"transaction_time": "2022-01-28T14:36:41.685+07:00",
"payment_method": "BANK_TRANSFER",
"payment_channel": "FINPAY",
"additional_data": "remarks text or any json text",
"callback_url": "https://testvav5.free.beeceptor.com",
"customer_details": {
"email": "customer@email.com",
"full_name": "My FullName",
"phone": "0888888888"
},
"item_details": [
{
"item_id": "ID 12",
"name": "item 1",
"amount": 10000,
"qty": 1,
"description": "item description"
}
],
"payment_history": [
{
"paid_amount": 10000,
"paid_time": "2022-01-28T14:37:14.958+07:00",
"reference_id": null
}
],
"payment_options": {
"recurring": false,
"referral_code": "agen 1",
"source": "payment_page",
"is_recurring": false
},
"payment_details": {
"payment_system": "CLOSED",
"billing_name": "Customer",
"va_number": "021113153599",
"amount": 10000,
"total_fee_amount": 0,
"total_promo_amount": 0,
"total_amount": 10000,
"total_paid_amount": 10000,
"is_multi_use": false,
"is_customer_paying_fee": false,
"expired_time": "2022-01-30T11:34:05.842+07:00",
"transaction_description": "this is order description"
},
"billing_address": {
"full_name": "MC Payment",
"phone": "123456",
"address": "Warung jati 8a ",
"city": "Jakarta",
"country": "Indonesia",
"postal_code": "11111"
},
"shipping_address": {
"full_name": "MC Payment",
"phone": "123456",
"address": "Warung jati 8a ",
"city": "Jakarta",
"country": "Indonesia",
"postal_code": "11111"
},
"mis_fee": "{\"off_us\":[{\"vendor\":\"vendor\",\"fix\":0,\"percentage\":0.003,\"tax_included\":1,\"tax_rate\":10.0},{\"vendor\":\"mcpayment\",\"fix\":0,\"percentage\":0.002,\"tax_included\":1,\"tax_rate\":10.0},{\"vendor\":\"bank\",\"fix\":0,\"percentage\":0.003,\"tax_included\":1,\"tax_rate\":10.0}],\"on_us\":[{\"vendor\":\"vendor\",\"fix\":30,\"percentage\":0.0,\"tax_included\":1,\"tax_rate\":10.0},{\"vendor\":\"mcpayment\",\"fix\":10,\"percentage\":0.0,\"tax_included\":1,\"tax_rate\":10.0},{\"vendor\":\"bank\",\"fix\":20,\"percentage\":0.0,\"tax_included\":1,\"tax_rate\":10.0}]}",
"mdr_details": {
"total_mdr": 80,
"total_dpp": 75,
"total_tax": 5,
"total_dpp_plus_tax": 80,
"customer_pay": 10000,
"merchant_get": 9920,
"merchant_mdr_details": [
{
"name": "vendor",
"mdr": 30,
"dpp_tax": 28,
"tax": 2
},
{
"name": "mcpayment",
"mdr": 20,
"dpp_tax": 19,
"tax": 1
},
{
"name": "bank",
"mdr": 30,
"dpp_tax": 28,
"tax": 2
}
]
},
"mdr_details_on_us": {
"total_mdr": 60,
"total_dpp": 57,
"total_tax": 3,
"total_dpp_plus_tax": 60,
"customer_pay": 10000,
"merchant_get": 9940,
"merchant_mdr_details": [
{
"name": "vendor",
"mdr": 30,
"dpp_tax": 28,
"tax": 2
},
{
"name": "mcpayment",
"mdr": 10,
"dpp_tax": 10,
"tax": 0
},
{
"name": "bank",
"mdr": 20,
"dpp_tax": 19,
"tax": 1
}
]
}
}