{
 "openapi": "3.1.0",
 "info": {
  "title": "Collections Worklist (CRM)",
  "version": "20261030b",
  "description": "Every account with money past due, worst first, with the next step: a notice, a final notice, a disconnect order — or, for life support, a call. Run collections to send the notices and charge the late fees."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {}
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/crm/util-collections": {
   "get": {
    "summary": "Read collections worklist",
    "operationId": "action_util_collections_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/util-collections/run": {
   "post": {
    "summary": "Run",
    "operationId": "action_util_collections_0_5",
    "description": "Body keys: as_of",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/util-collections/accounts/{id}/disconnect": {
   "post": {
    "summary": "Accounts disconnect",
    "operationId": "action_util_collections_0_7",
    "description": "Body keys: scheduled_date, note",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/util-collections/accounts/{id}/write-off": {
   "post": {
    "summary": "Accounts write off",
    "operationId": "action_util_collections_0_7",
    "description": "Body keys: reason",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/util-collections/accounts/{id}/hold": {
   "post": {
    "summary": "Accounts hold",
    "operationId": "action_util_collections_0_7",
    "description": "Body keys: until, reason",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}