Capabilities

documents.resolve-duplicates

Changed on

Analyze a selected set of documents as possible duplicates. Use dryRun=true (default) with masterId to preview fields copied onto that document, including categories, businesses and payment evidence. Execute with the same masterId, documentIds and previewToken to reject stale previews. Preview monetary values use minor units.

post/capabilities/documents.resolve-duplicates

Request

  • Base URL: https://developer.api.receiptor.ai/v1
  • URL: https://developer.api.receiptor.ai/v1/capabilities/documents.resolve-duplicates
  • Auth: one of:
    • API key in header x-receiptor-api-key
    • HTTP bearer

Request body

documentIdsstring[] required

Document IDs to analyze as a possible duplicate set

masterIdstring

The document ID to keep. Required only when dryRun=false and must be one of documentIds.

previewTokenstring

Token from a dry-run preview for this exact master and document set. Required when dryRun=false to reject changed documents.

dryRunboolean

If true, preview duplicate resolution. If false, keep the chosen document and archive the duplicates.

Response

Successful response

successboolean
codeinteger

Example response

{
  "success": true,
  "code": 200
}

Changes