> For the complete documentation index, see [llms.txt](https://docs.ipaymax.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ipaymax.com/create-transactions/transaction-detail.md).

# Transaction Detail

Layanan untuk mendapatkan detail transaksi

URL path: /transaction/detail/{partner\_reference\_number}

Untuk generate signature bisa dilihat pada halaman Dokumentasi API diawal.

Contoh Kode dalam PHP:

```
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api-sandbox.ipaymax.com/transaction/detail/INV12345678',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'X-CLIENT-ID: 3346754028',
    'X-CLIENT-SECRET: sandbox-ipaymax',
    'X-SIGNATURE: dc1aeb9a2c16f235d47bae5a155d89e183059958b649ee6b59067d4656fecc9f',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
```

**Contoh Response Berhasil**

```json
{
    "responseCode": "00",
    "responseMessage": "OK",
    "responseData": {
        "reference_number": "REF987654",
        "partner_reference_number": "PARTNER456789",
        "bank_code": "QRIS",
        "bank_name": "QRIS",
        "amount": 100000,
        "expired_at": "2024-10-30 14:30:00",
        "status": "pending",
        "remark": "",
        "redirect_url": "https://example.com/redirect",
        "customer_id": "12",
        "customer_name": "John Doe",ÏÏ
        "customer_phone": "+6281234567890",
        "customer_email": "johndoe@example.com",
        "checkout_url": "https://example.com/checkout",
        "payment_ref": "abcde1234",a
        "instructions": [
            {
                "title": "ATM",
                "description": "Tata cara bayar"
            }
        ],
        "fees": {
            "subtotal": 10000,
            "fee_type": "customer",
            "merchant_fee": 0,
            "customer_fee": 70,
            "total_fee": 70,   
            "amount_pay": 10070,
            "total": 10000,   
        },
    }
}
```

#### **Response Field Descriptions**

**Root Object**

| Key             | Description                                   |
| --------------- | --------------------------------------------- |
| responseCode    | System status code (e.g., 00 for success).    |
| responseMessage | Descriptive message of the result (e.g., OK). |
| responseData    | The main transaction data container.          |

**responseData Object**

| Key                        | Description                                            |
| -------------------------- | ------------------------------------------------------ |
| reference\_number          | Unique Transaction ID generated by our system.         |
| partner\_reference\_number | Unique Transaction ID from the Merchant's side.        |
| bank\_code                 | Payment channel code (e.g., QRIS, BCA\_VA).            |
| bank\_name                 | Formal name of the payment channel.                    |
| amount                     | Transaction amount that the Customer must pay.         |
| status                     | Current status: pending, success, expired, or failed.  |
| expired\_at                | Payment deadline (Format: YYYY-MM-DD HH:mm:ss).        |
| checkout\_url              | URL for the web-based checkout page.                   |
| payment\_ref               | Payment reference number (e.g., VA number or QRIS ID). |
| instructions               | List of steps to complete the payment.                 |

**Fees Object**&#x20;

| Key           | Description                                              |
| ------------- | -------------------------------------------------------- |
| subtotal      | The original value of the transaction.                   |
| fee\_type     | Fee distribution model: customer, merchant, or custom.   |
| merchant\_fee | The service fee charged to the Merchant.                 |
| customer\_fee | The convenience fee charged to the Customer.             |
| total\_fee    | The sum of merchant\_fee and customer\_fee.              |
| amount\_pay   | **Final Total** that the Customer must pay.              |
| total         | **Net Amount** to be credited to the Merchant's balance. |
