> For the complete documentation index, see [llms.txt](https://docs.xplorpay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xplorpay.com/api-reference/api/payments/gateway-settings/check-duplicate-transaction-settings.md).

# Check Duplicate Transaction Settings

## Get duplicate check transaction settings

> Retrieve the configuration settings that control duplicate transaction checking.

```json
{"openapi":"3.0.1","info":{"title":"Gateway Settings API","version":"2.0"},"paths":{"/rest/v2/settings/transaction/duplicates":{"get":{"tags":["Check Duplicate Transaction Settings"],"summary":"Get duplicate check transaction settings","description":"Retrieve the configuration settings that control duplicate transaction checking.","operationId":"getSettings","responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckDuplicateTransactionSettingsPayload"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CheckDuplicateTransactionSettingsPayload"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}}}}}}}},"components":{"schemas":{"CheckDuplicateTransactionSettingsPayload":{"type":"object","properties":{"check-duplicate-transaction-settings":{"$ref":"#/components/schemas/check-duplicate-transaction-settings"},"payloadType":{"type":"string","description":"Type of payload returned in the response.","xml":{"name":"type","attribute":true}}},"description":"Check duplicate transaction settings","xml":{"name":"payload"}},"check-duplicate-transaction-settings":{"required":["check-merchant-level","enabled","if-duplicate-found-respond-with-error","include-invoice","time-range-in-minutes","use-invoice-instead-of-card"],"type":"object","properties":{"time-range-in-minutes":{"type":"integer","description":"Time window (in minutes) within which transactions are checked for duplication.","format":"int32"},"if-duplicate-found-respond-with-error":{"type":"boolean","description":"System responds with an error when a duplicate transaction is found."},"include-invoice":{"type":"boolean","description":"Invoice number is included in the duplicate check criteria."},"enabled":{"type":"boolean","description":"Duplicate transaction check is enabled for future."},"check-merchant-level":{"type":"boolean","description":"Duplicate transaction checks are performed across all terminals under the merchant."},"use-invoice-instead-of-card":{"type":"boolean","description":"Invoice numbers are used instead of card details for duplicate detection."}},"description":"Check duplicate transaction settings","xml":{"name":"check-duplicate-transaction-settings"}},"ErrorPayloadResponsePayload":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/ErrorPayload"},"payloadType":{"type":"string","description":"Type of payload returned in the response.","xml":{"name":"type","attribute":true}}},"description":"Payload","xml":{"name":"payload"}},"ErrorPayload":{"type":"object","properties":{"error-message":{"type":"string","description":"Describes the reason for the error."},"result-code":{"type":"string","description":"Numeric code that identifies the type of error returned by the request."},"time-stamp":{"type":"string","description":"Date and time when the error occurred, ISO 8601 format (UTC)."}},"xml":{"name":"error"}}}}}
```

## Create duplicate check transaction settings

> Create the configuration settings to detect and handle duplicate transactions for the current terminal.

```json
{"openapi":"3.0.1","info":{"title":"Gateway Settings API","version":"2.0"},"paths":{"/rest/v2/settings/transaction/duplicates":{"post":{"tags":["Check Duplicate Transaction Settings"],"summary":"Create duplicate check transaction settings","description":"Create the configuration settings to detect and handle duplicate transactions for the current terminal.","operationId":"createSetting","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/check-duplicate-transaction-settings"}}},"required":true},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckDuplicateTransactionSettingsPayload"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CheckDuplicateTransactionSettingsPayload"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}}}}}}}},"components":{"schemas":{"check-duplicate-transaction-settings":{"required":["check-merchant-level","enabled","if-duplicate-found-respond-with-error","include-invoice","time-range-in-minutes","use-invoice-instead-of-card"],"type":"object","properties":{"time-range-in-minutes":{"type":"integer","description":"Time window (in minutes) within which transactions are checked for duplication.","format":"int32"},"if-duplicate-found-respond-with-error":{"type":"boolean","description":"System responds with an error when a duplicate transaction is found."},"include-invoice":{"type":"boolean","description":"Invoice number is included in the duplicate check criteria."},"enabled":{"type":"boolean","description":"Duplicate transaction check is enabled for future."},"check-merchant-level":{"type":"boolean","description":"Duplicate transaction checks are performed across all terminals under the merchant."},"use-invoice-instead-of-card":{"type":"boolean","description":"Invoice numbers are used instead of card details for duplicate detection."}},"description":"Check duplicate transaction settings","xml":{"name":"check-duplicate-transaction-settings"}},"CheckDuplicateTransactionSettingsPayload":{"type":"object","properties":{"check-duplicate-transaction-settings":{"$ref":"#/components/schemas/check-duplicate-transaction-settings"},"payloadType":{"type":"string","description":"Type of payload returned in the response.","xml":{"name":"type","attribute":true}}},"description":"Check duplicate transaction settings","xml":{"name":"payload"}},"ErrorPayloadResponsePayload":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/ErrorPayload"},"payloadType":{"type":"string","description":"Type of payload returned in the response.","xml":{"name":"type","attribute":true}}},"description":"Payload","xml":{"name":"payload"}},"ErrorPayload":{"type":"object","properties":{"error-message":{"type":"string","description":"Describes the reason for the error."},"result-code":{"type":"string","description":"Numeric code that identifies the type of error returned by the request."},"time-stamp":{"type":"string","description":"Date and time when the error occurred, ISO 8601 format (UTC)."}},"xml":{"name":"error"}}}}}
```

## Update duplicate check transaction settings

> Update the configuration settings to detect and handle the duplicate transactions for the current terminal.

```json
{"openapi":"3.0.1","info":{"title":"Gateway Settings API","version":"2.0"},"paths":{"/rest/v2/settings/transaction/duplicates":{"put":{"tags":["Check Duplicate Transaction Settings"],"summary":"Update duplicate check transaction settings","description":"Update the configuration settings to detect and handle the duplicate transactions for the current terminal.","operationId":"updateSetting","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/check-duplicate-transaction-settings"}}},"required":true},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckDuplicateTransactionSettingsPayload"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CheckDuplicateTransactionSettingsPayload"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ErrorPayloadResponsePayload"}}}}}}}},"components":{"schemas":{"check-duplicate-transaction-settings":{"required":["check-merchant-level","enabled","if-duplicate-found-respond-with-error","include-invoice","time-range-in-minutes","use-invoice-instead-of-card"],"type":"object","properties":{"time-range-in-minutes":{"type":"integer","description":"Time window (in minutes) within which transactions are checked for duplication.","format":"int32"},"if-duplicate-found-respond-with-error":{"type":"boolean","description":"System responds with an error when a duplicate transaction is found."},"include-invoice":{"type":"boolean","description":"Invoice number is included in the duplicate check criteria."},"enabled":{"type":"boolean","description":"Duplicate transaction check is enabled for future."},"check-merchant-level":{"type":"boolean","description":"Duplicate transaction checks are performed across all terminals under the merchant."},"use-invoice-instead-of-card":{"type":"boolean","description":"Invoice numbers are used instead of card details for duplicate detection."}},"description":"Check duplicate transaction settings","xml":{"name":"check-duplicate-transaction-settings"}},"CheckDuplicateTransactionSettingsPayload":{"type":"object","properties":{"check-duplicate-transaction-settings":{"$ref":"#/components/schemas/check-duplicate-transaction-settings"},"payloadType":{"type":"string","description":"Type of payload returned in the response.","xml":{"name":"type","attribute":true}}},"description":"Check duplicate transaction settings","xml":{"name":"payload"}},"ErrorPayloadResponsePayload":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/ErrorPayload"},"payloadType":{"type":"string","description":"Type of payload returned in the response.","xml":{"name":"type","attribute":true}}},"description":"Payload","xml":{"name":"payload"}},"ErrorPayload":{"type":"object","properties":{"error-message":{"type":"string","description":"Describes the reason for the error."},"result-code":{"type":"string","description":"Numeric code that identifies the type of error returned by the request."},"time-stamp":{"type":"string","description":"Date and time when the error occurred, ISO 8601 format (UTC)."}},"xml":{"name":"error"}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.xplorpay.com/api-reference/api/payments/gateway-settings/check-duplicate-transaction-settings.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
