{
 "openapi": "3.1.0",
 "info": {
  "title": "Customer Portal Users (CRM)",
  "version": "20261030b",
  "description": "People at your customers who sign in to the customer portal to see their invoices, orders, quotations, cases and returns: invited by email, held to their own account, with a second step where you require one. The supplier portal's people are in Supply Chain."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {}
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/crm/customer-portal-users": {
   "get": {
    "summary": "Read customer portal users",
    "operationId": "action_customer_portal_users_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post customer portal users",
    "operationId": "action_customer_portal_users_1_4",
    "description": "Body keys: account_id, accountId, party_id, contact_id, email, full_name, fullName, phone, job_title, notes, mfa_required, mfaRequired",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/customer-portal-users/{id}": {
   "get": {
    "summary": "Read customer portal users",
    "operationId": "action_customer_portal_users_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/customer-portal-users/{id}/reinvite": {
   "post": {
    "summary": "Reinvite",
    "operationId": "action_customer_portal_users_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/customer-portal-users/{id}/disable": {
   "post": {
    "summary": "Disable",
    "operationId": "action_customer_portal_users_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/customer-portal-users/{id}/enable": {
   "post": {
    "summary": "Enable",
    "operationId": "action_customer_portal_users_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/customer-portal-users/{id}/end-sessions": {
   "post": {
    "summary": "End sessions",
    "operationId": "action_customer_portal_users_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/customer-portal-users/{id}/reset-mfa": {
   "post": {
    "summary": "Reset mfa",
    "operationId": "action_customer_portal_users_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/customer-portal-users/{id}/activity": {
   "get": {
    "summary": "Activity",
    "operationId": "action_customer_portal_users_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}