---
title: Validate Payment
slug: v3-gateway/validate-payment
description: Learn how to use the "checkPaymentDetails" API to authenticate payment details following a bill payment utilizing the Bill Payment API. This comprehensive document illustrates an API call example accompanied by the essential headers. Familiarize yourself 
createdAt: 2022-10-06T05:41:16.000Z
---

## Introduction

This API is called for checking payment details after the bill is paid with Bill Payment API.

## Headers

The Headers remain the same for all the API calls.

::::Tabs
:::Tab{title="Production"}
```curl
curl --location --request POST 'https://api-preproduction.signzy.app/api/v3/checkPaymentDetails' \
--header 'Authorization: <AUTH KEY>' \
--header 'Content-Type: application/json' \
--header 'Client-Id: <Client ID>' \
--header 'Client-Secret: <Client Secret Key>' \
--data-raw '{
   "urlAppend":"<trxn_id by billPayAPI>",
   "trxnId": "<merchantTrxnRefIdgiven by billPayAPI>"
}'
```
:::
::::

### Request Parameters

| Key       | Type   | Parameter Description                         |
| --------- | ------ | --------------------------------------------- |
| trxn\_id  | String | Pass the merchantTrxnRefIdgiven by billPayAPI |
| urlAppend | String | Pass the trxn\_id by billPayAPI               |

### Response

| Key       | Type   |
| --------- | ------ |
| trxnRefId | String |
| refId     | String |

POST[ ](https://api.signzy.app/api/v3/eNach/eMandates/\:subReferenceId/charge/\:paymentId/cancel)[https://api.signzy.app/api/v3/checkPaymentDetails](https://api.signzy.app/api/v3/checkPaymentDetails)

**HTTP Response Codes**

| Status Code | Description                      |
| ----------- | -------------------------------- |
| **200**     | All response details are valid   |
| **40x**     | not found, bad request, conflict |

