Postman collection
Customers Write

pixiAddressesDisplayDuplicatesMarkUsed

Marks a stored pair of potential duplicate customers as used by setting `UsedFlag` = 1 in the duplicates list.

Flags an entry of the address duplicates list (Addresses_Duplicates) as used.

  1. The call checks whether at least one row exists with CustRef1 = @CustRef1 and CustRef2 = @CustRef2.
  2. If no such row exists, a status row with ReturnCode = ERROR is returned and nothing is changed.
  3. Otherwise UsedFlag is set to 1 on all rows matching this pair, and a status row with ReturnCode = OK is returned.

The pair is matched in the exact order given: CustRef1/CustRef2 are not swapped, so a pair stored as (B, A) is not found when calling with (A, B).

Notes

  • The existence check reads with NOLOCK; check and update are not wrapped in a transaction.
  • The error text "At least one customers not existing" is misleading: it is returned when the duplicate pair is not in Addresses_Duplicates, not after checking the customer table.
  • Calling the procedure again for an already flagged pair returns OK again (idempotent).
  • The status text is always in the column ErrorMessage, also on success.

Parameters

Parameter Type Default Description
CustRef1
Required
int –

Reference of the first customer of the duplicate pair, compared with Addresses_Duplicates.CustRef1.

Example: 10452

CustRef2
Required
int –

Reference of the second customer of the duplicate pair, compared with Addresses_Duplicates.CustRef2.

Example: 10987

Response

Result set 1 · Always; one status row (ERROR if the pair does not exist, OK after the update).

Status of the operation.

Column Type Description
ReturnCode varchar(5)
string

OK on success, ERROR if the pair was not found.

ErrorMessage varchar(35)
string

Status text: Record marked as used or the error message.

Error messages

Status Message Cause
ERROR At least one customers not existing No row in `Addresses_Duplicates` matches `CustRef1` = `@CustRef1` and `CustRef2` = `@CustRef2`. Pass a pair exactly as stored in the duplicates list (order matters).

Examples

POST https://apigateway.descartes.com/tms/pixi/
Content-Type: text/xml; charset=utf-8
Authorization: Basic BASE64(USERNAME:PASSWORD)

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://apigateway.descartes.com/tms/pixi/">
  <SOAP-ENV:Body>
    <ns1:pixiAddressesDisplayDuplicatesMarkUsed>
      <CustRef1>10452</CustRef1>
      <CustRef2>10987</CustRef2>
    </ns1:pixiAddressesDisplayDuplicatesMarkUsed>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Tables used

Addresses_Duplicates · Write
SQL object:
dbo.pipiAddressesDisplayDuplicatesMarkUsed
Procedure last changed on 2026-10-05
Documentation written by claude-opus-5-5 on 2026-10-30