{"templateId":"markdown","sharedDataIds":{},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Reefpay Docs","description":"Reefpay is the groundbreaking payment gateway that lets you integrate with the future of payments.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"about-users-and-roles","__idx":0},"children":["About users and roles"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"user-accounts","__idx":1},"children":["User accounts"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A user represents an individual who interacts with ","Reefpay",". Users are always associated with a single client (merchant or reseller)."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"user-properties","__idx":2},"children":["User properties"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Unique identifier (for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["USER-3MtwBwLkdIwHu7ix28a3tqPa"]},")"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["first_name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["User's first name"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["last_name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["User's last name"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Email address (used for login)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["phone"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Phone number"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["time_zone"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["User's time zone (for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["America/New_York"]},")"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["is_active"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Whether the account is active"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["is_locked"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Whether the account is locked (for example, after failed login attempts)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["is_mfa_active"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Whether multi-factor authentication is enabled"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"userclient-relationship","__idx":3},"children":["User–client relationship"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Every user belongs to exactly one client. The client's type (merchant or reseller) determines the scope of data the user can access."]},{"$$mdtype":"Tag","name":"Diagram","attributes":{"data-language":"mermaid","diagramType":"mermaid","diagramSource":"---\nconfig:\n  theme: 'neutral'\n---\nflowchart TD\n    subgraph Reseller A\n        RA_U1[User: admin@resellera.com]\n        RA_U2[User: ops@resellera.com]\n    end\n    subgraph Merchant 1\n        M1_U1[User: owner@merchant1.com]\n        M1_U2[User: staff@merchant1.com]\n    end\n    subgraph Merchant 2\n        M2_U1[User: owner@merchant2.com]\n    end\n    Reseller_A[Reseller A] --> Merchant_1[Merchant 1]\n    Reseller_A --> Merchant_2[Merchant 2]\n","diagramHtml":"<svg id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 1407.4296875px;\" viewBox=\"0 0 1407.4296875 396\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\"><style>#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6{font-family:\"Redocly Mermaid Sans\",\"Redocly Mermaid CJK\",sans-serif;font-size:16px;fill:#000000;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .error-icon{fill:#552222;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .error-text{fill:#552222;stroke:#552222;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .edge-thickness-normal{stroke-width:1px;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .edge-thickness-thick{stroke-width:3.5px;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .edge-pattern-solid{stroke-dasharray:0;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .edge-pattern-dashed{stroke-dasharray:3;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .edge-pattern-dotted{stroke-dasharray:2;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .marker{fill:#666;stroke:#666;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .marker.cross{stroke:#666;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 svg{font-family:\"Redocly Mermaid Sans\",\"Redocly Mermaid CJK\",sans-serif;font-size:16px;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 p{margin:0;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .label{font-family:\"Redocly Mermaid Sans\",\"Redocly Mermaid CJK\",sans-serif;color:#000000;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .cluster-label text{fill:#333;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .cluster-label span{color:#333;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .cluster-label span p{background-color:transparent;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .label text,#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 span{fill:#000000;color:#000000;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .node rect,#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .node circle,#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .node ellipse,#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .node polygon,#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .node path{fill:#eee;stroke:#999;stroke-width:1px;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .rough-node .label text,#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .node .label text,#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .image-shape .label,#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .icon-shape .label{text-anchor:middle;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .rough-node .label,#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .node .label,#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .image-shape .label,#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .icon-shape .label{text-align:center;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .node.clickable{cursor:pointer;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .root .anchor path{fill:#666!important;stroke-width:0;stroke:#666;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .arrowheadPath{fill:#333333;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .edgePath .path{stroke:#666;stroke-width:1px;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .flowchart-link{stroke:#666;fill:none;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .edgeLabel{background-color:white;text-align:center;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .edgeLabel p{background-color:white;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .edgeLabel rect{opacity:0.5;background-color:white;fill:white;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .labelBkg{background-color:rgba(255, 255, 255, 0.5);}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .cluster rect{fill:hsl(0, 0%, 98.9215686275%);stroke:#707070;stroke-width:1px;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .cluster text{fill:#333;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .cluster span{color:#333;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"Redocly Mermaid Sans\",\"Redocly Mermaid CJK\",sans-serif;font-size:12px;background:hsl(-160, 0%, 93.3333333333%);border:1px solid #707070;border-radius:2px;pointer-events:none;z-index:100;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#000000;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 rect.text{fill:none;stroke-width:0;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .icon-shape,#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .image-shape{background-color:white;text-align:center;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .icon-shape p,#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .image-shape p{background-color:white;padding:2px;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .icon-shape .label rect,#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .image-shape .label rect{opacity:0.5;background-color:white;fill:white;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 .node .neo-node{stroke:#999;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 [data-look=\"neo\"].node rect,#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 [data-look=\"neo\"].cluster rect,#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 [data-look=\"neo\"].node polygon{stroke:url(#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 [data-look=\"neo\"].swimlane.cluster rect{filter:none;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 [data-look=\"neo\"].node path{stroke:url(#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-gradient);stroke-width:1px;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 [data-look=\"neo\"].node .outer-path{filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 [data-look=\"neo\"].node .neo-line path{stroke:#999;filter:none;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 [data-look=\"neo\"].node circle{stroke:url(#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 [data-look=\"neo\"].icon-shape .icon{fill:url(#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 [data-look=\"neo\"].icon-shape .icon-neo path{stroke:url(#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 :root{--mermaid-font-family:\"Redocly Mermaid Sans\",\"Redocly Mermaid CJK\",sans-serif;}#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6 :root{--mermaid-font-family:\"Redocly Mermaid Sans\",\"Redocly Mermaid CJK\",sans-serif;}</style><g><marker id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6_flowchart-v2-pointEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"11.5\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"10.5\" markerHeight=\"14\" orient=\"auto\"><path d=\"M 0 0 L 11.5 7 L 0 14 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6_flowchart-v2-pointStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"1\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11.5\" markerHeight=\"14\" orient=\"auto\"><polygon points=\"0,7 11.5,14 11.5,0\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></polygon></marker><marker id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6_flowchart-v2-circleEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refY=\"5\" refX=\"12.25\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6_flowchart-v2-circleStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-2\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6_flowchart-v2-crossEnd-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"17.7\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5;\"></path></marker><marker id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6_flowchart-v2-crossStart-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"-3.5\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5; stroke-dasharray: 1, 0;\"></path></marker><g class=\"root\"><g class=\"clusters\"></g><g class=\"edgePaths\"><path d=\"M1213.55,173L1200.009,195.667C1186.468,218.333,1159.386,263.667,1145.846,289.833C1132.305,316,1132.305,323,1132.305,326.5L1132.305,330\" id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-L_Reseller_A_Merchant_1_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_Reseller_A_Merchant_1_0\" data-points=\"W3sieCI6MTIxMy41NTAwODYyNzMwMDYyLCJ5IjoxNzN9LHsieCI6MTEzMi4zMDQ2ODc1LCJ5IjozMDl9LHsieCI6MTEzMi4zMDQ2ODc1LCJ5IjozMzR9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6_flowchart-v2-pointEnd)\"></path><path d=\"M1245.809,173L1259.35,195.667C1272.891,218.333,1299.973,263.667,1313.514,289.833C1327.055,316,1327.055,323,1327.055,326.5L1327.055,330\" id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-L_Reseller_A_Merchant_2_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_Reseller_A_Merchant_2_0\" data-points=\"W3sieCI6MTI0NS44MDkyODg3MjY5OTM4LCJ5IjoxNzN9LHsieCI6MTMyNy4wNTQ2ODc1LCJ5IjozMDl9LHsieCI6MTMyNy4wNTQ2ODc1LCJ5IjozMzR9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_Reseller_A_Merchant_1_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_Reseller_A_Merchant_2_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"root\" transform=\"translate(0, 64)\"><g class=\"clusters\"><g class=\"cluster\" id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-subGraph2\" data-look=\"classic\"><rect style=\"\" x=\"8\" y=\"8\" width=\"335\" height=\"148\"></rect><g class=\"cluster-label\" transform=\"translate(133.125, 8)\"><foreignObject width=\"84.75\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>Merchant 2</p></span></div></foreignObject></g></g></g><g class=\"edgePaths\"></g><g class=\"edgeLabels\"></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-flowchart-M2_U1-4\" data-look=\"classic\" transform=\"translate(175.5, 82)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -24)\"><rect></rect><foreignObject width=\"200\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>User: owner@merchant2.com</p></span></div></foreignObject></g></g></g></g><g class=\"root\" transform=\"translate(385, 0)\"><g class=\"clusters\"><g class=\"cluster\" id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-subGraph1\" data-look=\"classic\"><rect style=\"\" x=\"8\" y=\"8\" width=\"335\" height=\"276\"></rect><g class=\"cluster-label\" transform=\"translate(133.125, 8)\"><foreignObject width=\"84.75\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>Merchant 1</p></span></div></foreignObject></g></g></g><g class=\"edgePaths\"></g><g class=\"edgeLabels\"></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-flowchart-M1_U1-2\" data-look=\"classic\" transform=\"translate(175.5, 82)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -24)\"><rect></rect><foreignObject width=\"200\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>User: owner@merchant1.com</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-flowchart-M1_U2-3\" data-look=\"classic\" transform=\"translate(175.5, 210)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -24)\"><rect></rect><foreignObject width=\"200\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>User: staff@merchant1.com</p></span></div></foreignObject></g></g></g></g><g class=\"root\" transform=\"translate(770, 12)\"><g class=\"clusters\"><g class=\"cluster\" id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-subGraph0\" data-look=\"classic\"><rect style=\"\" x=\"8\" y=\"8\" width=\"335\" height=\"252\"></rect><g class=\"cluster-label\" transform=\"translate(138.8203125, 8)\"><foreignObject width=\"73.359375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>Reseller A</p></span></div></foreignObject></g></g></g><g class=\"edgePaths\"></g><g class=\"edgeLabels\"></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-flowchart-RA_U1-0\" data-look=\"classic\" transform=\"translate(175.5, 82)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -24)\"><rect></rect><foreignObject width=\"200\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>User: admin@resellera.com</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-flowchart-RA_U2-1\" data-look=\"classic\" transform=\"translate(175.5, 198)\"><rect class=\"basic label-container\" style=\"\" x=\"-122.546875\" y=\"-27\" width=\"245.09375\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-92.546875, -12)\"><rect></rect><foreignObject width=\"185.09375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>User: ops@resellera.com</p></span></div></foreignObject></g></g></g></g><g class=\"node default\" id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-flowchart-Reseller_A-5\" data-look=\"classic\" transform=\"translate(1229.6796875, 146)\"><rect class=\"basic label-container\" style=\"\" x=\"-66.6796875\" y=\"-27\" width=\"133.359375\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-36.6796875, -12)\"><rect></rect><foreignObject width=\"73.359375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Reseller A</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-flowchart-Merchant_1-6\" data-look=\"classic\" transform=\"translate(1132.3046875, 361)\"><rect class=\"basic label-container\" style=\"\" x=\"-72.375\" y=\"-27\" width=\"144.75\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-42.375, -12)\"><rect></rect><foreignObject width=\"84.75\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Merchant 1</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-flowchart-Merchant_2-8\" data-look=\"classic\" transform=\"translate(1327.0546875, 361)\"><rect class=\"basic label-container\" style=\"\" x=\"-72.375\" y=\"-27\" width=\"144.75\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-42.375, -12)\"><rect></rect><foreignObject width=\"84.75\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Merchant 2</p></span></div></foreignObject></g></g></g></g></g><defs><filter id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-drop-shadow\" height=\"130%\" width=\"130%\"><feDropShadow dx=\"4\" dy=\"4\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#000000\"></feDropShadow></filter></defs><defs><filter id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-drop-shadow-small\" height=\"150%\" width=\"150%\"><feDropShadow dx=\"2\" dy=\"2\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#000000\"></feDropShadow></filter></defs><linearGradient id=\"diagram-5310b04a0df3a6ea7852f5e1d53f29e50b1be2ee2ed45aabf18b084849b8ced6-gradient\" gradientUnits=\"objectBoundingBox\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\"><stop offset=\"0%\" stop-color=\"hsl(0, 0%, 83.3333333333%)\" stop-opacity=\"1\"></stop><stop offset=\"100%\" stop-color=\"hsl(0, 0%, 88.9215686275%)\" stop-opacity=\"1\"></stop></linearGradient></svg>","diagramHtmlDark":"<svg id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 1407.4296875px;\" viewBox=\"0 0 1407.4296875 396\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\"><style>#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66{font-family:\"Redocly Mermaid Sans\",\"Redocly Mermaid CJK\",sans-serif;font-size:16px;fill:#000000;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .error-icon{fill:#552222;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .error-text{fill:#552222;stroke:#552222;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .edge-thickness-normal{stroke-width:1px;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .edge-thickness-thick{stroke-width:3.5px;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .edge-pattern-solid{stroke-dasharray:0;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .edge-pattern-dashed{stroke-dasharray:3;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .edge-pattern-dotted{stroke-dasharray:2;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .marker{fill:#666;stroke:#666;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .marker.cross{stroke:#666;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 svg{font-family:\"Redocly Mermaid Sans\",\"Redocly Mermaid CJK\",sans-serif;font-size:16px;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 p{margin:0;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .label{font-family:\"Redocly Mermaid Sans\",\"Redocly Mermaid CJK\",sans-serif;color:#000000;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .cluster-label text{fill:#333;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .cluster-label span{color:#333;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .cluster-label span p{background-color:transparent;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .label text,#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 span{fill:#000000;color:#000000;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .node rect,#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .node circle,#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .node ellipse,#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .node polygon,#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .node path{fill:#eee;stroke:#999;stroke-width:1px;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .rough-node .label text,#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .node .label text,#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .image-shape .label,#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .icon-shape .label{text-anchor:middle;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .rough-node .label,#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .node .label,#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .image-shape .label,#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .icon-shape .label{text-align:center;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .node.clickable{cursor:pointer;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .root .anchor path{fill:#666!important;stroke-width:0;stroke:#666;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .arrowheadPath{fill:#333333;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .edgePath .path{stroke:#666;stroke-width:1px;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .flowchart-link{stroke:#666;fill:none;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .edgeLabel{background-color:white;text-align:center;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .edgeLabel p{background-color:white;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .edgeLabel rect{opacity:0.5;background-color:white;fill:white;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .labelBkg{background-color:rgba(255, 255, 255, 0.5);}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .cluster rect{fill:hsl(0, 0%, 98.9215686275%);stroke:#707070;stroke-width:1px;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .cluster text{fill:#333;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .cluster span{color:#333;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"Redocly Mermaid Sans\",\"Redocly Mermaid CJK\",sans-serif;font-size:12px;background:hsl(-160, 0%, 93.3333333333%);border:1px solid #707070;border-radius:2px;pointer-events:none;z-index:100;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#000000;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 rect.text{fill:none;stroke-width:0;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .icon-shape,#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .image-shape{background-color:white;text-align:center;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .icon-shape p,#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .image-shape p{background-color:white;padding:2px;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .icon-shape .label rect,#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .image-shape .label rect{opacity:0.5;background-color:white;fill:white;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 .node .neo-node{stroke:#999;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 [data-look=\"neo\"].node rect,#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 [data-look=\"neo\"].cluster rect,#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 [data-look=\"neo\"].node polygon{stroke:url(#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 [data-look=\"neo\"].swimlane.cluster rect{filter:none;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 [data-look=\"neo\"].node path{stroke:url(#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-gradient);stroke-width:1px;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 [data-look=\"neo\"].node .outer-path{filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 [data-look=\"neo\"].node .neo-line path{stroke:#999;filter:none;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 [data-look=\"neo\"].node circle{stroke:url(#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 [data-look=\"neo\"].icon-shape .icon{fill:url(#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 [data-look=\"neo\"].icon-shape .icon-neo path{stroke:url(#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 :root{--mermaid-font-family:\"Redocly Mermaid Sans\",\"Redocly Mermaid CJK\",sans-serif;}#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66 :root{--mermaid-font-family:\"Redocly Mermaid Sans\",\"Redocly Mermaid CJK\",sans-serif;}</style><g><marker id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66_flowchart-v2-pointEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"11.5\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"10.5\" markerHeight=\"14\" orient=\"auto\"><path d=\"M 0 0 L 11.5 7 L 0 14 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66_flowchart-v2-pointStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"1\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11.5\" markerHeight=\"14\" orient=\"auto\"><polygon points=\"0,7 11.5,14 11.5,0\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></polygon></marker><marker id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66_flowchart-v2-circleEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refY=\"5\" refX=\"12.25\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66_flowchart-v2-circleStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-2\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66_flowchart-v2-crossEnd-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"17.7\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5;\"></path></marker><marker id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66_flowchart-v2-crossStart-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"-3.5\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5; stroke-dasharray: 1, 0;\"></path></marker><g class=\"root\"><g class=\"clusters\"></g><g class=\"edgePaths\"><path d=\"M1213.55,173L1200.009,195.667C1186.468,218.333,1159.386,263.667,1145.846,289.833C1132.305,316,1132.305,323,1132.305,326.5L1132.305,330\" id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-L_Reseller_A_Merchant_1_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_Reseller_A_Merchant_1_0\" data-points=\"W3sieCI6MTIxMy41NTAwODYyNzMwMDYyLCJ5IjoxNzN9LHsieCI6MTEzMi4zMDQ2ODc1LCJ5IjozMDl9LHsieCI6MTEzMi4zMDQ2ODc1LCJ5IjozMzR9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66_flowchart-v2-pointEnd)\"></path><path d=\"M1245.809,173L1259.35,195.667C1272.891,218.333,1299.973,263.667,1313.514,289.833C1327.055,316,1327.055,323,1327.055,326.5L1327.055,330\" id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-L_Reseller_A_Merchant_2_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_Reseller_A_Merchant_2_0\" data-points=\"W3sieCI6MTI0NS44MDkyODg3MjY5OTM4LCJ5IjoxNzN9LHsieCI6MTMyNy4wNTQ2ODc1LCJ5IjozMDl9LHsieCI6MTMyNy4wNTQ2ODc1LCJ5IjozMzR9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_Reseller_A_Merchant_1_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_Reseller_A_Merchant_2_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"root\" transform=\"translate(0, 64)\"><g class=\"clusters\"><g class=\"cluster\" id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-subGraph2\" data-look=\"classic\"><rect style=\"\" x=\"8\" y=\"8\" width=\"335\" height=\"148\"></rect><g class=\"cluster-label\" transform=\"translate(133.125, 8)\"><foreignObject width=\"84.75\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>Merchant 2</p></span></div></foreignObject></g></g></g><g class=\"edgePaths\"></g><g class=\"edgeLabels\"></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-flowchart-M2_U1-4\" data-look=\"classic\" transform=\"translate(175.5, 82)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -24)\"><rect></rect><foreignObject width=\"200\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>User: owner@merchant2.com</p></span></div></foreignObject></g></g></g></g><g class=\"root\" transform=\"translate(385, 0)\"><g class=\"clusters\"><g class=\"cluster\" id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-subGraph1\" data-look=\"classic\"><rect style=\"\" x=\"8\" y=\"8\" width=\"335\" height=\"276\"></rect><g class=\"cluster-label\" transform=\"translate(133.125, 8)\"><foreignObject width=\"84.75\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>Merchant 1</p></span></div></foreignObject></g></g></g><g class=\"edgePaths\"></g><g class=\"edgeLabels\"></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-flowchart-M1_U1-2\" data-look=\"classic\" transform=\"translate(175.5, 82)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -24)\"><rect></rect><foreignObject width=\"200\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>User: owner@merchant1.com</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-flowchart-M1_U2-3\" data-look=\"classic\" transform=\"translate(175.5, 210)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -24)\"><rect></rect><foreignObject width=\"200\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>User: staff@merchant1.com</p></span></div></foreignObject></g></g></g></g><g class=\"root\" transform=\"translate(770, 12)\"><g class=\"clusters\"><g class=\"cluster\" id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-subGraph0\" data-look=\"classic\"><rect style=\"\" x=\"8\" y=\"8\" width=\"335\" height=\"252\"></rect><g class=\"cluster-label\" transform=\"translate(138.8203125, 8)\"><foreignObject width=\"73.359375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>Reseller A</p></span></div></foreignObject></g></g></g><g class=\"edgePaths\"></g><g class=\"edgeLabels\"></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-flowchart-RA_U1-0\" data-look=\"classic\" transform=\"translate(175.5, 82)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-39\" width=\"260\" height=\"78\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -24)\"><rect></rect><foreignObject width=\"200\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>User: admin@resellera.com</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-flowchart-RA_U2-1\" data-look=\"classic\" transform=\"translate(175.5, 198)\"><rect class=\"basic label-container\" style=\"\" x=\"-122.546875\" y=\"-27\" width=\"245.09375\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-92.546875, -12)\"><rect></rect><foreignObject width=\"185.09375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>User: ops@resellera.com</p></span></div></foreignObject></g></g></g></g><g class=\"node default\" id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-flowchart-Reseller_A-5\" data-look=\"classic\" transform=\"translate(1229.6796875, 146)\"><rect class=\"basic label-container\" style=\"\" x=\"-66.6796875\" y=\"-27\" width=\"133.359375\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-36.6796875, -12)\"><rect></rect><foreignObject width=\"73.359375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Reseller A</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-flowchart-Merchant_1-6\" data-look=\"classic\" transform=\"translate(1132.3046875, 361)\"><rect class=\"basic label-container\" style=\"\" x=\"-72.375\" y=\"-27\" width=\"144.75\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-42.375, -12)\"><rect></rect><foreignObject width=\"84.75\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Merchant 1</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-flowchart-Merchant_2-8\" data-look=\"classic\" transform=\"translate(1327.0546875, 361)\"><rect class=\"basic label-container\" style=\"\" x=\"-72.375\" y=\"-27\" width=\"144.75\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-42.375, -12)\"><rect></rect><foreignObject width=\"84.75\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>Merchant 2</p></span></div></foreignObject></g></g></g></g></g><defs><filter id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-drop-shadow\" height=\"130%\" width=\"130%\"><feDropShadow dx=\"4\" dy=\"4\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#000000\"></feDropShadow></filter></defs><defs><filter id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-drop-shadow-small\" height=\"150%\" width=\"150%\"><feDropShadow dx=\"2\" dy=\"2\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#000000\"></feDropShadow></filter></defs><linearGradient id=\"diagram-97eabf194918b46a0c3da49efc37ffd83216adf8cf8b5a0cc6c6ff3c286d0c66-gradient\" gradientUnits=\"objectBoundingBox\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\"><stop offset=\"0%\" stop-color=\"hsl(0, 0%, 83.3333333333%)\" stop-opacity=\"1\"></stop><stop offset=\"100%\" stop-color=\"hsl(0, 0%, 88.9215686275%)\" stop-opacity=\"1\"></stop></linearGradient></svg>"},"children":["---\nconfig:\n  theme: 'neutral'\n---\nflowchart TD\n    subgraph Reseller A\n        RA_U1[User: admin@resellera.com]\n        RA_U2[User: ops@resellera.com]\n    end\n    subgraph Merchant 1\n        M1_U1[User: owner@merchant1.com]\n        M1_U2[User: staff@merchant1.com]\n    end\n    subgraph Merchant 2\n        M2_U1[User: owner@merchant2.com]\n    end\n    Reseller_A[Reseller A] --> Merchant_1[Merchant 1]\n    Reseller_A --> Merchant_2[Merchant 2]\n"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"User belongs to"},"children":["User belongs to"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Can access data for"},"children":["Can access data for"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Merchant"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["That merchant only"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Reseller"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["The reseller and all clients in its subtree (child merchants, sub-resellers, their merchants)"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"role-based-access-control","__idx":4},"children":["Role-based access control"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Users are assigned a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["role_id"]}," that determines their permissions. Roles control access to API endpoints, web portal features, and data visibility."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"common-role-types","__idx":5},"children":["Common role types"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Role"},"children":["Role"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Scope"},"children":["Scope"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Typical permissions"},"children":["Typical permissions"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Admin"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Full access"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Create/update clients, manage users, manage integrations, view all transactions, close batches"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manager"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Operational access"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["View transactions and reports, manage payment tokens, close batches, manage users within their client"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Operator"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Day-to-day access"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Process transactions, view transactions, manage payment tokens"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Read-only"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Reporting access"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["View transactions and reports only — no write operations"]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Role assignment"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Roles are assigned when creating a user and can be updated later. The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["role_id"]}," field in the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ClientInfo"]}," schema links a user to their role within a specific client context."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"permission-matrix","__idx":6},"children":["Permission matrix"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Action"},"children":["Action"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Admin"},"children":["Admin"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Manager"},"children":["Manager"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Operator"},"children":["Operator"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Read-only"},"children":["Read-only"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Create/update clients"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Manage integrations"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Create/update users"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes (own client)"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Process transactions"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Capture / cancel / refund"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["View transactions"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["View reports"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Close batches"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Manage payment tokens"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Manage API keys"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"managing-users","__idx":7},"children":["Managing users"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"create-a-user","__idx":8},"children":["Create a user"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create a new user with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /v1/users"]},"."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"POST /v1/users\n\n{\n  \"first_name\": \"Jane\",\n  \"last_name\": \"Smith\",\n  \"email\": \"jane.smith@example.com\",\n  \"phone\": \"+15559876543\",\n  \"time_zone\": \"America/Chicago\",\n  \"is_mfa_active\": true,\n  \"is_active\": true\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"list-users","__idx":9},"children":["List users"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Retrieve all users for the authenticated client with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /v1/users"]},"."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","header":{"controls":{"copy":{}}},"source":"curl -X GET \\\n  https://api.dev.paradisegateway.net/v1/users \\\n  -H \"APIKEY: YOUR-API-KEY\"\n","lang":"shell"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"retrieve-a-user","__idx":10},"children":["Retrieve a user"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Get details for a specific user with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /v1/users/{id}"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"update-a-user","__idx":11},"children":["Update a user"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Update user properties with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /v1/users/{id}"]},". You can update name, phone, time zone, active status, and MFA settings."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"user-api-endpoints","__idx":12},"children":["User API endpoints"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Operation"},"children":["Operation"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Endpoint"},"children":["Endpoint"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Method"},"children":["Method"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Create"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v1/users"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["POST"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["List"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v1/users"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["GET"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Retrieve"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v1/users/{id}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["GET"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Update"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v1/users/{id}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["POST"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"authentication","__idx":13},"children":["Authentication"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Users authenticate to obtain an API key. The API key is then used for all subsequent API requests."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Retrieve an API key"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /v1/auth/keys"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["user_name"]}," (email) and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["password"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use the API key"]},": Include the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["APIKEY"]}," header in all requests."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The API key is scoped to the user's client. All requests made with that key are limited to the data accessible by that client and role."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"multi-factor-authentication-mfa","__idx":14},"children":["Multi-factor authentication (MFA)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Users can enable MFA for additional login security. When ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["is_mfa_active"]}," is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]},", the user must complete a second authentication factor after providing their password."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["MFA can be managed through:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The API — set ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["is_mfa_active"]}," when creating or updating a user"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The web portal — users can enable MFA in their account settings"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"account-locking","__idx":15},"children":["Account locking"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["User accounts can become locked after repeated failed authentication attempts. A locked account (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["is_locked: true"]},") cannot authenticate until an admin unlocks it."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"State"},"children":["State"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"is_active"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["is_active"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"is_locked"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["is_locked"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Can authenticate"},"children":["Can authenticate"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Active"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Locked"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No — must be unlocked by admin"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Deactivated"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["No — must be reactivated by admin"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"password-management","__idx":16},"children":["Password management"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Users can update their own password with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /v1/users/me/passwords"]},". This requires the current password and the new password."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"PATCH /v1/users/me/passwords\n\n{\n  \"current_password\": \"OldPassword123!\",\n  \"new_password\": \"NewSecurePassword456!\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"best-practices","__idx":17},"children":["Best practices"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use MFA"]}," for all users with administrative or financial access."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Apply least-privilege roles"]}," — assign the minimum role needed for each user's responsibilities."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Audit user accounts"]}," periodically — deactivate users who no longer need access."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use separate users"]}," for each person — do not share user accounts or API keys."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Monitor locked accounts"]}," — repeated lockouts may indicate a brute-force attack."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"further-reading","__idx":18},"children":["Further reading"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/concepts/account-hierarchy/clients-and-resellers"},"children":["About clients and resellers"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/concepts/security-compliance/pci-dss-overview"},"children":["About PCI-DSS compliance"]}]}]}]},"headings":[{"value":"About users and roles","id":"about-users-and-roles","depth":1},{"value":"User accounts","id":"user-accounts","depth":2},{"value":"User properties","id":"user-properties","depth":3},{"value":"User–client relationship","id":"userclient-relationship","depth":2},{"value":"Role-based access control","id":"role-based-access-control","depth":2},{"value":"Common role types","id":"common-role-types","depth":3},{"value":"Permission matrix","id":"permission-matrix","depth":3},{"value":"Managing users","id":"managing-users","depth":2},{"value":"Create a user","id":"create-a-user","depth":3},{"value":"List users","id":"list-users","depth":3},{"value":"Retrieve a user","id":"retrieve-a-user","depth":3},{"value":"Update a user","id":"update-a-user","depth":3},{"value":"User API endpoints","id":"user-api-endpoints","depth":2},{"value":"Authentication","id":"authentication","depth":2},{"value":"Multi-factor authentication (MFA)","id":"multi-factor-authentication-mfa","depth":2},{"value":"Account locking","id":"account-locking","depth":2},{"value":"Password management","id":"password-management","depth":2},{"value":"Best practices","id":"best-practices","depth":2},{"value":"Further reading","id":"further-reading","depth":2}],"frontmatter":{"title":"About users and roles","shortTitle":"Users and roles","intro":"Each person who accesses {% $env.PUBLIC_BRAND_NAME %} — through the API or web portal — is a user account tied to a client. Role-based access control determines what each user can see and do.","type":"overview","seo":{"title":""}},"lastModified":"2026-06-05T02:46:44.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/concepts/account-hierarchy/users-and-roles","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}