Tagih Check Point

This process is used by merchants to check if their customers have paid their transactions. Merchant will send request to Tagih.id system, then Tagih.id will respond in json format as shown below


{"invoices": {"no invoice": "status invoice"}}

Success sample response from the seller:

{"invoices": {"IN-DGI773246": "0000", "IN-DGI773247": "0001"}}

Flow

Tagih.id -> Merchant

Method

HTTP Post

API URL

http://www.yourwebsite.com/checkinvoice.php or
https://www.yourwebsite.com/checkinvoice.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 Local date/time Tagih.id server when messages response
comm_code 32 Yes Merchant community code listed in the Tagih.id application
member_code 20 Yes Merchant member code listed in the Tagih.id application
signature 64 Yes Signature that need to be validated by merchant, see page here for more detail
invoices JSON Yes Transaction’s Detail
Format: {invoice_no:amount}
Example: {INV001: 90000,INV002:50000}

Parameter Response:
Parameter Name Max Length Mandatory Description
invoices JSON No Transaction Details
Example: {"IN-DGI773246": "0000","IN-DGI773247": "0001"}
0000 = Success
0001 = Invoice Not Found
0002 = Invoice Is Already Paid
0003 = Invoice is rejected
0004 = Amount is not valid
  

Sample Request

POST /path/for/checkinvoice HTTP/1.1 Host: merchant.domain Connection: keep-alive Content-Type: application/x-www-form-urlencoded Accept: */* rq_uuid=80784df2-accb-46fc-92f4-8d3103b38408 &rq_datetime=2021-10-23 22:51:45 &comm_code=SGWBUKUKUSC &member_code=2c4516b6 &signature=e7bb3339e618b6fb8ce3035edc83456813efb962e9f2c2b286e92387615b6f15 &invoices=[{"IN-DGI773246": "90000","IN-DGI773247":"50000"}]
  

Sample Response

{ { "IN-DGI773246": "0000", "IN-DGI773247": "0001" }