# Check Duplicate Transaction Settings

## Get Check Duplicate 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 Check Duplicate 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 Check Duplicate 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 Check Duplicate 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 Check Duplicate 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 Check Duplicate 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
