# Verify Payment

Parameters:

| Parameter       | Required | Description                                                                              |
| --------------- | -------- | ---------------------------------------------------------------------------------------- |
| transaction\_id | yes      | The transaction ID is received by your customer when they initiate a payment.            |
| private\_key    | yes      | Your private key from Monicredit. Use test key for test mode and live key for live mode. |
|                 |          |                                                                                          |

Endpoint: GET - <mark style="color:purple;">{{baseUrl}}/payment/transactions/verify-transaction</mark>

Example Payload:

```json
{
	"transaction_id": "ACX0000000000",
	"private_key": "PUB_00000000"
}
```

Success Response

```json
{
    "status": true,
    "message": "Transaction Successfully",
    "orderid": "KJKGFKJGDKG",
    "data": {
        "amount": 200,
        "orderid": "KJKGFKJGDKG",
        "transid": "ACX0000000000",
        "date_paid": "2023-10-30 00:54:31",
        "status": "APPROVED",
        "channel": "TRANSFER",
        "balance": 0
    }
}
```

Failed Response

```json
{
    "status": false,
    "message": "Transaction Not Successful",
    "orderid": "KNDFKJNDKBKJD",
    "data": {
        "amount": 200,
        "orderid": "KNDFKJNDKBKJD",
        "transid": "ACX000000000",
        "date_paid": "2023-10-30 00:54:31",
        "status": "PENDING",
        "channel": "TRANSFER"
    }
}
```

Invalid Response

```json
{
    "status": false,
    "message": "Invalid Transaction"
}
```
