Skip to content

Clean base and recovery strip

Separate the undisputed base from a claim to recover a retail chargeback.

Asset type · retail-chargebacks · Version 0.1.0

This MINT definition describes the claim and the evidence to inspect. For individual receivables and recorded amounts, use asset records.

Evidence

  • Invoice and settlement
  • chargeback codes
  • supporting documents
  • recovery history

Read the definition

The catalog is available at GET /asset-definitions.json. Load it once, then select this exact ID with the MINT client. The response contains definitions and field descriptions. It contains no receivable balances.

Download the client beside your script:

sh
export MINT_DOCS_BASE="https://docs.mint.us"
curl --fail --show-error "$MINT_DOCS_BASE/cohorts-client.mjs" -o cohorts-client.mjs

Save as definition.mjs and run node definition.mjs:

js
import { loadAssetDefinitions, getAssetDefinition } from './cohorts-client.mjs';
const catalog = await loadAssetDefinitions(process.env.MINT_DOCS_BASE);
const definition = getAssetDefinition(catalog, 'retail-chargebacks');
console.log(JSON.stringify(definition, null, 2));

For Python, download cohorts_client.py beside your script and run it with the same MINT_DOCS_BASE:

python
import json
import os
from cohorts_client import load_asset_definitions, get_asset_definition

catalog = load_asset_definitions(os.environ['MINT_DOCS_BASE'])
definition = get_asset_definition(catalog, 'retail-chargebacks')
print(json.dumps(definition, indent=2, ensure_ascii=False))

See client setup and errors for requirements and failure handling.

Fields

These descriptors identify amounts and dates to inspect in the source. They are proposed field names, not a claim that each source file uses this schema.

FieldTypeUnitMeaning
grossObligationdecimal-stringsource-currencyGross obligation retained for inspection. This field does not establish an amount due.
supportedPrincipaldecimal-stringsource-currencyPrincipal supported by the inspected evidence. Record the source and assumptions; no calculation is supplied.
contingentAmountdecimal-stringsource-currencyAmount still dependent on a stated condition. Keep it separate from supported principal.
excludedAmountdecimal-stringsource-currencyAmount recorded as excluded in the analysis. The catalog supplies no exclusion rule.
chargebackAmountdecimal-stringsource-currencyChargeback amount identified by the inspected invoice, settlement, and chargeback evidence.
recoveryAmountdecimal-stringsource-currencyAmount recorded in the recovery history. Do not treat an unresolved recovery claim as recovered cash.
settlementDatedateISO-8601-dateSettlement date, only when recorded in the inspected settlement evidence.

Preserve decimal amounts as strings with their source currency. Use ISO 8601 dates when recorded in the source. Keep missing evidence unknown. Each field includes sourceBasis with a source ID, hash, and line range.

Response

The client returns this complete record from mint-asset-definitions. Its ID links to the retail-chargebacks cohort definition. The shared ID does not assign a receivable to that cohort.

Complete JSON
json
{
  "id": "retail-chargebacks",
  "version": "0.1.0",
  "cohortId": "retail-chargebacks",
  "name": "Clean base and recovery strip",
  "purpose": "Separate the undisputed base from a claim to recover a retail chargeback.",
  "evidenceToInspect": [
    "Invoice and settlement",
    "chargeback codes",
    "supporting documents",
    "recovery history"
  ],
  "fields": [
    {
      "key": "grossObligation",
      "scope": "shared",
      "type": "decimal-string",
      "unit": "source-currency",
      "description": "Gross obligation retained for inspection. This field does not establish an amount due.",
      "sourceBasis": [
        {
          "sourceId": "docs:retail-chargebacks",
          "sha256": "42a4fd51f45d5bd22525060623e9fbf7471d930fc18e86aa2bbdb6cd7740ccfe",
          "startLine": 26,
          "endLine": 26
        }
      ]
    },
    {
      "key": "supportedPrincipal",
      "scope": "shared",
      "type": "decimal-string",
      "unit": "source-currency",
      "description": "Principal supported by the inspected evidence. Record the source and assumptions; no calculation is supplied.",
      "sourceBasis": [
        {
          "sourceId": "docs:retail-chargebacks",
          "sha256": "42a4fd51f45d5bd22525060623e9fbf7471d930fc18e86aa2bbdb6cd7740ccfe",
          "startLine": 26,
          "endLine": 26
        }
      ]
    },
    {
      "key": "contingentAmount",
      "scope": "shared",
      "type": "decimal-string",
      "unit": "source-currency",
      "description": "Amount still dependent on a stated condition. Keep it separate from supported principal.",
      "sourceBasis": [
        {
          "sourceId": "docs:retail-chargebacks",
          "sha256": "42a4fd51f45d5bd22525060623e9fbf7471d930fc18e86aa2bbdb6cd7740ccfe",
          "startLine": 26,
          "endLine": 26
        }
      ]
    },
    {
      "key": "excludedAmount",
      "scope": "shared",
      "type": "decimal-string",
      "unit": "source-currency",
      "description": "Amount recorded as excluded in the analysis. The catalog supplies no exclusion rule.",
      "sourceBasis": [
        {
          "sourceId": "docs:retail-chargebacks",
          "sha256": "42a4fd51f45d5bd22525060623e9fbf7471d930fc18e86aa2bbdb6cd7740ccfe",
          "startLine": 26,
          "endLine": 26
        }
      ]
    },
    {
      "key": "chargebackAmount",
      "scope": "asset-type",
      "type": "decimal-string",
      "unit": "source-currency",
      "description": "Chargeback amount identified by the inspected invoice, settlement, and chargeback evidence.",
      "sourceBasis": [
        {
          "sourceId": "docs:retail-chargebacks",
          "sha256": "42a4fd51f45d5bd22525060623e9fbf7471d930fc18e86aa2bbdb6cd7740ccfe",
          "startLine": 10,
          "endLine": 26
        }
      ]
    },
    {
      "key": "recoveryAmount",
      "scope": "asset-type",
      "type": "decimal-string",
      "unit": "source-currency",
      "description": "Amount recorded in the recovery history. Do not treat an unresolved recovery claim as recovered cash.",
      "sourceBasis": [
        {
          "sourceId": "docs:retail-chargebacks",
          "sha256": "42a4fd51f45d5bd22525060623e9fbf7471d930fc18e86aa2bbdb6cd7740ccfe",
          "startLine": 10,
          "endLine": 26
        }
      ]
    },
    {
      "key": "settlementDate",
      "scope": "asset-type",
      "type": "date",
      "unit": "ISO-8601-date",
      "description": "Settlement date, only when recorded in the inspected settlement evidence.",
      "sourceBasis": [
        {
          "sourceId": "docs:retail-chargebacks",
          "sha256": "42a4fd51f45d5bd22525060623e9fbf7471d930fc18e86aa2bbdb6cd7740ccfe",
          "startLine": 10,
          "endLine": 26
        }
      ]
    }
  ],
  "sourceRefs": [
    {
      "sourceId": "docs:retail-chargebacks",
      "sha256": "42a4fd51f45d5bd22525060623e9fbf7471d930fc18e86aa2bbdb6cd7740ccfe",
      "startLine": 1,
      "endLine": 31
    },
    {
      "sourceId": "shadow-dashboard",
      "sha256": "a9143a735d64a35a18ef49f0d8f24a091815927646d0b2d2780778e360cb1c26",
      "startLine": 268,
      "endLine": 281
    }
  ],
  "entryRule": null,
  "exclusionRule": null,
  "amountRule": null,
  "releaseRule": null
}

Buyer and supplier use

RoleAction
SupplierPrepare the listed evidence. Keep gross obligation, supported principal, contingent amount, and excluded amount separate.
BuyerInspect the supported claim against the chosen Buy Box. Retain assumptions, conditions, and missing evidence.

The four rule fields remain null. The definition supplies no automatic membership, amount calculation, price, buyer approval, or purchase instruction.

Sources

Source references
  • docs:retail-chargebacks, lines 1–31, SHA-256 42a4fd51f45d5bd22525060623e9fbf7471d930fc18e86aa2bbdb6cd7740ccfe.
  • shadow-dashboard, lines 268–281, SHA-256 a9143a735d64a35a18ef49f0d8f24a091815927646d0b2d2780778e360cb1c26.

Return to Asset types or inspect asset records.

MINT · Product documentation