After Payment
Post-payment management APIs
Check the status of a payment transaction
Basic authentication using Merchant ID and Merchant Key
Order ID to check status
Payment status retrieved
Response code
2000000Response message
SuccessProcessing time in seconds
0.9721949100494385GET /pg/payment/card/check/{orderId} HTTP/1.1
Host: devo.finnet.co.id
Authorization: Basic username:password
Accept: */*
Payment status retrieved
{
"responseCode": "2000000",
"responseMessage": "Success",
"processingTime": 0.9721949100494385,
"data": {
"customer": {
"id": "hajar.finnet@gmail.com",
"email": "hajar.finnet@gmail.com",
"firstName": "Hajar",
"lastName": "Ismail",
"mobilePhone": "+6281286288844"
},
"order": {
"id": "1680576995412",
"amount": "1000",
"currency": "IDR",
"description": "Testing",
"item": [
{
"name": "name",
"quantity": "1",
"category": "apa",
"description": "apalah",
"unitPrice": "100"
}
]
},
"card": {
"mask": "512345xxxxxx0008",
"info": {
"brand": "MASTERCARD",
"issuing": "BANCO DEL PICHINCHA CA",
"type": "CREDIT",
"subType": "STANDARD",
"country": "ECUADOR"
}
},
"meta": {
"data": null
},
"result": {
"payment": {
"amount": 1000,
"status": "CAPTURED",
"statusDesc": null
}
}
}
}Refund a payment transaction
Basic authentication using Merchant ID and Merchant Key
Payment refunded successfully
Response code
2000000Response message
SuccessProcessing time in seconds
0.9721949100494385POST /pg/payment/card/refund HTTP/1.1
Host: devo.finnet.co.id
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"order": {
"id": "1662467391226",
"amount": "99000"
}
}Payment refunded successfully
{
"responseCode": "2000000",
"responseMessage": "Success",
"processingTime": 0.9721949100494385
}Void a payment transaction
Basic authentication using Merchant ID and Merchant Key
Payment voided successfully
Response code
2000000Response message
SuccessProcessing time in seconds
0.9721949100494385POST /pg/payment/card/void HTTP/1.1
Host: devo.finnet.co.id
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"order": {
"id": "1662467391226",
"amount": "99000"
}
}Payment voided successfully
{
"responseCode": "2000000",
"responseMessage": "Success",
"processingTime": 0.9721949100494385
}Cancel a pending order
Basic authentication using Merchant ID and Merchant Key
Order ID to cancel
Order cancelled successfully
Response code
2000000Response message
SuccessProcessing time in seconds
0.9721949100494385GET /pg/payment/card/cancel/{orderId} HTTP/1.1
Host: devo.finnet.co.id
Authorization: Basic username:password
Accept: */*
Order cancelled successfully
{
"responseCode": "2000000",
"responseMessage": "Success",
"processingTime": 0.9721949100494385
}Last updated

