Merchant Reconciliation
This endpoint is uses for reconciliation request between merchant and PAYON Aggregator.
POST
{{URL}}/pg/merchant/reconcilation
Request Body
[
{
"merchantId": "O0000021",
"reconciliationDv": "APPROVED",
"termId": "OW04000007",
"txId": "1652858955940000",
"buyerId": "becbd0f6-39b7-4b81-ba36-6c374ae8eaee",
"sellerId": "5f31c1ec-97ff-4940-b5ad-5d6b79eba748",
"grandToTAmt": 2.3,
"resultMsg": "Success",
"resultCode": "0000"
},
{
"merchantId": "O0000021",
"reconciliationDv": "APPROVED",
"termId": "OW04000007",
"txId": "1652886005159000",
"buyerId": "becbd0f6-39b7-4b81-ba36-6c374ae8eaee",
"sellerId": "5f31c1ec-97ff-4940-b5ad-5d6b79eba748",
"grandToTAmt": 2.3,
"resultMsg": "Success",
"resultCode": "0000"
}
]
[
{
"merchantId": "O0000021",
"reconciliationDv": "REJECTED",
"termId": "OW04000007",
"txId": "1652858955940000",
"buyerId": "becbd0f6-39b7-4b81-ba36-6c374ae8eaee",
"sellerId": "5f31c1ec-97ff-4940-b5ad-5d6b79eba748",
"grandToTAmt": 2.3,
"resultMsg": "Invalid CUSTOMER ID",
"resultCode": "0006"
},
{
"merchantId": "O0000021",
"reconciliationDv": "REJECTED",
"termId": "OW04000007",
"txId": "1652886005159000",
"buyerId": "becbd0f6-39b7-4b81-ba36-6c374ae8eaee",
"sellerId": "5f31c1ec-97ff-4940-b5ad-5d6b79eba748",
"grandToTAmt": 2.3,
"resultMsg": "Invalid CUSTOMER ID",
"resultCode": "0006"
}
]
Respond Code
Example Request
curl --location -g --request POST '{{url}}:{{pg_port}}/pg/merchant/reconcilation' \
--data-raw '[
{
"termId": "OW04000007",
"merchantId": "O0000021",
"buyerId": "becbd0f6-39b7-4db81-ba36-6c374ae8eaee",
"sellerId": "5f31c1ec-97ff-4940-b5ad-5d6b79eba748",
"txId": "1652858955940000",
"transactionType": "PURCHASE",
"grandToTAmt": 2.3
},{
"termId": "OW04000007",
"merchantId": "O0000021",
"buyerId": "becbd0f6-39b7-4bd81-ba36-6c374ae8eaee",
"sellerId": "5f31c1ec-97ff-4940-b5ad-5d6b79eba748",
"txId": "1652886005159000",
"transactionType": "PURCHASE",
"grandToTAmt": 2.3
}
]'
POST /pg/merchant/reconcilation HTTP/1.1
Host: {{url}}:{{pg_port}}
Content-Length: 521
[
{
"termId": "OW04000007",
"merchantId": "O0000021",
"buyerId": "becbd0f6-39b7-4db81-ba36-6c374ae8eaee",
"sellerId": "5f31c1ec-97ff-4940-b5ad-5d6b79eba748",
"txId": "1652858955940000",
"transactionType": "PURCHASE",
"grandToTAmt": 2.3
},{
"termId": "OW04000007",
"merchantId": "O0000021",
"buyerId": "becbd0f6-39b7-4bd81-ba36-6c374ae8eaee",
"sellerId": "5f31c1ec-97ff-4940-b5ad-5d6b79eba748",
"txId": "1652886005159000",
"transactionType": "PURCHASE",
"grandToTAmt": 2.3
}
]
var settings = {
"url": "{{url}}:{{pg_port}}/pg/merchant/reconcilation",
"method": "POST",
"timeout": 0,
"data": "[\n {\n \"termId\": \"OW04000007\",\n \"merchantId\": \"O0000021\",\n \"buyerId\": \"becbd0f6-39b7-4db81-ba36-6c374ae8eaee\",\n \"sellerId\": \"5f31c1ec-97ff-4940-b5ad-5d6b79eba748\",\n \"txId\": \"1652858955940000\",\n \"grandToTAmt\": 2.3\n },{\n \"termId\": \"OW04000007\",\n \"merchantId\": \"O0000021\",\n \"buyerId\": \"becbd0f6-39b7-4bd81-ba36-6c374ae8eaee\",\n \"sellerId\": \"5f31c1ec-97ff-4940-b5ad-5d6b79eba748\",\n \"txId\": \"1652886005159000\",\n \"grandToTAmt\": 2.3\n }\n]",
};
$.ajax(settings).done(function (response) {
console.log(response);
});a
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => '{{url}}:{{pg_port}}/pg/merchant/reconcilation',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'[
{
"termId": "OW04000007",
"merchantId": "O0000021",
"buyerId": "becbd0f6-39b7-4db81-ba36-6c374ae8eaee",
"sellerId": "5f31c1ec-97ff-4940-b5ad-5d6b79eba748",
"transactionType": "PURCHASE",
"txId": "1652858955940000",
"grandToTAmt": 2.3
},{
"termId": "OW04000007",
"merchantId": "O0000021",
"buyerId": "becbd0f6-39b7-4bd81-ba36-6c374ae8eaee",
"sellerId": "5f31c1ec-97ff-4940-b5ad-5d6b79eba748",
"transactionType": "PURCHASE",
"txId": "1652886005159000",
"grandToTAmt": 2.3
}
]',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Last updated