The Deposit Underwriting - Duplicate Exchange API endpoint may be called with check presentment values which trigger desired responses.
By manipulation of the request methods, responses can be controlled.
Responses are driven by the API request itself.
Inquiry
A request to the the Inquiry method informs whether the check has been used or not. When calling the Inquiry method with a new check presentment, the API will respond with a checkStatus value of Not Used and an assigned checkId.
Confirmation
The assigned checkID can subsequently be used to call the Confirmation method. When calling the Confirmation method with a check previously presented to the Inquiry method, a checkStatus value of Used will be returned.
Reversal
The assigned checkID can again be used to call the Reversal method. When calling the Reversal method for a check previously granted a status of Used, the reversal method will revert the checkStatus value to NotUsed.
Inquiry
{
"amountMatches": true,
"checkId": "7ab32c19-6a82-4f16-9292-39808caa15d6",
"checkStatus": "NotUsed",
"inquiryStats": {
....................
Confirmation
{
"amountMatches": true,
"checkId": "7ab32c19-6a82-4f16-9292-39808caa15d6",
"checkStatus": "Used",
"inquiryStats": {
....................
Reversal
{
"amountMatches": true,
"checkId": "7ab32c19-6a82-4f16-9292-39808caa15d6",
"checkStatus": "NotUsed",
"inquiryStats": {
....................