Inquiry Transaction

When redirecting to the payment page, Espay system will ask the details of the transaction to the merchant’s system based on the order id provided by the merchant. This transaction detail will be shown to the customers when customers are in the payment page and to notify the bank system regarding the amount to be processed.


Espay system will send the the request and once the merchant receive the request, merchant is expected to respond with semicolon (;) separator as shown on this template

error_code;error_message;order_id;amount;ccy;description;trx_date

Example of success response from merchant side :

0;Success;TX151028132832A001;50000.00;IDR;Payment For Me;28/10/2015 13:28:32

Example of error response from merchant side :

1;Invalid Order Id;;;;;

Flow Message

ESPAY -> Merchant

Method

HTTP Post

API URL

http://www.yourwebsite.com/inquiry.php or 
https://www.yourwebsite.com/inquiry.php


Parameter Request:
Parameter Name Max Length Mandatory Description
rq_uuid 64 Yes Request identifier. Unique id to identify these messages with other messages
rq_datetime 19 Yes Date and time in Espay application server when messages sent
member_id 20 No Customer code if listed in the Espay application
comm_code 32 Yes Merchant code listed in the Espay application
order_id 20 Yes Transaction Number / Invoice Id / unique id that identify the order / billing / invoice.
Password 32 No Password used for identification and validation mechanisms by merchant to verify that a request is completely derived from the Espay application
Signature 64 Yes Signature required to validate by merchant, see page here for more detail

Parameter Response:
Parameter Name Max length Mandatory Description
error_code 4 Yes Merchant will give the information about the request based on this field. 0 = Success, process in merchant side is success
other = failed, process in merchant side fails(validation error, business process does not match, or other issues)
error_message 32 Yes If error_code equal to 0 = Success
If error_code is not equal to 0, please put the message or description of the error on this field
order_id 20 No Transaction Number / Invoice Id / unique id that identifies the order / billing / invoice
amount 13.2 No Amount that must be paid by the customer
Format : 100000.00
ccy 3 No Transaction’s currency code. ex: IDR / USD
description 32 No The description of the transaction
trx_date 19 No Transaction date in merchant’s server
Format : DD/MM/YYYY hh:mm:ss