Faspay
Search…
Cancel Transaction
Cancel transaction is a process to cancel transaction which is already submit to Faspay system
Transaction with status paid can't be cancel using this API
Endpoint URL Cancel Transaction
Endpoint URL is used as a feedback URL that will process the data in the inquiry from the merchant system. There are two URLs that needs to be used, namely Production and Development. For the implementation of the testing or UAT can use the URL development.
Request Parameter Cancel Transaction
Transaction cancel the request parameters are parameters that must be provided by the merchant system to be able to cancel the transaction into the system inquiry Faspay.
Request
Sample XML Request
Sample JSON Request
Parameter
Data Type
M/O/C
Description
Request
Alfanumeric (50)
O
Request Description
trx_id
Numeric (16)
M
Transaction ID (Issued/generated by Faspay (Media Indonusa)) Notes: Unique Transaction ID for 1 day or as long as it hasn't been paid and hasn't expired
merchant_id
Numeric (5)
M
Merchant Code
Merchant
Alfanumeric (32)
O
Merchant Name
bill_no
Alfanumeric (32)
M
Order Number
payment_cancel
Alfanumeric (50)
M
Cancellation Description
Signature
Alfanumeric
M
sha1(md5(user_id+password+bill_no))
1
<faspay>
2
<request>Canceling Payment</request>
3
<trx_id>3100440033666278</trx_id>
4
<merchant_id>31004</merchant_id>
5
<merchant>GONLA</merchant>
6
<bill_no>31004001</bill_no>
7
<payment_cancel>Barang Habis</payment_cancel>
8
<signature>be8791ac5f10bb042834896598bfc6bb9aadcbf9</signature>
9
</faspay>
Copied!
1
{
2
"request":"Canceling Payment",
3
"trx_id":"9999970700002782",
4
"merchant_id":"99999",
5
"merchant" : "FASPAY STORE",
6
"bill_no":"8226",
7
"payment_cancel" : "Barang Habis",
8
"signature":"6d16537c525b0e8450cdf5d4e67fbc24b1ed41c5"
9
}
Copied!
Response Parameter Cancel Transaction
Response parameters are parameters that will be delivered by the system Faspay in response to the request parameters have been sent by the merchant system. If no parameters are not appropriate / value is incorrect, the transaction will be rejected in the system Faspay.
Response
Sample XML Response
Sample JSON Response
Parameter
Data Type
M/O/C
Description
Response
Alfanumeric (50)
O
Request Description
trx_id
Numeric (16)
M
Transaction ID (Issued/generated by Faspay (Media Indonusa)) Notes: Unique Transaction ID for 1 day or as long as it hasn't been paid and hasn't expired
merchant_id
Numeric (5)
M
Merchant Code
Merchant
Alfanumeric (32)
O
Merchant Name
bill_no
Alfanumeric (32)
M
Order Number
trx_status_code
Numeric
M
Transaction Status
trx_status_desc
Alfanumeric (32)
M
Transaction Status Description
payment_status_code
Numeric (1)
M
Payment status code
payment_status_desc
Alfanumeric (32)
M
Payment Status Description
payment_cancel_msg
Alfanumeric (50)
M
Payment Cancel Reason's Message
payment_cancel_date
Datetime
M
Payment Cancel Date
response_code
Alfanumeric (2)
M
Response Code 00 Success
response_desc
Alfanumeric (32)
M
Response Description
1
<faspay>
2
<response>Canceling Payment</response>
3
<trx_id>3100440033666278</trx_id>
4
<merchant_id>31004</merchant_id>
5
<merchant>GONLA</merchant>
6
<bill_no>31004001</bill_no>
7
<payment_cancel>Barang Habis</payment_cancel>
8
<signature>be8791ac5f10bb042834896598bfc6bb9aadcbf9</signature>
9
</faspay>
Copied!
1
{
2
"response": "Canceling Payment",
3
"trx_id": "9999970700002782",
4
"merchant_id": "99999",
5
"merchant": "FASPAY STORE",
6
"bill_no": "8226",
7
"trx_status_code": "3",
8
"trx_status_desc": "Order Expired",
9
"payment_status_code": "7",
10
"payment_status_desc": "Payment Expired",
11
"payment_cancel_date": [],
12
"payment_cancel": "Barang Habis",
13
"response_code": "54",
14
"response_desc": "Transaksi Anda telah kedaluwarsa."
15
}
Copied!
Last modified 5d ago
Copy link