> For the complete documentation index, see [llms.txt](https://monexapidoc.ibanera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://monexapidoc.ibanera.com/integration-and-function-flow/3.-get-details-optional.md).

# 3. Get Details (Optional)

Get Details allows you to reference an existing previous transaction and obtain it's details.

### **POST Request to {Endpoint}/pay/getDetails #** <a href="#post-request-to-endpoint-pay-getdetails" id="post-request-to-endpoint-pay-getdetails"></a>

**JSON Body Parameter**

| Parameter | Type   | Details                                                        |
| --------- | ------ | -------------------------------------------------------------- |
| txID      | String | txID provided in response to the payment authorization request |

### JSON Body Request Example:

```javascript
{
    "txID": "111111"
}
```

### JSON Success Response (Status Code 200)

````json
```json
{
    "success": true,
    "data": {
        "txID": "127151",
        "merchantID": "00",
        "orderAmount": 23.54,
        "paymentStatus": "APPROVED",
        "state": "QUEUED",
        "mintHash": "",
        "mintDate": "2023-09-20T04:55:05.711Z"
    }
}
```
````

**For 3D Declined Transactions**

```javascript
{
    "success": true,
    "data": {
        "txID": "141840",
        "merchantID": "tst-1",
        "orderAmount": 11.11,
        "reason": "33-CARD EXPIRED",
        "paymentStatus": "DECLINED",
        "state": "DECLINED"     
    }
}
```
