{
  "info": {
    "_postman_id": "spay4-cardholder-edge-api",
    "name": "SPay4 Cardholder Edge",
    "description": "由 docs/spay4/tools/generate-postman-collection.mjs 從 spay4-cardholder controller 產生（Cardholder App 對外 edge）。Mutation 僅供手動逐筆執行；不得儲存一次性 credential 或任何 secret。BO internal API 不在此 collection。每條 request 附由 spay4-cardholder golden fixture 產生的成功與錯誤範例（對照檔 docs/spay4/postman/cardholder-edge-examples.json，wire test 驗證 fixture 與實際回應一致）及 ResponseVo 斷言（CSV 匯出成功斷言 text/csv 與 body）；範例中的 credential 與 token 一律為 placeholder。401／403／404 範例只附在適用的 request，不是每條都適用。",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Auth",
      "item": [
        {
          "name": "Mutations",
          "item": [
            {
              "name": "POST /cardholder/auth/login — Cardholder App 登入",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/auth/login",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "auth",
                    "login"
                  ],
                  "query": []
                },
                "description": "驗證帳號密碼後由 BO 撤銷既有 session 並建立新 session。Temporary password 不建立 session：回 mustChangePassword=true、refreshToken 與 cardholderSessionId 為 null，accessToken 為 10 分鐘受限 token，只能呼叫 me、changePassword、logout。錯誤：LOGIN_FAIL 401、CARDHOLDER_ACCOUNT_LOCKED 403、FIELD_VALIDATE_FAILED 400。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderAuthController.java\n\nNo Auth（Cardholder 登入／refresh）\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"username\": \"{{username}}\",\n  \"password\": \"{{password}}\",\n  \"deviceId\": \"{{deviceId}}\",\n  \"deviceModel\": \"{{deviceModel}}\",\n  \"deviceFingerprint\": \"{{deviceFingerprint}}\",\n  \"appVersion\": \"{{appVersion}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "auth": {
                  "type": "noauth"
                }
              },
              "response": [
                {
                  "name": "200 登入成功",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/login",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "login"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"username\": \"ch-alice\",\n  \"password\": \"{{password}}\",\n  \"deviceId\": \"6f1c2a52-6d4a-4c1e-9d0e-3c1b2a4d5e6f\",\n  \"deviceModel\": \"Pixel 8\",\n  \"deviceFingerprint\": \"fp-raw\",\n  \"appVersion\": \"1.4.2\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"accessToken\": \"{{accessToken}}\",\n    \"refreshToken\": \"{{refreshToken}}\",\n    \"expiresIn\": 3600,\n    \"cardholderUserId\": 11,\n    \"cardholderSessionId\": 21,\n    \"mustChangePassword\": false\n  }\n}"
                },
                {
                  "name": "200 臨時密碼登入（須先變更密碼）",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/login",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "login"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"username\": \"ch-temp\",\n  \"password\": \"{{password}}\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"accessToken\": \"{{accessToken}}\",\n    \"refreshToken\": null,\n    \"expiresIn\": 600,\n    \"cardholderUserId\": 12,\n    \"cardholderSessionId\": null,\n    \"mustChangePassword\": true\n  }\n}"
                },
                {
                  "name": "400 欄位驗證失敗",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/login",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "login"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"username\": \"ch-alice\",\n  \"password\": \"\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40005,\n  \"message\": \"field validate failed\",\n  \"data\": [\n    \"password: must not be blank\"\n  ]\n}"
                },
                {
                  "name": "401 帳號或密碼錯誤",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/login",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "login"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"username\": \"ch-alice\",\n  \"password\": \"{{password}}\",\n  \"deviceId\": \"6f1c2a52-6d4a-4c1e-9d0e-3c1b2a4d5e6f\",\n  \"deviceModel\": \"Pixel 8\",\n  \"deviceFingerprint\": \"fp-raw\",\n  \"appVersion\": \"1.4.2\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40014,\n  \"message\": \"login fail, check your username and password (40014)\",\n  \"data\": null\n}"
                },
                {
                  "name": "403 帳號已鎖定",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/login",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "login"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"username\": \"ch-alice\",\n  \"password\": \"{{password}}\",\n  \"deviceId\": \"6f1c2a52-6d4a-4c1e-9d0e-3c1b2a4d5e6f\",\n  \"deviceModel\": \"Pixel 8\",\n  \"deviceFingerprint\": \"fp-raw\",\n  \"appVersion\": \"1.4.2\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40039,\n  \"message\": \"cardholder account locked (40039)\",\n  \"data\": null\n}"
                },
                {
                  "name": "503 BO 不可用",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/login",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "login"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"username\": \"ch-alice\",\n  \"password\": \"{{password}}\",\n  \"deviceId\": \"6f1c2a52-6d4a-4c1e-9d0e-3c1b2a4d5e6f\",\n  \"deviceModel\": \"Pixel 8\",\n  \"deviceFingerprint\": \"fp-raw\",\n  \"appVersion\": \"1.4.2\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40044,\n  \"message\": \"dependency unavailable (40044)\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});",
                      "const response = pm.response.json();",
                      "if (response?.data?.accessToken) {",
                      "  pm.environment.set('bearerToken', response.data.accessToken);",
                      "}"
                    ]
                  }
                }
              ]
            },
            {
              "name": "POST /cardholder/auth/refresh — Cardholder App refresh token",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/auth/refresh",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "auth",
                    "refresh"
                  ],
                  "query": []
                },
                "description": "以 refresh token 換發新 access／refresh token，舊 refresh token 立即失效。錯誤：NO_AUTHENTICATION 401（token 未知、已用過或 session 已失效，前端應重新登入）、FIELD_VALIDATE_FAILED 400。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderAuthController.java\n\nNo Auth（Cardholder 登入／refresh）\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"refreshToken\": \"{{refreshToken}}\",\n  \"deviceId\": \"{{deviceId}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "auth": {
                  "type": "noauth"
                }
              },
              "response": [
                {
                  "name": "200 換發成功",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/refresh",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "refresh"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"refreshToken\": \"{{refreshToken}}\",\n  \"deviceId\": \"6f1c2a52-6d4a-4c1e-9d0e-3c1b2a4d5e6f\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"accessToken\": \"{{accessToken}}\",\n    \"refreshToken\": \"{{refreshToken}}\",\n    \"expiresIn\": 3600,\n    \"cardholderUserId\": 11,\n    \"cardholderSessionId\": 21,\n    \"mustChangePassword\": false\n  }\n}"
                },
                {
                  "name": "401 refresh token 無效",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/refresh",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "refresh"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"refreshToken\": \"{{refreshToken}}\",\n  \"deviceId\": \"6f1c2a52-6d4a-4c1e-9d0e-3c1b2a4d5e6f\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication (40000)\",\n  \"data\": null\n}"
                },
                {
                  "name": "503 BO 不可用",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/refresh",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "refresh"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"refreshToken\": \"{{refreshToken}}\",\n  \"deviceId\": \"6f1c2a52-6d4a-4c1e-9d0e-3c1b2a4d5e6f\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40044,\n  \"message\": \"dependency unavailable (40044)\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "POST /cardholder/auth/changePassword — Cardholder App 變更密碼",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/auth/changePassword",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "auth",
                    "changePassword"
                  ],
                  "query": []
                },
                "description": "Formal session 沿用同一 session 並輪替 refresh token；temporary password 受限 token 成功後建立新 formal session。錯誤：NO_AUTHENTICATION 401、CARDHOLDER_ACCOUNT_LOCKED 403、FIELD_VALIDATE_FAILED 400、PASSWORD_FORMAT_ERROR 400、PASSWORD_IS_NOT_SAME 400（舊密碼不符）。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderAuthController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"oldPassword\": \"{{oldPassword}}\",\n  \"newPassword\": \"{{newPassword}}\",\n  \"confirmPassword\": \"{{confirmPassword}}\",\n  \"deviceId\": \"{{deviceId}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 變更成功",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/changePassword",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "changePassword"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"oldPassword\": \"{{oldPassword}}\",\n  \"newPassword\": \"{{newPassword}}\",\n  \"confirmPassword\": \"{{newPassword}}\",\n  \"deviceId\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"accessToken\": \"{{accessToken}}\",\n    \"refreshToken\": \"{{refreshToken}}\",\n    \"expiresIn\": 3600,\n    \"cardholderUserId\": 11,\n    \"cardholderSessionId\": 21,\n    \"mustChangePassword\": false\n  }\n}"
                },
                {
                  "name": "400 新密碼與確認不一致",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/changePassword",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "changePassword"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"oldPassword\": \"{{oldPassword}}\",\n  \"newPassword\": \"{{newPassword}}\",\n  \"confirmPassword\": \"{{newPassword}}\",\n  \"deviceId\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40009,\n  \"message\": \"password is not same (40009)\",\n  \"data\": null\n}"
                },
                {
                  "name": "400 新密碼格式錯誤",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/changePassword",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "changePassword"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"oldPassword\": \"{{oldPassword}}\",\n  \"newPassword\": \"{{newPassword}}\",\n  \"confirmPassword\": \"{{newPassword}}\",\n  \"deviceId\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40011,\n  \"message\": \"password format error (40011)\",\n  \"data\": null\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/changePassword",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "changePassword"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"oldPassword\": \"{{oldPassword}}\",\n  \"newPassword\": \"{{newPassword}}\",\n  \"confirmPassword\": \"{{newPassword}}\",\n  \"deviceId\": null\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "POST /cardholder/auth/logout — Cardholder App 登出",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/auth/logout",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "auth",
                    "logout"
                  ],
                  "query": []
                },
                "description": "結束目前 session（end reason 固定 USER_LOGOUT）並使 refresh token 失效；session 已失效時仍成功，前端應清除本機登入狀態。錯誤：NO_AUTHENTICATION 401（token 缺漏、無效或過期）。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderAuthController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"logoutReason\": \"{{logoutReason}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 登出成功",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/logout",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "logout"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"logoutReason\": \"USER_LOGOUT\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"cardholderSessionId\": 21,\n    \"loginStatus\": \"LOGGED_OUT\",\n    \"logoutTime\": \"2026-10-19T07:30:00Z\"\n  }\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/logout",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "logout"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"logoutReason\": \"USER_LOGOUT\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                },
                {
                  "name": "503 BO 不可用",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/logout",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "logout"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"logoutReason\": \"USER_LOGOUT\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40044,\n  \"message\": \"dependency unavailable (40044)\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "POST /cardholder/auth/scheduleLogout — Cardholder App 延遲下線",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/auth/scheduleLogout",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "auth",
                    "scheduleLogout"
                  ],
                  "query": []
                },
                "description": "目前 session 到 offlineTime 時結束（end reason SCHEDULED_LOGOUT）；再次設定取代先前時間，不延長 session 期限。錯誤：NO_AUTHENTICATION 401（token 無效或 session 已失效）、NO_PERMISSION 403（temporary password 受限 token）、FIELD_VALIDATE_FAILED 400（欄位缺漏、不晚於現在或晚於 session 期限）。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderAuthController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"offlineTime\": \"{{offlineTime}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 預約登出成功",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/scheduleLogout",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "scheduleLogout"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"offlineTime\": \"2026-10-19T18:00:00+08:00\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"cardholderSessionId\": 21,\n    \"loginStatus\": \"LOGOUT_PENDING\",\n    \"offlineTime\": \"2026-10-19T10:00:00Z\"\n  }\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/scheduleLogout",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "scheduleLogout"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"offlineTime\": \"2026-10-19T18:00:00+08:00\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                },
                {
                  "name": "503 BO 不可用",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/scheduleLogout",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "scheduleLogout"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"offlineTime\": \"2026-10-19T18:00:00+08:00\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40044,\n  \"message\": \"dependency unavailable (40044)\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "POST /cardholder/auth/cancelScheduledLogout — 取消 Cardholder App 自動登出",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/auth/cancelScheduledLogout",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "auth",
                    "cancelScheduledLogout"
                  ],
                  "query": []
                },
                "description": "撤回目前 session 尚未到期的排程登出，不延長期限、不恢復已結束的 session。錯誤：NO_AUTHENTICATION 401（session 已結束或排程時間已到，前端應重新登入）、NO_PERMISSION 403（temporary password 受限 token）。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderAuthController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 取消預約登出成功",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/cancelScheduledLogout",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "cancelScheduledLogout"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": null\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/cancelScheduledLogout",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "cancelScheduledLogout"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                },
                {
                  "name": "503 BO 不可用",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/auth/cancelScheduledLogout",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "auth",
                        "cancelScheduledLogout"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40044,\n  \"message\": \"dependency unavailable (40044)\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "Card",
      "item": [
        {
          "name": "Read",
          "item": [
            {
              "name": "GET /cardholder/banks — 查詢 Cardholder 申請帳戶可用 Bank",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/banks",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "banks"
                  ],
                  "query": []
                },
                "description": "依本人 Currency 回 ACTIVE 的 Bank，依 bankCode 排序；沒有可用 Bank 時回空 list。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderCardController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 銀行選項",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/banks",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "banks"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": [\n    {\n      \"bankCode\": \"KBANK\",\n      \"bankName\": \"Kasikorn Bank\",\n      \"localName\": \"กสิกรไทย\"\n    },\n    {\n      \"bankCode\": \"SCB\",\n      \"bankName\": \"Siam Commercial Bank\",\n      \"localName\": \"ไทยพาณิชย์\"\n    }\n  ]\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/banks",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "banks"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                },
                {
                  "name": "503 BO 不可用",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/banks",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "banks"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40044,\n  \"message\": \"dependency unavailable\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "GET /cardholder/cardRows — 查詢 Cardholder App 名下統一卡片列",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/cardRows",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "cardRows"
                  ],
                  "query": []
                },
                "description": "先列本人 Payment Account（FORMAL_CARD，依 paymentChannelCardId 由小到大），再列待審 Application（CARD_APPLICATION，依 applicationId 由小到大）；前端依 rowType 判斷可顯示欄位。pending 訂單欄位與讀取失敗時的行為同卡片清單。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderCardController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 卡片與審核中申請",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cardRows",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cardRows"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": [\n    {\n      \"rowType\": \"FORMAL_CARD\",\n      \"paymentChannelCardId\": 7,\n      \"cardCode\": null,\n      \"ownership\": \"CARDHOLDER\",\n      \"cardStatus\": \"ACTIVE\",\n      \"pausingDeadlineTime\": null,\n      \"receivingEnabled\": true,\n      \"applicationId\": null,\n      \"applicationNo\": null,\n      \"applicationStatus\": null,\n      \"cardholderUserId\": 11,\n      \"bankCode\": \"KBANK\",\n      \"bankName\": \"Kasikorn Bank\",\n      \"accountNumber\": \"1234567890\",\n      \"accountName\": \"Alice\",\n      \"agentPrefix\": null,\n      \"paymentChannelCode\": null,\n      \"currentBalance\": 1500.5,\n      \"receivingCeiling\": 5000,\n      \"owner\": {\n        \"cardholderUserId\": 11,\n        \"username\": \"ch-alice\",\n        \"displayName\": \"Alice C\",\n        \"sessionStatus\": \"LOGGED_IN\"\n      },\n      \"todayUsage\": {\n        \"limitAmount\": 10000,\n        \"assignedAmount\": 300,\n        \"completedAmount\": 4500.25,\n        \"assignedCount\": 2,\n        \"completedCount\": 3,\n        \"usedAmount\": 4800.25\n      },\n      \"capacity\": {\n        \"balanceCeiling\": 5000,\n        \"balanceAmount\": 1500.5,\n        \"withdrawalReservedAmount\": 200,\n        \"openDepositHeldAmount\": 700,\n        \"availableByCeiling\": 2799.5,\n        \"availableByDailyLimit\": 5199.75,\n        \"assignableAmount\": 2799.5\n      },\n      \"pendingDepositCount\": 2,\n      \"pendingWithdrawalCount\": 1,\n      \"pendingDepositOrders\": [\n        {\n          \"depositOrderId\": 101,\n          \"orderNo\": \"DEP101\",\n          \"agentOrderId\": null,\n          \"orderStatus\": \"ASSIGNED\",\n          \"amount\": 1000,\n          \"currencyCode\": \"THB\",\n          \"assignedTime\": \"2026-10-19T08:00:00Z\",\n          \"expireTime\": \"2026-10-19T08:10:00Z\",\n          \"createTime\": \"2026-10-19T07:59:00Z\"\n        },\n        {\n          \"depositOrderId\": 102,\n          \"orderNo\": \"DEP102\",\n          \"agentOrderId\": null,\n          \"orderStatus\": \"ASSIGNED\",\n          \"amount\": 1000,\n          \"currencyCode\": \"THB\",\n          \"assignedTime\": \"2026-10-19T08:00:00Z\",\n          \"expireTime\": \"2026-10-19T08:10:00Z\",\n          \"createTime\": \"2026-10-19T07:59:00Z\"\n        }\n      ],\n      \"pendingWithdrawalOrders\": [\n        {\n          \"withdrawalOrderId\": 201,\n          \"orderNo\": \"WDR201\",\n          \"agentOrderId\": null,\n          \"orderStatus\": \"PROCESSING\",\n          \"amount\": 2000,\n          \"currencyCode\": \"THB\",\n          \"cardRelations\": [\n            \"ASSIGNED\"\n          ],\n          \"assignedTime\": \"2026-10-19T08:00:00Z\",\n          \"createTime\": \"2026-10-19T07:59:00Z\"\n        }\n      ],\n      \"createdTime\": \"2026-10-01T02:00:00Z\"\n    },\n    {\n      \"rowType\": \"FORMAL_CARD\",\n      \"paymentChannelCardId\": 8,\n      \"cardCode\": null,\n      \"ownership\": \"CARDHOLDER\",\n      \"cardStatus\": \"FROZEN\",\n      \"pausingDeadlineTime\": null,\n      \"receivingEnabled\": false,\n      \"applicationId\": null,\n      \"applicationNo\": null,\n      \"applicationStatus\": null,\n      \"cardholderUserId\": 11,\n      \"bankCode\": \"KBANK\",\n      \"bankName\": \"Kasikorn Bank\",\n      \"accountNumber\": \"5550001111\",\n      \"accountName\": \"Alice\",\n      \"agentPrefix\": null,\n      \"paymentChannelCode\": null,\n      \"currentBalance\": 1500.5,\n      \"receivingCeiling\": null,\n      \"owner\": {\n        \"cardholderUserId\": 11,\n        \"username\": \"ch-alice\",\n        \"displayName\": \"Alice C\",\n        \"sessionStatus\": \"LOGGED_IN\"\n      },\n      \"todayUsage\": {\n        \"limitAmount\": null,\n        \"assignedAmount\": 300,\n        \"completedAmount\": 4500.25,\n        \"assignedCount\": 2,\n        \"completedCount\": 3,\n        \"usedAmount\": 4800.25\n      },\n      \"capacity\": {\n        \"balanceCeiling\": null,\n        \"balanceAmount\": 1500.5,\n        \"withdrawalReservedAmount\": 200,\n        \"openDepositHeldAmount\": 300,\n        \"availableByCeiling\": null,\n        \"availableByDailyLimit\": null,\n        \"assignableAmount\": null\n      },\n      \"pendingDepositCount\": 2,\n      \"pendingWithdrawalCount\": 1,\n      \"pendingDepositOrders\": [\n        {\n          \"depositOrderId\": 103,\n          \"orderNo\": \"DEP103\",\n          \"agentOrderId\": null,\n          \"orderStatus\": \"ASSIGNED\",\n          \"amount\": 1000,\n          \"currencyCode\": \"THB\",\n          \"assignedTime\": \"2026-10-19T08:00:00Z\",\n          \"expireTime\": \"2026-10-19T08:10:00Z\",\n          \"createTime\": \"2026-10-19T07:59:00Z\"\n        },\n        {\n          \"depositOrderId\": 104,\n          \"orderNo\": \"DEP104\",\n          \"agentOrderId\": null,\n          \"orderStatus\": \"ASSIGNED\",\n          \"amount\": 1000,\n          \"currencyCode\": \"THB\",\n          \"assignedTime\": \"2026-10-19T08:00:00Z\",\n          \"expireTime\": \"2026-10-19T08:10:00Z\",\n          \"createTime\": \"2026-10-19T07:59:00Z\"\n        }\n      ],\n      \"pendingWithdrawalOrders\": [\n        {\n          \"withdrawalOrderId\": 202,\n          \"orderNo\": \"WDR202\",\n          \"agentOrderId\": null,\n          \"orderStatus\": \"PROCESSING\",\n          \"amount\": 2000,\n          \"currencyCode\": \"THB\",\n          \"cardRelations\": [\n            \"ASSIGNED\"\n          ],\n          \"assignedTime\": \"2026-10-19T08:00:00Z\",\n          \"createTime\": \"2026-10-19T07:59:00Z\"\n        }\n      ],\n      \"createdTime\": \"2026-10-01T02:00:00Z\"\n    },\n    {\n      \"rowType\": \"CARD_APPLICATION\",\n      \"paymentChannelCardId\": null,\n      \"cardCode\": null,\n      \"ownership\": \"CARDHOLDER\",\n      \"cardStatus\": null,\n      \"pausingDeadlineTime\": null,\n      \"receivingEnabled\": null,\n      \"applicationId\": 31,\n      \"applicationNo\": \"31\",\n      \"applicationStatus\": \"PENDING_APPROVAL\",\n      \"cardholderUserId\": 11,\n      \"bankCode\": \"SCB\",\n      \"bankName\": \"Siam Commercial Bank\",\n      \"accountNumber\": \"9876543210\",\n      \"accountName\": \"Alice\",\n      \"agentPrefix\": null,\n      \"paymentChannelCode\": null,\n      \"currentBalance\": null,\n      \"receivingCeiling\": null,\n      \"owner\": null,\n      \"todayUsage\": null,\n      \"capacity\": null,\n      \"pendingDepositCount\": 0,\n      \"pendingWithdrawalCount\": 0,\n      \"pendingDepositOrders\": [],\n      \"pendingWithdrawalOrders\": [],\n      \"createdTime\": \"2026-10-18T03:00:00Z\"\n    }\n  ]\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cardRows",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cardRows"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                },
                {
                  "name": "503 BO 不可用",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cardRows",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cardRows"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40044,\n  \"message\": \"dependency unavailable\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "GET /cardholder/cards — 查詢 Cardholder App 名下卡片",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/cards",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "cards"
                  ],
                  "query": []
                },
                "description": "回本人全部 Payment Account（不含申請），依 paymentChannelCardId 由小到大；Bank 主檔缺失時 bankCode、bankName 為 null。cardStatus 在 Freeze 中為 FROZEN，其次為 App 暫停狀態 PAUSING（倒數中）或 PAUSED（到點重開失敗），否則為 ACTIVE 或 INACTIVE；pausingDeadlineTime 只在 PAUSING 時為到點重開時間（UTC），其餘為 null；receivingEnabled 在入款與出款兩個方向都開啟時才為 true。agentPrefix、paymentChannelCode、cardCode 固定 null；pending*Orders 為此卡未完成訂單摘要，pending*Count 為其筆數；本人 pending 列表讀取失敗（BO 不提供、回 500 或無法解碼）時仍回 200，該方向為空 list，pending*Count 改回未解除 obligation 筆數。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderCardController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 卡片清單",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": [\n    {\n      \"paymentChannelCardId\": 7,\n      \"cardCode\": null,\n      \"ownership\": \"CARDHOLDER\",\n      \"cardStatus\": \"ACTIVE\",\n      \"pausingDeadlineTime\": null,\n      \"receivingEnabled\": true,\n      \"bankCode\": \"KBANK\",\n      \"bankName\": \"Kasikorn Bank\",\n      \"accountNumber\": \"1234567890\",\n      \"accountName\": \"Alice\",\n      \"agentPrefix\": null,\n      \"paymentChannelCode\": null,\n      \"currentBalance\": 1500.5,\n      \"receivingCeiling\": 5000,\n      \"owner\": {\n        \"cardholderUserId\": 11,\n        \"username\": \"ch-alice\",\n        \"displayName\": \"Alice C\",\n        \"sessionStatus\": \"LOGGED_IN\"\n      },\n      \"todayUsage\": {\n        \"limitAmount\": 10000,\n        \"assignedAmount\": 300,\n        \"completedAmount\": 4500.25,\n        \"assignedCount\": 2,\n        \"completedCount\": 3,\n        \"usedAmount\": 4800.25\n      },\n      \"capacity\": {\n        \"balanceCeiling\": 5000,\n        \"balanceAmount\": 1500.5,\n        \"withdrawalReservedAmount\": 200,\n        \"openDepositHeldAmount\": 700,\n        \"availableByCeiling\": 2799.5,\n        \"availableByDailyLimit\": 5199.75,\n        \"assignableAmount\": 2799.5\n      },\n      \"pendingDepositCount\": 2,\n      \"pendingWithdrawalCount\": 1,\n      \"pendingDepositOrders\": [\n        {\n          \"depositOrderId\": 101,\n          \"orderNo\": \"DEP101\",\n          \"agentOrderId\": null,\n          \"orderStatus\": \"ASSIGNED\",\n          \"amount\": 1000,\n          \"currencyCode\": \"THB\",\n          \"assignedTime\": \"2026-10-19T08:00:00Z\",\n          \"expireTime\": \"2026-10-19T08:10:00Z\",\n          \"createTime\": \"2026-10-19T07:59:00Z\"\n        },\n        {\n          \"depositOrderId\": 102,\n          \"orderNo\": \"DEP102\",\n          \"agentOrderId\": null,\n          \"orderStatus\": \"ASSIGNED\",\n          \"amount\": 1000,\n          \"currencyCode\": \"THB\",\n          \"assignedTime\": \"2026-10-19T08:00:00Z\",\n          \"expireTime\": \"2026-10-19T08:10:00Z\",\n          \"createTime\": \"2026-10-19T07:59:00Z\"\n        }\n      ],\n      \"pendingWithdrawalOrders\": [\n        {\n          \"withdrawalOrderId\": 201,\n          \"orderNo\": \"WDR201\",\n          \"agentOrderId\": null,\n          \"orderStatus\": \"PROCESSING\",\n          \"amount\": 2000,\n          \"currencyCode\": \"THB\",\n          \"cardRelations\": [\n            \"ASSIGNED\"\n          ],\n          \"assignedTime\": \"2026-10-19T08:00:00Z\",\n          \"createTime\": \"2026-10-19T07:59:00Z\"\n        }\n      ],\n      \"createdTime\": \"2026-10-01T02:00:00Z\"\n    },\n    {\n      \"paymentChannelCardId\": 8,\n      \"cardCode\": null,\n      \"ownership\": \"CARDHOLDER\",\n      \"cardStatus\": \"FROZEN\",\n      \"pausingDeadlineTime\": null,\n      \"receivingEnabled\": false,\n      \"bankCode\": \"KBANK\",\n      \"bankName\": \"Kasikorn Bank\",\n      \"accountNumber\": \"5550001111\",\n      \"accountName\": \"Alice\",\n      \"agentPrefix\": null,\n      \"paymentChannelCode\": null,\n      \"currentBalance\": 1500.5,\n      \"receivingCeiling\": null,\n      \"owner\": {\n        \"cardholderUserId\": 11,\n        \"username\": \"ch-alice\",\n        \"displayName\": \"Alice C\",\n        \"sessionStatus\": \"LOGGED_IN\"\n      },\n      \"todayUsage\": {\n        \"limitAmount\": null,\n        \"assignedAmount\": 300,\n        \"completedAmount\": 4500.25,\n        \"assignedCount\": 2,\n        \"completedCount\": 3,\n        \"usedAmount\": 4800.25\n      },\n      \"capacity\": {\n        \"balanceCeiling\": null,\n        \"balanceAmount\": 1500.5,\n        \"withdrawalReservedAmount\": 200,\n        \"openDepositHeldAmount\": 300,\n        \"availableByCeiling\": null,\n        \"availableByDailyLimit\": null,\n        \"assignableAmount\": null\n      },\n      \"pendingDepositCount\": 2,\n      \"pendingWithdrawalCount\": 1,\n      \"pendingDepositOrders\": [\n        {\n          \"depositOrderId\": 103,\n          \"orderNo\": \"DEP103\",\n          \"agentOrderId\": null,\n          \"orderStatus\": \"ASSIGNED\",\n          \"amount\": 1000,\n          \"currencyCode\": \"THB\",\n          \"assignedTime\": \"2026-10-19T08:00:00Z\",\n          \"expireTime\": \"2026-10-19T08:10:00Z\",\n          \"createTime\": \"2026-10-19T07:59:00Z\"\n        },\n        {\n          \"depositOrderId\": 104,\n          \"orderNo\": \"DEP104\",\n          \"agentOrderId\": null,\n          \"orderStatus\": \"ASSIGNED\",\n          \"amount\": 1000,\n          \"currencyCode\": \"THB\",\n          \"assignedTime\": \"2026-10-19T08:00:00Z\",\n          \"expireTime\": \"2026-10-19T08:10:00Z\",\n          \"createTime\": \"2026-10-19T07:59:00Z\"\n        }\n      ],\n      \"pendingWithdrawalOrders\": [\n        {\n          \"withdrawalOrderId\": 202,\n          \"orderNo\": \"WDR202\",\n          \"agentOrderId\": null,\n          \"orderStatus\": \"PROCESSING\",\n          \"amount\": 2000,\n          \"currencyCode\": \"THB\",\n          \"cardRelations\": [\n            \"ASSIGNED\"\n          ],\n          \"assignedTime\": \"2026-10-19T08:00:00Z\",\n          \"createTime\": \"2026-10-19T07:59:00Z\"\n        }\n      ],\n      \"createdTime\": \"2026-10-01T02:00:00Z\"\n    }\n  ]\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                },
                {
                  "name": "403 臨時密碼 token 不可呼叫",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40001,\n  \"message\": \"no permission\",\n  \"data\": null\n}"
                },
                {
                  "name": "503 BO 不可用",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40044,\n  \"message\": \"dependency unavailable\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "GET /cardholder/cards/{paymentChannelCardId} — 查詢 Cardholder App 卡片明細",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/cards/{{paymentChannelCardId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "cards",
                    "{{paymentChannelCardId}}"
                  ],
                  "query": []
                },
                "description": "回本人單一 Payment Account；欄位與 pending 讀取失敗時的行為同卡片清單。他人或不存在回 DATA_NOT_EXISTS 404。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderCardController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 卡片明細",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards/7",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards",
                        "7"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"paymentChannelCardId\": 7,\n    \"cardCode\": null,\n    \"ownership\": \"CARDHOLDER\",\n    \"cardStatus\": \"ACTIVE\",\n    \"pausingDeadlineTime\": null,\n    \"receivingEnabled\": true,\n    \"bankCode\": \"KBANK\",\n    \"bankName\": \"Kasikorn Bank\",\n    \"accountNumber\": \"1234567890\",\n    \"accountName\": \"Alice\",\n    \"agentPrefix\": null,\n    \"paymentChannelCode\": null,\n    \"currentBalance\": 1500.5,\n    \"receivingCeiling\": 5000,\n    \"owner\": {\n      \"cardholderUserId\": 11,\n      \"username\": \"ch-alice\",\n      \"displayName\": \"Alice C\",\n      \"sessionStatus\": \"LOGGED_IN\"\n    },\n    \"todayUsage\": {\n      \"limitAmount\": 10000,\n      \"assignedAmount\": 300,\n      \"completedAmount\": 4500.25,\n      \"assignedCount\": 2,\n      \"completedCount\": 3,\n      \"usedAmount\": 4800.25\n    },\n    \"capacity\": {\n      \"balanceCeiling\": 5000,\n      \"balanceAmount\": 1500.5,\n      \"withdrawalReservedAmount\": 200,\n      \"openDepositHeldAmount\": 700,\n      \"availableByCeiling\": 2799.5,\n      \"availableByDailyLimit\": 5199.75,\n      \"assignableAmount\": 2799.5\n    },\n    \"pendingDepositCount\": 2,\n    \"pendingWithdrawalCount\": 1,\n    \"pendingDepositOrders\": [\n      {\n        \"depositOrderId\": 101,\n        \"orderNo\": \"DEP101\",\n        \"agentOrderId\": null,\n        \"orderStatus\": \"ASSIGNED\",\n        \"amount\": 1000,\n        \"currencyCode\": \"THB\",\n        \"assignedTime\": \"2026-10-19T08:00:00Z\",\n        \"expireTime\": \"2026-10-19T08:10:00Z\",\n        \"createTime\": \"2026-10-19T07:59:00Z\"\n      },\n      {\n        \"depositOrderId\": 102,\n        \"orderNo\": \"DEP102\",\n        \"agentOrderId\": null,\n        \"orderStatus\": \"ASSIGNED\",\n        \"amount\": 1000,\n        \"currencyCode\": \"THB\",\n        \"assignedTime\": \"2026-10-19T08:00:00Z\",\n        \"expireTime\": \"2026-10-19T08:10:00Z\",\n        \"createTime\": \"2026-10-19T07:59:00Z\"\n      }\n    ],\n    \"pendingWithdrawalOrders\": [\n      {\n        \"withdrawalOrderId\": 201,\n        \"orderNo\": \"WDR201\",\n        \"agentOrderId\": null,\n        \"orderStatus\": \"PROCESSING\",\n        \"amount\": 2000,\n        \"currencyCode\": \"THB\",\n        \"cardRelations\": [\n          \"ASSIGNED\"\n        ],\n        \"assignedTime\": \"2026-10-19T08:00:00Z\",\n        \"createTime\": \"2026-10-19T07:59:00Z\"\n      }\n    ],\n    \"createdTime\": \"2026-10-01T02:00:00Z\"\n  }\n}"
                },
                {
                  "name": "404 非本人或不存在的卡片",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards/99",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards",
                        "99"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40002,\n  \"message\": \"data not exists (40002)\",\n  \"data\": null\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards/7",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards",
                        "7"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          "name": "Mutations",
          "item": [
            {
              "name": "POST /cardholder/cards/applications — Cardholder App 申請帳戶",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/cards/applications",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "cards",
                    "applications"
                  ],
                  "query": []
                },
                "description": "建立待 Supplier／System Admin 審核的 Payment Account Application（PENDING_APPROVAL），不直接建立可接單的帳戶；Currency 由本人推得。帳號保存時去除空白、連字號與底線並轉大寫。特有錯誤：FIELD_VALIDATE_FAILED 400（Bank 不屬於本人 Currency、帳號或戶名格式不符）、UNIQUE_KEY_EXISTS 409（同 Bank 同帳號已有帳戶或待審申請）、ORDER_STATUS_NOT_ALLOWED 409（Bank、Supplier、Gateway 或本人目前不可申請）。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderCardController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"bankCode\": \"{{bankCode}}\",\n  \"accountNumber\": \"{{accountNumber}}\",\n  \"accountName\": \"{{accountName}}\",\n  \"remark\": \"{{remark}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 申請送出",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards/applications",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards",
                        "applications"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"bankCode\": \"scb\",\n  \"accountNumber\": \"9876543210\",\n  \"accountName\": \"Alice\",\n  \"remark\": \"主要收款\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"id\": 31,\n    \"applicationNo\": \"31\",\n    \"applicationStatus\": \"PENDING_APPROVAL\",\n    \"ownership\": \"CARDHOLDER\",\n    \"cardholderUserId\": 11,\n    \"bankCode\": \"SCB\",\n    \"bankName\": \"Siam Commercial Bank\",\n    \"accountNumber\": \"9876543210\",\n    \"accountName\": \"Alice\",\n    \"createTime\": \"2026-10-18T03:00:00Z\"\n  }\n}"
                },
                {
                  "name": "400 欄位驗證失敗",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards/applications",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards",
                        "applications"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"bankCode\": \"\",\n  \"accountNumber\": \"9876543210\",\n  \"accountName\": \"Alice\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40005,\n  \"message\": \"field validate failed\",\n  \"data\": [\n    \"bankCode: must not be blank\"\n  ]\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards/applications",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards",
                        "applications"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"bankCode\": \"scb\",\n  \"accountNumber\": \"9876543210\",\n  \"accountName\": \"Alice\",\n  \"remark\": \"主要收款\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "POST /cardholder/cards/{paymentChannelCardId}/pause — Cardholder App 暫停卡片接單",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/cards/{{paymentChannelCardId}}/pause",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "cards",
                    "{{paymentChannelCardId}}",
                    "pause"
                  ],
                  "query": []
                },
                "description": "把入款與出款兩個方向都關閉，不再派新單；已指派的單照原流程完成，Operational Status 維持 ACTIVE。回應 cardStatus 為 PAUSING，pausingDeadlineTime＝決策時間＋pausingDurationMinutes（30..60 的 JSON integer）分鐘（UTC）。到點後若帳戶仍為 ACTIVE、未凍結且 Bank、Supplier、Gateway、本人與 Currency 都可用，兩個方向自動重開、cardStatus 回 ACTIVE；否則轉 PAUSED，需呼叫 resume。暫停中呼叫 receiving 或 receiving/batch 會取消倒數，以該次設定為準。不發暫停通知。特有錯誤：ORDER_STATUS_NOT_ALLOWED 409（帳戶非 ACTIVE、凍結中或已在暫停中）。回應卡片的 pending 訂單同卡片清單；寫入後讀 pending 失敗時（即使只有一個方向）兩個方向都為空 list，pending*Count 改回 obligation 筆數。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderCardController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"pausingDurationMinutes\": {{pausingDurationMinutes}}\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 暫停收付",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards/7/pause",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards",
                        "7",
                        "pause"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"pausingDurationMinutes\": 30\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"paymentChannelCardId\": 7,\n    \"cardCode\": null,\n    \"ownership\": \"CARDHOLDER\",\n    \"cardStatus\": \"PAUSING\",\n    \"pausingDeadlineTime\": \"2026-10-19T08:30:00Z\",\n    \"receivingEnabled\": false,\n    \"bankCode\": \"KBANK\",\n    \"bankName\": \"Kasikorn Bank\",\n    \"accountNumber\": \"1234567890\",\n    \"accountName\": \"Alice\",\n    \"agentPrefix\": null,\n    \"paymentChannelCode\": null,\n    \"currentBalance\": 1500.5,\n    \"receivingCeiling\": 5000,\n    \"owner\": {\n      \"cardholderUserId\": 11,\n      \"username\": \"ch-alice\",\n      \"displayName\": \"Alice C\",\n      \"sessionStatus\": \"LOGGED_IN\"\n    },\n    \"todayUsage\": {\n      \"limitAmount\": 10000,\n      \"assignedAmount\": 300,\n      \"completedAmount\": 4500.25,\n      \"assignedCount\": 2,\n      \"completedCount\": 3,\n      \"usedAmount\": 4800.25\n    },\n    \"capacity\": {\n      \"balanceCeiling\": 5000,\n      \"balanceAmount\": 1500.5,\n      \"withdrawalReservedAmount\": 200,\n      \"openDepositHeldAmount\": 700,\n      \"availableByCeiling\": 2799.5,\n      \"availableByDailyLimit\": 5199.75,\n      \"assignableAmount\": 2799.5\n    },\n    \"pendingDepositCount\": 2,\n    \"pendingWithdrawalCount\": 1,\n    \"pendingDepositOrders\": [\n      {\n        \"depositOrderId\": 101,\n        \"orderNo\": \"DEP101\",\n        \"agentOrderId\": null,\n        \"orderStatus\": \"ASSIGNED\",\n        \"amount\": 1000,\n        \"currencyCode\": \"THB\",\n        \"assignedTime\": \"2026-10-19T08:00:00Z\",\n        \"expireTime\": \"2026-10-19T08:10:00Z\",\n        \"createTime\": \"2026-10-19T07:59:00Z\"\n      },\n      {\n        \"depositOrderId\": 102,\n        \"orderNo\": \"DEP102\",\n        \"agentOrderId\": null,\n        \"orderStatus\": \"ASSIGNED\",\n        \"amount\": 1000,\n        \"currencyCode\": \"THB\",\n        \"assignedTime\": \"2026-10-19T08:00:00Z\",\n        \"expireTime\": \"2026-10-19T08:10:00Z\",\n        \"createTime\": \"2026-10-19T07:59:00Z\"\n      }\n    ],\n    \"pendingWithdrawalOrders\": [\n      {\n        \"withdrawalOrderId\": 201,\n        \"orderNo\": \"WDR201\",\n        \"agentOrderId\": null,\n        \"orderStatus\": \"PROCESSING\",\n        \"amount\": 2000,\n        \"currencyCode\": \"THB\",\n        \"cardRelations\": [\n          \"ASSIGNED\"\n        ],\n        \"assignedTime\": \"2026-10-19T08:00:00Z\",\n        \"createTime\": \"2026-10-19T07:59:00Z\"\n      }\n    ],\n    \"createdTime\": \"2026-10-01T02:00:00Z\"\n  }\n}"
                },
                {
                  "name": "400 暫停時間格式錯誤",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards/7/pause",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards",
                        "7",
                        "pause"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"pausingDurationMinutes\": \"30\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40005,\n  \"message\": \"field validate failed\",\n  \"data\": [\n    \"pausingDurationMinutes: must not be null\"\n  ]\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "POST /cardholder/cards/{paymentChannelCardId}/resume — Cardholder App 恢復卡片",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/cards/{{paymentChannelCardId}}/resume",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "cards",
                    "{{paymentChannelCardId}}",
                    "resume"
                  ],
                  "query": []
                },
                "description": "卡片在 PAUSING（取消倒數）或 PAUSED 時，重新檢查帳戶為 ACTIVE、未凍結且 Bank、Supplier、Gateway、本人與 Currency 都可用，通過後兩個方向開啟、cardStatus 回 ACTIVE、pausingDeadlineTime 為 null。特有錯誤：ORDER_STATUS_NOT_ALLOWED 409（未在暫停中、凍結中或檢查不通過；暫停狀態不變）。pending 訂單與讀取失敗時的行為同卡片清單（每個方向各自處理）。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderCardController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 恢復（回傳卡片快照）",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards/7/resume",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards",
                        "7",
                        "resume"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"paymentChannelCardId\": 7,\n    \"cardCode\": null,\n    \"ownership\": \"CARDHOLDER\",\n    \"cardStatus\": \"ACTIVE\",\n    \"pausingDeadlineTime\": null,\n    \"receivingEnabled\": true,\n    \"bankCode\": \"KBANK\",\n    \"bankName\": \"Kasikorn Bank\",\n    \"accountNumber\": \"1234567890\",\n    \"accountName\": \"Alice\",\n    \"agentPrefix\": null,\n    \"paymentChannelCode\": null,\n    \"currentBalance\": 1500.5,\n    \"receivingCeiling\": 5000,\n    \"owner\": {\n      \"cardholderUserId\": 11,\n      \"username\": \"ch-alice\",\n      \"displayName\": \"Alice C\",\n      \"sessionStatus\": \"LOGGED_IN\"\n    },\n    \"todayUsage\": {\n      \"limitAmount\": 10000,\n      \"assignedAmount\": 300,\n      \"completedAmount\": 4500.25,\n      \"assignedCount\": 2,\n      \"completedCount\": 3,\n      \"usedAmount\": 4800.25\n    },\n    \"capacity\": {\n      \"balanceCeiling\": 5000,\n      \"balanceAmount\": 1500.5,\n      \"withdrawalReservedAmount\": 200,\n      \"openDepositHeldAmount\": 700,\n      \"availableByCeiling\": 2799.5,\n      \"availableByDailyLimit\": 5199.75,\n      \"assignableAmount\": 2799.5\n    },\n    \"pendingDepositCount\": 2,\n    \"pendingWithdrawalCount\": 1,\n    \"pendingDepositOrders\": [\n      {\n        \"depositOrderId\": 101,\n        \"orderNo\": \"DEP101\",\n        \"agentOrderId\": null,\n        \"orderStatus\": \"ASSIGNED\",\n        \"amount\": 1000,\n        \"currencyCode\": \"THB\",\n        \"assignedTime\": \"2026-10-19T08:00:00Z\",\n        \"expireTime\": \"2026-10-19T08:10:00Z\",\n        \"createTime\": \"2026-10-19T07:59:00Z\"\n      },\n      {\n        \"depositOrderId\": 102,\n        \"orderNo\": \"DEP102\",\n        \"agentOrderId\": null,\n        \"orderStatus\": \"ASSIGNED\",\n        \"amount\": 1000,\n        \"currencyCode\": \"THB\",\n        \"assignedTime\": \"2026-10-19T08:00:00Z\",\n        \"expireTime\": \"2026-10-19T08:10:00Z\",\n        \"createTime\": \"2026-10-19T07:59:00Z\"\n      }\n    ],\n    \"pendingWithdrawalOrders\": [\n      {\n        \"withdrawalOrderId\": 201,\n        \"orderNo\": \"WDR201\",\n        \"agentOrderId\": null,\n        \"orderStatus\": \"PROCESSING\",\n        \"amount\": 2000,\n        \"currencyCode\": \"THB\",\n        \"cardRelations\": [\n          \"ASSIGNED\"\n        ],\n        \"assignedTime\": \"2026-10-19T08:00:00Z\",\n        \"createTime\": \"2026-10-19T07:59:00Z\"\n      }\n    ],\n    \"createdTime\": \"2026-10-01T02:00:00Z\"\n  }\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards/7/resume",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards",
                        "7",
                        "resume"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                },
                {
                  "name": "503 BO 不可用",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards/7/resume",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards",
                        "7",
                        "resume"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40044,\n  \"message\": \"dependency unavailable\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "POST /cardholder/cards/{paymentChannelCardId}/receiving — Cardholder App 設定卡片接單狀態",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/cards/{{paymentChannelCardId}}/receiving",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "cards",
                    "{{paymentChannelCardId}}",
                    "receiving"
                  ],
                  "query": []
                },
                "description": "同時設定入款與出款兩個方向；開啟要求帳戶為 ACTIVE 且 Bank、Supplier、Gateway 與本人都可用，否則回 ORDER_STATUS_NOT_ALLOWED 409；關閉不檢查狀態。開啟不保證一定派單（另受 Freeze 與 routing 條件限制）；不取消已指派的單。卡片在 PAUSING 或 PAUSED 時，成功寫入同時取消暫停（以此次設定為準）。dailyDepositLimit 提供時須為正數，但 SPAY4 只允許 Superadmin 設定限額，此值不保存。回應卡片的 pending 訂單同 pause。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderCardController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"receivingEnabled\": {{receivingEnabled}},\n  \"dailyDepositLimit\": {{dailyDepositLimit}}\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 設定收款",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards/7/receiving",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards",
                        "7",
                        "receiving"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"receivingEnabled\": true,\n  \"dailyDepositLimit\": 50000\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"paymentChannelCardId\": 7,\n    \"cardCode\": null,\n    \"ownership\": \"CARDHOLDER\",\n    \"cardStatus\": \"ACTIVE\",\n    \"pausingDeadlineTime\": null,\n    \"receivingEnabled\": true,\n    \"bankCode\": \"KBANK\",\n    \"bankName\": \"Kasikorn Bank\",\n    \"accountNumber\": \"1234567890\",\n    \"accountName\": \"Alice\",\n    \"agentPrefix\": null,\n    \"paymentChannelCode\": null,\n    \"currentBalance\": 1500.5,\n    \"receivingCeiling\": 5000,\n    \"owner\": {\n      \"cardholderUserId\": 11,\n      \"username\": \"ch-alice\",\n      \"displayName\": \"Alice C\",\n      \"sessionStatus\": \"LOGGED_IN\"\n    },\n    \"todayUsage\": {\n      \"limitAmount\": 10000,\n      \"assignedAmount\": 300,\n      \"completedAmount\": 4500.25,\n      \"assignedCount\": 2,\n      \"completedCount\": 3,\n      \"usedAmount\": 4800.25\n    },\n    \"capacity\": {\n      \"balanceCeiling\": 5000,\n      \"balanceAmount\": 1500.5,\n      \"withdrawalReservedAmount\": 200,\n      \"openDepositHeldAmount\": 700,\n      \"availableByCeiling\": 2799.5,\n      \"availableByDailyLimit\": 5199.75,\n      \"assignableAmount\": 2799.5\n    },\n    \"pendingDepositCount\": 2,\n    \"pendingWithdrawalCount\": 1,\n    \"pendingDepositOrders\": [\n      {\n        \"depositOrderId\": 101,\n        \"orderNo\": \"DEP101\",\n        \"agentOrderId\": null,\n        \"orderStatus\": \"ASSIGNED\",\n        \"amount\": 1000,\n        \"currencyCode\": \"THB\",\n        \"assignedTime\": \"2026-10-19T08:00:00Z\",\n        \"expireTime\": \"2026-10-19T08:10:00Z\",\n        \"createTime\": \"2026-10-19T07:59:00Z\"\n      },\n      {\n        \"depositOrderId\": 102,\n        \"orderNo\": \"DEP102\",\n        \"agentOrderId\": null,\n        \"orderStatus\": \"ASSIGNED\",\n        \"amount\": 1000,\n        \"currencyCode\": \"THB\",\n        \"assignedTime\": \"2026-10-19T08:00:00Z\",\n        \"expireTime\": \"2026-10-19T08:10:00Z\",\n        \"createTime\": \"2026-10-19T07:59:00Z\"\n      }\n    ],\n    \"pendingWithdrawalOrders\": [\n      {\n        \"withdrawalOrderId\": 201,\n        \"orderNo\": \"WDR201\",\n        \"agentOrderId\": null,\n        \"orderStatus\": \"PROCESSING\",\n        \"amount\": 2000,\n        \"currencyCode\": \"THB\",\n        \"cardRelations\": [\n          \"ASSIGNED\"\n        ],\n        \"assignedTime\": \"2026-10-19T08:00:00Z\",\n        \"createTime\": \"2026-10-19T07:59:00Z\"\n      }\n    ],\n    \"createdTime\": \"2026-10-01T02:00:00Z\"\n  }\n}"
                },
                {
                  "name": "409 卡片非啟用狀態",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards/7/receiving",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards",
                        "7",
                        "receiving"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"receivingEnabled\": true\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Conflict",
                  "code": 409,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40026,\n  \"message\": \"order status not allowed (40026)\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "POST /cardholder/cards/receiving/batch — Cardholder App 批量設定卡片接單狀態",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/cards/receiving/batch",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "cards",
                    "receiving",
                    "batch"
                  ],
                  "query": []
                },
                "description": "一次設定 1..10 張卡，每項同 receiving；各項獨立執行，失敗不影響其他項，results 依 request 順序回 code、message、errorData 與成功後的 card。items 缺漏、超過 10 項、含 null、paymentChannelCardId 非正數或重複時整批 FIELD_VALIDATE_FAILED 400；單項 receivingEnabled 缺漏或 dailyDepositLimit 非正數只影響該項。成功項目的卡片 pending 訂單整批只讀一次，行為同 pause。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderCardController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"items\": [{\"paymentChannelCardId\": {{itemsItemPaymentChannelCardId}}, \"receivingEnabled\": {{itemsItemReceivingEnabled}}, \"dailyDepositLimit\": {{itemsItemDailyDepositLimit}}}]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 批次設定收款",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards/receiving/batch",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards",
                        "receiving",
                        "batch"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"paymentChannelCardId\": 7,\n      \"receivingEnabled\": true\n    },\n    {\n      \"paymentChannelCardId\": 99,\n      \"receivingEnabled\": false\n    },\n    {\n      \"paymentChannelCardId\": 8,\n      \"receivingEnabled\": null\n    },\n    {\n      \"paymentChannelCardId\": 9,\n      \"receivingEnabled\": true,\n      \"dailyDepositLimit\": -1\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"results\": [\n      {\n        \"paymentChannelCardId\": 7,\n        \"code\": 2000,\n        \"message\": \"\",\n        \"errorData\": [],\n        \"card\": {\n          \"paymentChannelCardId\": 7,\n          \"cardCode\": null,\n          \"ownership\": \"CARDHOLDER\",\n          \"cardStatus\": \"ACTIVE\",\n          \"pausingDeadlineTime\": null,\n          \"receivingEnabled\": true,\n          \"bankCode\": \"KBANK\",\n          \"bankName\": \"Kasikorn Bank\",\n          \"accountNumber\": \"1234567890\",\n          \"accountName\": \"Alice\",\n          \"agentPrefix\": null,\n          \"paymentChannelCode\": null,\n          \"currentBalance\": 1500.5,\n          \"receivingCeiling\": 5000,\n          \"owner\": {\n            \"cardholderUserId\": 11,\n            \"username\": \"ch-alice\",\n            \"displayName\": \"Alice C\",\n            \"sessionStatus\": \"LOGGED_IN\"\n          },\n          \"todayUsage\": {\n            \"limitAmount\": 10000,\n            \"assignedAmount\": 300,\n            \"completedAmount\": 4500.25,\n            \"assignedCount\": 2,\n            \"completedCount\": 3,\n            \"usedAmount\": 4800.25\n          },\n          \"capacity\": {\n            \"balanceCeiling\": 5000,\n            \"balanceAmount\": 1500.5,\n            \"withdrawalReservedAmount\": 200,\n            \"openDepositHeldAmount\": 700,\n            \"availableByCeiling\": 2799.5,\n            \"availableByDailyLimit\": 5199.75,\n            \"assignableAmount\": 2799.5\n          },\n          \"pendingDepositCount\": 2,\n          \"pendingWithdrawalCount\": 1,\n          \"pendingDepositOrders\": [\n            {\n              \"depositOrderId\": 101,\n              \"orderNo\": \"DEP101\",\n              \"agentOrderId\": null,\n              \"orderStatus\": \"ASSIGNED\",\n              \"amount\": 1000,\n              \"currencyCode\": \"THB\",\n              \"assignedTime\": \"2026-10-19T08:00:00Z\",\n              \"expireTime\": \"2026-10-19T08:10:00Z\",\n              \"createTime\": \"2026-10-19T07:59:00Z\"\n            },\n            {\n              \"depositOrderId\": 102,\n              \"orderNo\": \"DEP102\",\n              \"agentOrderId\": null,\n              \"orderStatus\": \"ASSIGNED\",\n              \"amount\": 1000,\n              \"currencyCode\": \"THB\",\n              \"assignedTime\": \"2026-10-19T08:00:00Z\",\n              \"expireTime\": \"2026-10-19T08:10:00Z\",\n              \"createTime\": \"2026-10-19T07:59:00Z\"\n            }\n          ],\n          \"pendingWithdrawalOrders\": [\n            {\n              \"withdrawalOrderId\": 201,\n              \"orderNo\": \"WDR201\",\n              \"agentOrderId\": null,\n              \"orderStatus\": \"PROCESSING\",\n              \"amount\": 2000,\n              \"currencyCode\": \"THB\",\n              \"cardRelations\": [\n                \"ASSIGNED\"\n              ],\n              \"assignedTime\": \"2026-10-19T08:00:00Z\",\n              \"createTime\": \"2026-10-19T07:59:00Z\"\n            }\n          ],\n          \"createdTime\": \"2026-10-01T02:00:00Z\"\n        }\n      },\n      {\n        \"paymentChannelCardId\": 99,\n        \"code\": 40002,\n        \"message\": \"data not exists\",\n        \"errorData\": [],\n        \"card\": null\n      },\n      {\n        \"paymentChannelCardId\": 8,\n        \"code\": 40005,\n        \"message\": \"field validate failed\",\n        \"errorData\": [\n          \"receivingEnabled: required\"\n        ],\n        \"card\": null\n      },\n      {\n        \"paymentChannelCardId\": 9,\n        \"code\": 40005,\n        \"message\": \"field validate failed\",\n        \"errorData\": [\n          \"dailyDepositLimit: must be greater than 0\"\n        ],\n        \"card\": null\n      }\n    ]\n  }\n}"
                },
                {
                  "name": "400 批次內卡片重複",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/cards/receiving/batch",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "cards",
                        "receiving",
                        "batch"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"items\": [\n    {\n      \"paymentChannelCardId\": 7,\n      \"receivingEnabled\": true\n    },\n    {\n      \"paymentChannelCardId\": 7,\n      \"receivingEnabled\": false\n    }\n  ]\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40005,\n  \"message\": \"field validate failed (40005)\",\n  \"data\": [\n    \"items.paymentChannelCardId: must be unique\"\n  ]\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "Deposit",
      "item": [
        {
          "name": "Read",
          "item": [
            {
              "name": "GET /cardholder/deposits/pending — 查詢 Cardholder App 待處理入款訂單",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/deposits/pending",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "deposits",
                    "pending"
                  ],
                  "query": []
                },
                "description": "回傳目前指派給本人、狀態為 ASSIGNED 或 PENDING_REVIEW 的入款訂單清單（不分頁，依訂單 id 由小到大）；操作後應重新整理列表。收款帳號或戶名無法解密時該筆照列、paymentChannelCardAccountNumber／paymentChannelCardAccountName 為 null；目前指派資料異常（attempt 缺失或綁定不符）的訂單不列出，其他筆照常回。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderDepositController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 待處理入款",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/deposits/pending",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "deposits",
                        "pending"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": [\n    {\n      \"depositOrderId\": 7,\n      \"orderNo\": \"DEP202610190000007\",\n      \"agentOrderId\": null,\n      \"agentId\": null,\n      \"agentPrefix\": null,\n      \"orderStatus\": \"ASSIGNED\",\n      \"finalSource\": null,\n      \"failureCategory\": null,\n      \"failureCode\": null,\n      \"failureReason\": null,\n      \"rejectReason\": null,\n      \"amount\": 1000,\n      \"proofSubmittedAmount\": null,\n      \"actualAmount\": null,\n      \"currencyId\": null,\n      \"currencyCode\": \"THB\",\n      \"currencyName\": null,\n      \"paymentChannelId\": null,\n      \"paymentChannelCode\": null,\n      \"paymentChannelName\": null,\n      \"paymentChannelCardId\": 45,\n      \"bankId\": null,\n      \"bankCode\": \"KBANK\",\n      \"bankName\": \"Kasikorn Bank\",\n      \"paymentChannelCardAccountNumber\": \"98740\",\n      \"paymentChannelCardAccountName\": \"Receiver\",\n      \"ownership\": \"CARDHOLDER\",\n      \"payerBankCode\": \"KBANK\",\n      \"payerAccount\": \"11223344\",\n      \"payerName\": \"Payer\",\n      \"proofFileId\": null,\n      \"expireTime\": \"2026-10-19T08:10:00Z\",\n      \"assignedTime\": \"2026-10-19T08:00:00Z\",\n      \"completedTime\": null,\n      \"createTime\": \"2026-10-19T07:59:00Z\",\n      \"modifyTime\": null\n    }\n  ]\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/deposits/pending",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "deposits",
                        "pending"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                },
                {
                  "name": "503 BO 不可用",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/deposits/pending",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "deposits",
                        "pending"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40044,\n  \"message\": \"dependency unavailable\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "GET /cardholder/deposits/{depositOrderId} — 查詢 Cardholder App 入款訂單明細",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/deposits/{{depositOrderId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "deposits",
                    "{{depositOrderId}}"
                  ],
                  "query": []
                },
                "description": "查詢本人目前指派的單一入款訂單。特有錯誤：DATA_NOT_EXISTS 404（他人、歷史指派、已終結或不存在的訂單），前端應回列表並重新整理，目前指派資料異常（attempt 缺失或綁定不符）的訂單同樣回 404；收款帳號或戶名無法解密時照回明細、paymentChannelCardAccountNumber／paymentChannelCardAccountName 為 null。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderDepositController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 入款明細",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/deposits/7",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "deposits",
                        "7"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"depositOrderId\": 7,\n    \"orderNo\": \"DEP202610190000007\",\n    \"agentOrderId\": null,\n    \"agentId\": null,\n    \"agentPrefix\": null,\n    \"orderStatus\": \"ASSIGNED\",\n    \"finalSource\": null,\n    \"failureCategory\": null,\n    \"failureCode\": null,\n    \"failureReason\": null,\n    \"rejectReason\": null,\n    \"amount\": 1000,\n    \"proofSubmittedAmount\": null,\n    \"actualAmount\": null,\n    \"currencyId\": null,\n    \"currencyCode\": \"THB\",\n    \"currencyName\": null,\n    \"paymentChannelId\": null,\n    \"paymentChannelCode\": null,\n    \"paymentChannelName\": null,\n    \"paymentChannelCardId\": 45,\n    \"bankId\": null,\n    \"bankCode\": \"KBANK\",\n    \"bankName\": \"Kasikorn Bank\",\n    \"paymentChannelCardAccountNumber\": \"98740\",\n    \"paymentChannelCardAccountName\": \"Receiver\",\n    \"ownership\": \"CARDHOLDER\",\n    \"payerBankCode\": \"KBANK\",\n    \"payerAccount\": \"11223344\",\n    \"payerName\": \"Payer\",\n    \"proofFileId\": null,\n    \"expireTime\": \"2026-10-19T08:10:00Z\",\n    \"assignedTime\": \"2026-10-19T08:00:00Z\",\n    \"completedTime\": null,\n    \"createTime\": \"2026-10-19T07:59:00Z\",\n    \"modifyTime\": null\n  }\n}"
                },
                {
                  "name": "404 非本人、歷史或不存在的訂單",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/deposits/7",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "deposits",
                        "7"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40002,\n  \"message\": \"data not exists (40002)\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          "name": "Mutations",
          "item": [
            {
              "name": "POST /cardholder/deposits/{depositOrderId}/confirm — Cardholder App 確認入款訂單",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/deposits/{{depositOrderId}}/confirm",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "deposits",
                    "{{depositOrderId}}",
                    "confirm"
                  ],
                  "query": []
                },
                "description": "multipart/form-data：file（JPEG、PNG 或 WebP，不可為空，上限 10 MB）與 submittedAmount（大於 0、DECIMAL(30,10) 的 decimal text）。BO 已登錄 receipt 時以 receipt 判定，金額與訂單相等且唯一才結算為 COMPLETED；未登錄時申報金額與訂單相等、未重派即結算為 COMPLETED。其餘（金額不符、重派、多筆 receipt）轉 PENDING_REVIEW 由 BO 審核，申報金額保存供審核參考。同一訂單重送 confirm 回首次結果；已離開 ASSIGNED 後不能替換 proof 或改申報金額。特有錯誤：ORDER_STATUS_NOT_ALLOWED 409（訂單已被處理或申報內容與首次不同）、ORDER_ALREADY_FINALIZED 409、TRANSACTION_MATCH_CONFLICT 409（逾期或 receipt 不符）。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderDepositController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "key": "file",
                      "type": "file",
                      "src": ""
                    },
                    {
                      "key": "submittedAmount",
                      "value": "{{submittedAmount}}",
                      "type": "text"
                    }
                  ]
                },
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 確認入款並上傳憑證",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/deposits/7/confirm",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "deposits",
                        "7",
                        "confirm"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "key": "submittedAmount",
                          "value": "990.50",
                          "type": "text"
                        },
                        {
                          "key": "file",
                          "type": "file",
                          "src": "proof.png"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"depositOrderId\": 7,\n    \"orderNo\": \"DEP202610190000007\",\n    \"agentOrderId\": null,\n    \"agentId\": null,\n    \"agentPrefix\": null,\n    \"orderStatus\": \"PENDING_REVIEW\",\n    \"finalSource\": null,\n    \"failureCategory\": null,\n    \"failureCode\": null,\n    \"failureReason\": null,\n    \"rejectReason\": null,\n    \"amount\": 1000,\n    \"proofSubmittedAmount\": 990.5,\n    \"actualAmount\": null,\n    \"currencyId\": null,\n    \"currencyCode\": \"THB\",\n    \"currencyName\": null,\n    \"paymentChannelId\": null,\n    \"paymentChannelCode\": null,\n    \"paymentChannelName\": null,\n    \"paymentChannelCardId\": 45,\n    \"bankId\": null,\n    \"bankCode\": \"KBANK\",\n    \"bankName\": \"Kasikorn Bank\",\n    \"paymentChannelCardAccountNumber\": \"98740\",\n    \"paymentChannelCardAccountName\": \"Receiver\",\n    \"ownership\": \"CARDHOLDER\",\n    \"payerBankCode\": \"KBANK\",\n    \"payerAccount\": \"11223344\",\n    \"payerName\": \"Payer\",\n    \"proofFileId\": null,\n    \"expireTime\": \"2026-10-19T08:10:00Z\",\n    \"assignedTime\": \"2026-10-19T08:00:00Z\",\n    \"completedTime\": null,\n    \"createTime\": \"2026-10-19T07:59:00Z\",\n    \"modifyTime\": null\n  }\n}"
                },
                {
                  "name": "409 訂單狀態不允許",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/deposits/7/confirm",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "deposits",
                        "7",
                        "confirm"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "key": "submittedAmount",
                          "value": "990.50",
                          "type": "text"
                        },
                        {
                          "key": "file",
                          "type": "file",
                          "src": "proof.png"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Conflict",
                  "code": 409,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40026,\n  \"message\": \"order status not allowed (40026)\",\n  \"data\": null\n}"
                },
                {
                  "name": "413 憑證超過上傳上限",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/deposits/7/confirm",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "deposits",
                        "7",
                        "confirm"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "key": "submittedAmount",
                          "value": "100",
                          "type": "text"
                        },
                        {
                          "key": "file",
                          "type": "file",
                          "src": "proof.png"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Payload Too Large",
                  "code": 413,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40005,\n  \"message\": \"field validate failed\",\n  \"data\": [\n    \"file: exceeds upload limit\"\n  ]\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "POST /cardholder/deposits/{depositOrderId}/reject — Cardholder App 拒絕入款訂單",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/deposits/{{depositOrderId}}/reject",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "deposits",
                    "{{depositOrderId}}",
                    "reject"
                  ],
                  "query": []
                },
                "description": "結束本人目前指派並轉 PENDING_REVIEW，原因保存供 BO 審核；不釋放收款占用、不終結訂單，結果由 BO 決定。同一訂單重送 reject 回首次結果。特有錯誤：ORDER_STATUS_NOT_ALLOWED 409（訂單已被處理或原因與首次不同）、ORDER_ALREADY_FINALIZED 409、FIELD_VALIDATE_FAILED 400（reason 缺漏或超過 500 字）。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderDepositController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"reason\": \"{{reason}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 回報未收到款項",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/deposits/7/reject",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "deposits",
                        "7",
                        "reject"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"reason\": \"沒有收到款項\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"depositOrderId\": 7,\n    \"orderNo\": \"DEP202610190000007\",\n    \"agentOrderId\": null,\n    \"agentId\": null,\n    \"agentPrefix\": null,\n    \"orderStatus\": \"PENDING_REVIEW\",\n    \"finalSource\": null,\n    \"failureCategory\": null,\n    \"failureCode\": null,\n    \"failureReason\": null,\n    \"rejectReason\": \"沒有收到款項\",\n    \"amount\": 1000,\n    \"proofSubmittedAmount\": null,\n    \"actualAmount\": null,\n    \"currencyId\": null,\n    \"currencyCode\": \"THB\",\n    \"currencyName\": null,\n    \"paymentChannelId\": null,\n    \"paymentChannelCode\": null,\n    \"paymentChannelName\": null,\n    \"paymentChannelCardId\": 45,\n    \"bankId\": null,\n    \"bankCode\": \"KBANK\",\n    \"bankName\": \"Kasikorn Bank\",\n    \"paymentChannelCardAccountNumber\": \"98740\",\n    \"paymentChannelCardAccountName\": \"Receiver\",\n    \"ownership\": \"CARDHOLDER\",\n    \"payerBankCode\": \"KBANK\",\n    \"payerAccount\": \"11223344\",\n    \"payerName\": \"Payer\",\n    \"proofFileId\": null,\n    \"expireTime\": \"2026-10-19T08:10:00Z\",\n    \"assignedTime\": \"2026-10-19T08:00:00Z\",\n    \"completedTime\": null,\n    \"createTime\": \"2026-10-19T07:59:00Z\",\n    \"modifyTime\": null\n  }\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/deposits/7/reject",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "deposits",
                        "7",
                        "reject"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"reason\": \"沒有收到款項\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                },
                {
                  "name": "503 BO 不可用",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/deposits/7/reject",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "deposits",
                        "7",
                        "reject"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"reason\": \"沒有收到款項\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40044,\n  \"message\": \"dependency unavailable\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "DeviceToken",
      "item": [
        {
          "name": "Mutations",
          "item": [
            {
              "name": "POST /cardholder/deviceTokens/register — 註冊或更新 Cardholder App 裝置 FCM token",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/deviceTokens/register",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "deviceTokens",
                    "register"
                  ],
                  "query": []
                },
                "description": "建立新的 ACTIVE device generation；同一 installation 或同一 token 既有的 ACTIVE generation 由 BO 輪替失效。回 snapshot，不回 raw token；deviceTokenId 恆為 null。錯誤：FIELD_VALIDATE_FAILED 400（欄位缺漏、platform 非 ANDROID、deviceId 或 token 長度不合法）、RESOURCE_VERSION_CONFLICT 409（並發註冊重試仍衝突）、DEPENDENCY_UNAVAILABLE 503。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderDeviceTokenController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"deviceId\": \"{{deviceId}}\",\n  \"platform\": \"{{platform}}\",\n  \"fcmToken\": \"{{fcmToken}}\",\n  \"appVersion\": \"{{appVersion}}\",\n  \"deviceModel\": \"{{deviceModel}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 註冊推播 token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/deviceTokens/register",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "deviceTokens",
                        "register"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"deviceId\": \"6f1c2a52-6d4a-4c1e-9d0e-3c1b2a4d5e6f\",\n  \"platform\": \"ANDROID\",\n  \"fcmToken\": \"{{fcmToken}}\",\n  \"appVersion\": \"1.4.2\",\n  \"deviceModel\": \"Pixel 8\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"deviceTokenId\": null,\n    \"provider\": \"FCM\",\n    \"platform\": \"ANDROID\",\n    \"deviceId\": \"6f1c2a52-6d4a-4c1e-9d0e-3c1b2a4d5e6f\",\n    \"tokenStatus\": \"ACTIVE\",\n    \"invalidReason\": null,\n    \"registeredTime\": \"2026-10-19T07:30:00Z\",\n    \"invalidatedTime\": null\n  }\n}"
                },
                {
                  "name": "400 欄位驗證失敗",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/deviceTokens/register",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "deviceTokens",
                        "register"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"deviceId\": \"6f1c2a52-6d4a-4c1e-9d0e-3c1b2a4d5e6f\",\n  \"platform\": \"ANDROID\",\n  \"fcmToken\": \" \"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40005,\n  \"message\": \"field validate failed\",\n  \"data\": [\n    \"fcmToken: must not be blank\"\n  ]\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "POST /cardholder/deviceTokens/unregister — 取消註冊 Cardholder App 裝置 FCM token",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/deviceTokens/unregister",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "deviceTokens",
                    "unregister"
                  ],
                  "query": []
                },
                "description": "終止本人同 deviceId 的 ACTIVE generation，回 INVALIDATED snapshot（invalidReason USER_UNREGISTER）。找不到該裝置的 ACTIVE token 時同樣回 200，registeredTime、invalidatedTime 為 null。錯誤：FIELD_VALIDATE_FAILED 400（欄位缺漏、platform 非 ANDROID 或 deviceId 超過 128 字元）、DEPENDENCY_UNAVAILABLE 503。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderDeviceTokenController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"deviceId\": \"{{deviceId}}\",\n  \"platform\": \"{{platform}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 取消註冊",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/deviceTokens/unregister",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "deviceTokens",
                        "unregister"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"deviceId\": \"6f1c2a52-6d4a-4c1e-9d0e-3c1b2a4d5e6f\",\n  \"platform\": \"ANDROID\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"deviceTokenId\": null,\n    \"provider\": \"FCM\",\n    \"platform\": \"ANDROID\",\n    \"deviceId\": \"6f1c2a52-6d4a-4c1e-9d0e-3c1b2a4d5e6f\",\n    \"tokenStatus\": \"INVALIDATED\",\n    \"invalidReason\": \"USER_UNREGISTER\",\n    \"registeredTime\": \"2026-10-19T07:30:00Z\",\n    \"invalidatedTime\": \"2026-10-19T08:00:00Z\"\n  }\n}"
                },
                {
                  "name": "200 裝置未註冊（仍回成功，時間為 null）",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/deviceTokens/unregister",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "deviceTokens",
                        "unregister"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"deviceId\": \"unknown-device\",\n  \"platform\": \"ANDROID\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"deviceTokenId\": null,\n    \"provider\": \"FCM\",\n    \"platform\": \"ANDROID\",\n    \"deviceId\": \"unknown-device\",\n    \"tokenStatus\": \"INVALIDATED\",\n    \"invalidReason\": \"USER_UNREGISTER\",\n    \"registeredTime\": null,\n    \"invalidatedTime\": null\n  }\n}"
                },
                {
                  "name": "400 欄位驗證失敗",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/deviceTokens/unregister",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "deviceTokens",
                        "unregister"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"deviceId\": \"6f1c2a52-6d4a-4c1e-9d0e-3c1b2a4d5e6f\",\n  \"platform\": \"WEB\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40005,\n  \"message\": \"field validate failed (40005)\",\n  \"data\": [\n    \"platform: must be ANDROID\"\n  ]\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "Me",
      "item": [
        {
          "name": "Read",
          "item": [
            {
              "name": "GET /cardholder/me — 查詢 Cardholder App 目前登入者資訊",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/me",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "me"
                  ],
                  "query": []
                },
                "description": "回 Cardholder／session identity、是否須變更密碼與帳號建立時間。agentId、paymentChannelId 固定 null（Supply Cardholder 不屬於 Agent）；depositCommissionRate、withdrawalCommissionRate 為查詢當下 Supplier business month 適用的本人 PT 方向別 rate（百分比，不含 base fee／threshold，下月 PENDING 規則不採用），兩方向都有規則時 commissionRateStatus=AVAILABLE，否則兩個 rate 皆 null、UNAVAILABLE。受限 token 也回 rate。mustChangePassword=true 時前端應導向變更密碼，cardholderSessionId 為 null。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderMeController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 個人資料",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/me",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "me"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"cardholderUserId\": 11,\n    \"cardholderSessionId\": 21,\n    \"agentId\": null,\n    \"paymentChannelId\": null,\n    \"mustChangePassword\": false,\n    \"depositCommissionRate\": 1.25,\n    \"withdrawalCommissionRate\": 0.75,\n    \"commissionRateStatus\": \"AVAILABLE\",\n    \"registeredTime\": \"2026-09-01T00:00:00Z\"\n  }\n}"
                },
                {
                  "name": "200 臨時密碼 token 讀個人資料",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/me",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "me"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"cardholderUserId\": 12,\n    \"cardholderSessionId\": null,\n    \"agentId\": null,\n    \"paymentChannelId\": null,\n    \"mustChangePassword\": true,\n    \"depositCommissionRate\": 2,\n    \"withdrawalCommissionRate\": 3,\n    \"commissionRateStatus\": \"AVAILABLE\",\n    \"registeredTime\": \"2026-09-02T00:00:00Z\"\n  }\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/me",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "me"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                },
                {
                  "name": "503 BO 不可用",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/me",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "me"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40044,\n  \"message\": \"dependency unavailable\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "Notification",
      "item": [
        {
          "name": "Read",
          "item": [
            {
              "name": "GET /cardholder/notifications — 查詢 Cardholder Notification Center",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/notifications",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "notifications"
                  ],
                  "query": [
                    {
                      "key": "read",
                      "value": "{{read}}",
                      "disabled": true
                    },
                    {
                      "key": "notificationChannel",
                      "value": "{{notificationChannel}}",
                      "disabled": true
                    },
                    {
                      "key": "pageNumber",
                      "value": "{{pageNumber}}",
                      "disabled": true
                    },
                    {
                      "key": "pageSize",
                      "value": "{{pageSize}}",
                      "disabled": true
                    }
                  ]
                },
                "description": "回傳本人 IN_APP 通知分頁，建立時間由新到舊；read 與 notificationChannel 都在分頁前篩選，列表查詢不修改已讀狀態。deliveryChannel 恆為 IN_APP，balanceAdjustment 恆為 null；order 只有訂單事件有值，其他事件或 payload 無法使用時為 null。錯誤：FIELD_VALIDATE_FAILED 400（read 非 true／false、notificationChannel 不合法、pageNumber 為負或非整數、pageSize 不在 1..100）。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderNotificationController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 通知分頁",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/notifications?notificationChannel=ORDERS&pageNumber=1&pageSize=2",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "notifications"
                      ],
                      "query": [
                        {
                          "key": "notificationChannel",
                          "value": "ORDERS"
                        },
                        {
                          "key": "pageNumber",
                          "value": "1"
                        },
                        {
                          "key": "pageSize",
                          "value": "2"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"records\": [\n      {\n        \"id\": 31,\n        \"time\": \"2026-10-19T07:30:00Z\",\n        \"notificationChannel\": \"ORDERS\",\n        \"deliveryChannel\": \"IN_APP\",\n        \"eventType\": \"NEW_DEPOSIT\",\n        \"title\": \"新入款訂單\",\n        \"body\": \"請處理入款\",\n        \"read\": false,\n        \"readTime\": null,\n        \"balanceAdjustment\": null,\n        \"order\": {\n          \"orderId\": \"600\",\n          \"orderNo\": \"D-1\",\n          \"bankCode\": \"KTB\",\n          \"amount\": \"1234.50\",\n          \"currencyCode\": \"THB\"\n        }\n      },\n      {\n        \"id\": 30,\n        \"time\": \"2026-10-19T07:00:00Z\",\n        \"notificationChannel\": \"ORDERS\",\n        \"deliveryChannel\": \"IN_APP\",\n        \"eventType\": \"NEW_WITHDRAWAL\",\n        \"title\": \"新取款訂單\",\n        \"body\": \"請處理取款\",\n        \"read\": true,\n        \"readTime\": \"2026-10-19T07:10:00Z\",\n        \"balanceAdjustment\": null,\n        \"order\": null\n      }\n    ],\n    \"total\": 5,\n    \"size\": 2,\n    \"number\": 1\n  }\n}"
                },
                {
                  "name": "400 分頁參數錯誤",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/notifications?pageSize=0",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "notifications"
                      ],
                      "query": [
                        {
                          "key": "pageSize",
                          "value": "0"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40005,\n  \"message\": \"field validate failed (40005)\",\n  \"data\": [\n    \"pageSize: must be between 1 and 100\"\n  ]\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          "name": "Mutations",
          "item": [
            {
              "name": "POST /cardholder/notifications/{id}/read — 標記 Cardholder App 通知為已讀",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/notifications/{{id}}/read",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "notifications",
                    "{{id}}",
                    "read"
                  ],
                  "query": []
                },
                "description": "首次已讀寫入 readTime；已讀 replay 回原 readTime。不取消 FCM 推送。錯誤：DATA_NOT_EXISTS 404（通知不存在、不是本人或不是 IN_APP 通知，不揭露存在與否）。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderNotificationController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 標記已讀",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/notifications/31/read",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "notifications",
                        "31",
                        "read"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"notificationId\": 31,\n    \"read\": true,\n    \"readTime\": \"2026-10-19T08:00:00Z\"\n  }\n}"
                },
                {
                  "name": "404 通知不存在",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/notifications/99/read",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "notifications",
                        "99",
                        "read"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40002,\n  \"message\": \"data not exists (40002)\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "POST /cardholder/notifications/readAll — 將全部 Cardholder notification 標記為已讀",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/notifications/readAll",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "notifications",
                    "readAll"
                  ],
                  "query": []
                },
                "description": "把本人所有未讀 IN_APP 通知標為已讀，回本次更新筆數；已讀者不變，重複呼叫回 0。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderNotificationController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 全部標記已讀",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/notifications/readAll",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "notifications",
                        "readAll"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"updatedCount\": 3\n  }\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/notifications/readAll",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "notifications",
                        "readAll"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                },
                {
                  "name": "503 BO 不可用",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/notifications/readAll",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "notifications",
                        "readAll"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40044,\n  \"message\": \"dependency unavailable\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "Report",
      "item": [
        {
          "name": "Read",
          "item": [
            {
              "name": "GET /cardholder/activity — 查詢 Cardholder App 活動時間軸",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/activity",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "activity"
                  ],
                  "query": [
                    {
                      "key": "scope",
                      "value": "{{scope}}",
                      "disabled": true
                    },
                    {
                      "key": "paymentChannelCardId",
                      "value": "{{paymentChannelCardId}}",
                      "disabled": true
                    },
                    {
                      "key": "from",
                      "value": "{{from}}",
                      "disabled": true
                    },
                    {
                      "key": "to",
                      "value": "{{to}}",
                      "disabled": true
                    },
                    {
                      "key": "types",
                      "value": "{{types}}",
                      "disabled": true,
                      "description": "可重複加入同名 query parameter。"
                    },
                    {
                      "key": "statusKinds",
                      "value": "{{statusKinds}}",
                      "disabled": true,
                      "description": "可重複加入同名 query parameter。"
                    },
                    {
                      "key": "pageNumber",
                      "value": "{{pageNumber}}",
                      "disabled": true
                    },
                    {
                      "key": "pageSize",
                      "value": "{{pageSize}}",
                      "disabled": true
                    },
                    {
                      "key": "includeCommissionEstimate",
                      "value": "{{includeCommissionEstimate}}",
                      "disabled": true
                    }
                  ]
                },
                "description": "ACCOUNT scope 為本人全部 Payment Account，CARD scope 為單一本人 Account；依 eventTime 由新到舊、包含 to。一張入款或取款訂單一列（訂單最後一次指派落在本人 Account 才出現），另含獨立餘額異動（statusKind=ADJUSTED、orderStatus 為 null）；欄位與 enum 同 DEV legacy，含 actualAmount、payerAccount、receiverAccount。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderReportController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 全部卡片活動",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/activity?pageNumber=0&pageSize=20",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "activity"
                      ],
                      "query": [
                        {
                          "key": "pageNumber",
                          "value": "0"
                        },
                        {
                          "key": "pageSize",
                          "value": "20"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"records\": [\n      {\n        \"activityId\": \"DEP-7\",\n        \"paymentChannelCardId\": 31,\n        \"type\": \"DEPOSIT\",\n        \"statusKind\": \"SUCCESS\",\n        \"orderStatus\": \"COMPLETED\",\n        \"eventTime\": \"2026-10-19T07:30:00.123456Z\",\n        \"amount\": 1500,\n        \"actualAmount\": 1500.5,\n        \"orderNo\": \"D202610190001\",\n        \"summary\": \"THB 1500.5 from Payer A\",\n        \"payerAccount\": {\n          \"bankCode\": \"KBANK\",\n          \"bankName\": \"Kasikorn\",\n          \"accountNumber\": \"0012345678\",\n          \"accountName\": \"Payer A\"\n        },\n        \"receiverAccount\": {\n          \"bankCode\": \"SCB\",\n          \"bankName\": \"Siam Commercial\",\n          \"accountNumber\": \"0098765432\",\n          \"accountName\": \"Own Account\"\n        }\n      },\n      {\n        \"activityId\": \"WDR-8\",\n        \"paymentChannelCardId\": 32,\n        \"type\": \"WITHDRAWAL\",\n        \"statusKind\": \"REVIEW\",\n        \"orderStatus\": \"PENDING_VERIFICATION\",\n        \"eventTime\": \"2026-10-19T07:20:00Z\",\n        \"amount\": -800,\n        \"actualAmount\": null,\n        \"orderNo\": \"W202610190002\",\n        \"summary\": \"THB 800 to Receiver B\",\n        \"payerAccount\": {\n          \"bankCode\": \"SCB\",\n          \"bankName\": \"Siam Commercial\",\n          \"accountNumber\": \"0011112222\",\n          \"accountName\": \"Own Account 2\"\n        },\n        \"receiverAccount\": {\n          \"bankCode\": \"BBL\",\n          \"bankName\": null,\n          \"accountNumber\": \"001\",\n          \"accountName\": \"Receiver B\"\n        }\n      },\n      {\n        \"activityId\": \"BAL-7\",\n        \"paymentChannelCardId\": 31,\n        \"type\": \"BALANCE_CHANGE\",\n        \"statusKind\": \"ADJUSTED\",\n        \"orderStatus\": null,\n        \"eventTime\": \"2026-10-19T07:10:00Z\",\n        \"amount\": -20,\n        \"actualAmount\": null,\n        \"orderNo\": \"BAL-7\",\n        \"summary\": \"Manual balance adjustment\",\n        \"payerAccount\": null,\n        \"receiverAccount\": null\n      }\n    ],\n    \"total\": 3,\n    \"size\": 20,\n    \"number\": 0\n  }\n}"
                },
                {
                  "name": "200 單卡活動（篩選與分頁）",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/activity?scope=CARD&paymentChannelCardId=31&from=2026-10-18T00:00:00Z&to=2026-10-19T02:00:00Z&types=DEPOSIT&types=BALANCE_CHANGE&statusKinds=REVIEW&statusKinds=FAILED&statusKinds=ADJUSTED&pageNumber=1&pageSize=2",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "activity"
                      ],
                      "query": [
                        {
                          "key": "scope",
                          "value": "CARD"
                        },
                        {
                          "key": "paymentChannelCardId",
                          "value": "31"
                        },
                        {
                          "key": "from",
                          "value": "2026-10-18T00:00:00Z"
                        },
                        {
                          "key": "to",
                          "value": "2026-10-19T02:00:00Z"
                        },
                        {
                          "key": "types",
                          "value": "DEPOSIT"
                        },
                        {
                          "key": "types",
                          "value": "BALANCE_CHANGE"
                        },
                        {
                          "key": "statusKinds",
                          "value": "REVIEW"
                        },
                        {
                          "key": "statusKinds",
                          "value": "FAILED"
                        },
                        {
                          "key": "statusKinds",
                          "value": "ADJUSTED"
                        },
                        {
                          "key": "pageNumber",
                          "value": "1"
                        },
                        {
                          "key": "pageSize",
                          "value": "2"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"records\": [\n      {\n        \"activityId\": \"DEP-9\",\n        \"paymentChannelCardId\": 31,\n        \"type\": \"DEPOSIT\",\n        \"statusKind\": \"REVIEW\",\n        \"orderStatus\": \"PENDING_REVIEW\",\n        \"eventTime\": \"2026-10-18T05:00:00Z\",\n        \"amount\": 300,\n        \"actualAmount\": null,\n        \"orderNo\": \"D202610180009\",\n        \"summary\": \"THB 300 from payer\",\n        \"payerAccount\": {\n          \"bankCode\": null,\n          \"bankName\": null,\n          \"accountNumber\": \"0012345678\",\n          \"accountName\": null\n        },\n        \"receiverAccount\": {\n          \"bankCode\": \"SCB\",\n          \"bankName\": \"Siam Commercial\",\n          \"accountNumber\": \"0098765432\",\n          \"accountName\": \"Own Account\"\n        }\n      }\n    ],\n    \"total\": 3,\n    \"size\": 2,\n    \"number\": 1\n  }\n}"
                },
                {
                  "name": "400 scope 不合法",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/activity?scope=ALL",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "activity"
                      ],
                      "query": [
                        {
                          "key": "scope",
                          "value": "ALL"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40005,\n  \"message\": \"field validate failed (40005)\",\n  \"data\": [\n    \"scope: invalid\"\n  ]\n}"
                },
                {
                  "name": "403 臨時密碼 token 不可呼叫",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/activity?pageNumber=0&pageSize=20",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "activity"
                      ],
                      "query": [
                        {
                          "key": "pageNumber",
                          "value": "0"
                        },
                        {
                          "key": "pageSize",
                          "value": "20"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40001,\n  \"message\": \"no permission\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "GET /cardholder/dashboard/summary — 取得 Cardholder Dashboard 即時摘要",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/dashboard/summary",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "dashboard",
                    "summary"
                  ],
                  "query": []
                },
                "description": "本人全部 Payment Account 在 business zone（Supplier business UTC offset）今日截至 asOf 的成功入款與取款金額。todayCommissionEstimate 為今日 Deposit 與 Withdrawal 各自同方向月累計結果的差額和，monthToDateCommissionEstimate 為當月截至現在的月累計（ADR-0172）；當月任一方向缺有效 PT revision 或 Currency metadata 無效時兩者為 null、commissionEstimateStatus=UNAVAILABLE。today*ChangeDisplay 必定非 null，固定為 —。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderReportController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 首頁摘要",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/dashboard/summary",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "dashboard",
                        "summary"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"currencyCode\": \"THB\",\n    \"businessZone\": \"+07:00\",\n    \"asOf\": \"2026-10-19T08:00:00.100Z\",\n    \"todayDepositAmount\": 12000.5,\n    \"todayWithdrawalAmount\": 3000,\n    \"todayDepositChangeDisplay\": \"—\",\n    \"todayWithdrawalChangeDisplay\": \"—\",\n    \"todayCommissionEstimate\": 12.5,\n    \"monthToDateCommissionEstimate\": 44,\n    \"commissionEstimateStatus\": \"AVAILABLE\"\n  }\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/dashboard/summary",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "dashboard",
                        "summary"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                },
                {
                  "name": "503 BO 不可用",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/dashboard/summary",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "dashboard",
                        "summary"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40044,\n  \"message\": \"dependency unavailable\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "GET /cardholder/commissions/dailyBreakdown — 查詢 Cardholder commission 每日明細",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/commissions/dailyBreakdown",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "commissions",
                    "dailyBreakdown"
                  ],
                  "query": [
                    {
                      "key": "from",
                      "value": "{{from}}",
                      "disabled": true
                    },
                    {
                      "key": "to",
                      "value": "{{to}}",
                      "disabled": true
                    }
                  ]
                },
                "description": "from／to 為 business zone（Supplier business UTC offset）的 inclusive yyyy-MM-dd，須成對且同月；兩者皆省略時為本月一日至今日。rows 只列有 eligible 成功入款或取款的日期（由新到舊）；每日估算 = 當日 Deposit 與 Withdrawal 各自同方向月累計結果的差額和（ADR-0172），月內加總等於當月結果。該月任一方向缺有效 PT revision 或 Currency metadata 無效時佣金欄位為 null、commissionEstimateStatus=UNAVAILABLE。錯誤另含 FIELD_VALIDATE_FAILED 400（from／to 缺一、跨月、from 晚於 to、to 晚於今日、from 早於 180 天前）。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderReportController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 每日佣金估算",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/commissions/dailyBreakdown",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "commissions",
                        "dailyBreakdown"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"currencyCode\": \"THB\",\n    \"businessZone\": \"+07:00\",\n    \"from\": \"2026-10-01\",\n    \"to\": \"2026-10-19\",\n    \"asOf\": \"2026-10-19T08:00:00.100Z\",\n    \"commissionEstimateStatus\": \"AVAILABLE\",\n    \"commissionEstimateTotal\": 44,\n    \"activeDayCount\": 3,\n    \"calendarDayCount\": 19,\n    \"averagePerCalendarDayCommissionEstimate\": 2.32,\n    \"rows\": [\n      {\n        \"businessDate\": \"2026-10-19\",\n        \"commissionEstimate\": 12.5\n      },\n      {\n        \"businessDate\": \"2026-10-18\",\n        \"commissionEstimate\": 0\n      },\n      {\n        \"businessDate\": \"2026-10-02\",\n        \"commissionEstimate\": 31.5\n      }\n    ]\n  }\n}"
                },
                {
                  "name": "400 缺 to",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/commissions/dailyBreakdown?from=2026-10-01",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "commissions",
                        "dailyBreakdown"
                      ],
                      "query": [
                        {
                          "key": "from",
                          "value": "2026-10-01"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40005,\n  \"message\": \"field validate failed (40005)\",\n  \"data\": [\n    \"to: required\"\n  ]\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "GET /cardholder/reports/summary — 查詢 Cardholder App 報表摘要",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/reports/summary",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "reports",
                    "summary"
                  ],
                  "query": [
                    {
                      "key": "scope",
                      "value": "{{scope}}",
                      "disabled": true
                    },
                    {
                      "key": "paymentChannelCardId",
                      "value": "{{paymentChannelCardId}}",
                      "disabled": true
                    },
                    {
                      "key": "from",
                      "value": "{{from}}",
                      "disabled": true
                    },
                    {
                      "key": "to",
                      "value": "{{to}}",
                      "disabled": true
                    },
                    {
                      "key": "types",
                      "value": "{{types}}",
                      "disabled": true,
                      "description": "可重複加入同名 query parameter。"
                    },
                    {
                      "key": "statusKinds",
                      "value": "{{statusKinds}}",
                      "disabled": true,
                      "description": "可重複加入同名 query parameter。"
                    },
                    {
                      "key": "pageNumber",
                      "value": "{{pageNumber}}",
                      "disabled": true
                    },
                    {
                      "key": "pageSize",
                      "value": "{{pageSize}}",
                      "disabled": true
                    },
                    {
                      "key": "includeCommissionEstimate",
                      "value": "{{includeCommissionEstimate}}",
                      "disabled": true
                    }
                  ]
                },
                "description": "未帶 types 時只算入款與取款，未帶 statusKinds 時只算 SUCCESS；金額只計成功交易，筆數為符合條件的 distinct Order。commissionEstimateTotal 為窗口內成功 Order 的逐筆佣金估算加總（ADR-0172），只在 includeCommissionEstimate=true 時計算，否則與 commissionEstimateStatus 皆為 null；窗口涉及的任一月份任一方向不可計算時為 null、commissionEstimateStatus=UNAVAILABLE。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderReportController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 報表摘要",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/reports/summary?from=2026-10-12T08:00:00Z&to=2026-10-19T08:00:00Z&includeCommissionEstimate=true",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "reports",
                        "summary"
                      ],
                      "query": [
                        {
                          "key": "from",
                          "value": "2026-10-12T08:00:00Z"
                        },
                        {
                          "key": "to",
                          "value": "2026-10-19T08:00:00Z"
                        },
                        {
                          "key": "includeCommissionEstimate",
                          "value": "true"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"from\": \"2026-10-12T08:00:00Z\",\n    \"to\": \"2026-10-19T08:00:00Z\",\n    \"totalDepositAmount\": 2500.5,\n    \"totalWithdrawalAmount\": 800,\n    \"netAmount\": 1700.5,\n    \"depositCount\": 3,\n    \"withdrawalCount\": 1,\n    \"transactionCount\": 4,\n    \"commissionEstimateTotal\": 43.5,\n    \"commissionEstimateStatus\": \"AVAILABLE\"\n  }\n}"
                },
                {
                  "name": "400 statusKinds 不合法",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/reports/summary?statusKinds=DONE",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "reports",
                        "summary"
                      ],
                      "query": [
                        {
                          "key": "statusKinds",
                          "value": "DONE"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40005,\n  \"message\": \"field validate failed (40005)\",\n  \"data\": [\n    \"statusKinds: invalid\"\n  ]\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "GET /cardholder/reports/transactions — 查詢 Cardholder App 交易列表",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/reports/transactions",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "reports",
                    "transactions"
                  ],
                  "query": [
                    {
                      "key": "scope",
                      "value": "{{scope}}",
                      "disabled": true
                    },
                    {
                      "key": "paymentChannelCardId",
                      "value": "{{paymentChannelCardId}}",
                      "disabled": true
                    },
                    {
                      "key": "from",
                      "value": "{{from}}",
                      "disabled": true
                    },
                    {
                      "key": "to",
                      "value": "{{to}}",
                      "disabled": true
                    },
                    {
                      "key": "types",
                      "value": "{{types}}",
                      "disabled": true,
                      "description": "可重複加入同名 query parameter。"
                    },
                    {
                      "key": "statusKinds",
                      "value": "{{statusKinds}}",
                      "disabled": true,
                      "description": "可重複加入同名 query parameter。"
                    },
                    {
                      "key": "pageNumber",
                      "value": "{{pageNumber}}",
                      "disabled": true
                    },
                    {
                      "key": "pageSize",
                      "value": "{{pageSize}}",
                      "disabled": true
                    },
                    {
                      "key": "includeCommissionEstimate",
                      "value": "{{includeCommissionEstimate}}",
                      "disabled": true
                    }
                  ]
                },
                "description": "未帶 types 時只列入款與取款；一訂單一列，未要求佣金時依 eventTime 由新到舊，包含 to；欄位與 enum 同 DEV legacy。includeCommissionEstimate=true 時 commissionEstimate 為含本筆與不含本筆的同方向月累計結果差額（ADR-0172），不可計算時為 null、commissionEstimateStatus=UNAVAILABLE，且同 DEV 依佣金降冪（null 最後）、eventTime 降冪排序後分頁；非成功 Order、BALANCE_CHANGE 或 includeCommissionEstimate=false 時兩欄皆為 null。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderReportController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 交易清單",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/reports/transactions?includeCommissionEstimate=true",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "reports",
                        "transactions"
                      ],
                      "query": [
                        {
                          "key": "includeCommissionEstimate",
                          "value": "true"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"records\": [\n      {\n        \"activityId\": \"WDR-8\",\n        \"paymentChannelCardId\": 32,\n        \"type\": \"WITHDRAWAL\",\n        \"statusKind\": \"SUCCESS\",\n        \"eventTime\": \"2026-10-19T07:20:00Z\",\n        \"amount\": -800.25,\n        \"actualAmount\": -800.25,\n        \"orderNo\": \"W202610190002\",\n        \"summary\": \"THB 800.25 to Receiver B\",\n        \"commissionEstimate\": 12.5,\n        \"commissionEstimateStatus\": \"AVAILABLE\"\n      },\n      {\n        \"activityId\": \"DEP-7\",\n        \"paymentChannelCardId\": 31,\n        \"type\": \"DEPOSIT\",\n        \"statusKind\": \"PENDING\",\n        \"eventTime\": \"2026-10-19T07:10:00Z\",\n        \"amount\": 100,\n        \"actualAmount\": null,\n        \"orderNo\": \"D202610190001\",\n        \"summary\": \"THB 100 from Payer A\",\n        \"commissionEstimate\": null,\n        \"commissionEstimateStatus\": null\n      }\n    ],\n    \"total\": 2,\n    \"size\": 20,\n    \"number\": 0\n  }\n}"
                },
                {
                  "name": "400 types 不合法",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/reports/transactions?types=REFUND",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "reports",
                        "transactions"
                      ],
                      "query": [
                        {
                          "key": "types",
                          "value": "REFUND"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40005,\n  \"message\": \"field validate failed (40005)\",\n  \"data\": [\n    \"types: invalid\"\n  ]\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "GET /cardholder/reports/transactions/{activityId} — 查詢 Cardholder App 交易明細",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/reports/transactions/{{activityId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "reports",
                    "transactions",
                    "{{activityId}}"
                  ],
                  "query": [
                    {
                      "key": "scope",
                      "value": "{{scope}}",
                      "disabled": true
                    },
                    {
                      "key": "paymentChannelCardId",
                      "value": "{{paymentChannelCardId}}",
                      "disabled": true
                    },
                    {
                      "key": "from",
                      "value": "{{from}}",
                      "disabled": true
                    },
                    {
                      "key": "to",
                      "value": "{{to}}",
                      "disabled": true
                    },
                    {
                      "key": "types",
                      "value": "{{types}}",
                      "disabled": true,
                      "description": "可重複加入同名 query parameter。"
                    },
                    {
                      "key": "statusKinds",
                      "value": "{{statusKinds}}",
                      "disabled": true,
                      "description": "可重複加入同名 query parameter。"
                    },
                    {
                      "key": "pageNumber",
                      "value": "{{pageNumber}}",
                      "disabled": true
                    },
                    {
                      "key": "pageSize",
                      "value": "{{pageSize}}",
                      "disabled": true
                    },
                    {
                      "key": "includeCommissionEstimate",
                      "value": "{{includeCommissionEstimate}}",
                      "disabled": true
                    }
                  ]
                },
                "description": "activityId 為列表回傳的 `DEP-<id>`、`WDR-<id>` 或 `BAL-<id>`；在同一 scope、時間視窗與 filters 內查找（未帶 types 時三種 type 都找，同 DEV），格式不符回 FIELD_VALIDATE_FAILED 400，找不到或 CARD scope 的 paymentChannelCardId 不可見回 DATA_NOT_EXISTS 404。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderReportController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 交易明細",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/reports/transactions/BAL-7",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "reports",
                        "transactions",
                        "BAL-7"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"activityId\": \"BAL-7\",\n    \"paymentChannelCardId\": 31,\n    \"type\": \"BALANCE_CHANGE\",\n    \"statusKind\": \"ADJUSTED\",\n    \"eventTime\": \"2026-10-19T07:10:00Z\",\n    \"amount\": -20,\n    \"actualAmount\": null,\n    \"orderNo\": \"BAL-7\",\n    \"summary\": \"Manual balance adjustment\",\n    \"commissionEstimate\": null,\n    \"commissionEstimateStatus\": null\n  }\n}"
                },
                {
                  "name": "404 交易不存在（同 sourceId 不同 type）",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/reports/transactions/DEP-7",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "reports",
                        "transactions",
                        "DEP-7"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40002,\n  \"message\": \"data not exists (40002)\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "GET /cardholder/reports/export — 匯出 Cardholder App 交易 CSV",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/reports/export",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "reports",
                    "export"
                  ],
                  "query": [
                    {
                      "key": "scope",
                      "value": "{{scope}}",
                      "disabled": true
                    },
                    {
                      "key": "paymentChannelCardId",
                      "value": "{{paymentChannelCardId}}",
                      "disabled": true
                    },
                    {
                      "key": "from",
                      "value": "{{from}}",
                      "disabled": true
                    },
                    {
                      "key": "to",
                      "value": "{{to}}",
                      "disabled": true
                    },
                    {
                      "key": "types",
                      "value": "{{types}}",
                      "disabled": true,
                      "description": "可重複加入同名 query parameter。"
                    },
                    {
                      "key": "statusKinds",
                      "value": "{{statusKinds}}",
                      "disabled": true,
                      "description": "可重複加入同名 query parameter。"
                    },
                    {
                      "key": "pageNumber",
                      "value": "{{pageNumber}}",
                      "disabled": true
                    },
                    {
                      "key": "pageSize",
                      "value": "{{pageSize}}",
                      "disabled": true
                    },
                    {
                      "key": "includeCommissionEstimate",
                      "value": "{{includeCommissionEstimate}}",
                      "disabled": true
                    }
                  ]
                },
                "description": "回傳 text/csv; charset=UTF-8（UTF-8 無 BOM、行尾 LF），不包 ResponseVo；欄位同 legacy，依序為 activityId,paymentChannelCardId,type,statusKind,eventTime,amount,orderNo,summary,actualAmount。列與同條件的 reports/transactions 相同（一訂單一列，statusKinds 為 DEV 值）；未帶 types 時只匯出入款與取款。amount 取款為負（BO canonical plain decimal，不補尾端 0，與 reports/transactions 同值），開頭為 =、+、-、@ 的值加 ' 防公式；actualAmount 未結算為空。檔名 cardholder-report-transactions-<UTC yyyyMMddHHmmss>.csv。錯誤另含 FIELD_VALIDATE_FAILED 400（超過 10000 列，data 為空 list）、DEPENDENCY_UNAVAILABLE 503（BO 無法連線）；錯誤一律為 JSON envelope，Accept 只有 text/csv 時亦同。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderReportController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 匯出 CSV",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/reports/export?scope=CARD&paymentChannelCardId=9001&statusKinds=SUCCESS&statusKinds=REVIEW",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "reports",
                        "export"
                      ],
                      "query": [
                        {
                          "key": "scope",
                          "value": "CARD"
                        },
                        {
                          "key": "paymentChannelCardId",
                          "value": "9001"
                        },
                        {
                          "key": "statusKinds",
                          "value": "SUCCESS"
                        },
                        {
                          "key": "statusKinds",
                          "value": "REVIEW"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "text",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "text/csv; charset=UTF-8"
                    },
                    {
                      "key": "Content-Disposition",
                      "value": "attachment; filename=\"cardholder-report-transactions-20261019080000.csv\""
                    }
                  ],
                  "cookie": [],
                  "body": "activityId,paymentChannelCardId,type,statusKind,eventTime,amount,orderNo,summary,actualAmount\nDEP-77,9001,DEPOSIT,SUCCESS,2026-06-20T01:02:03Z,100.00,ORD-DEP-77,summary DEP-77,95.00\nWDR-88,9001,WITHDRAWAL,SUCCESS,2026-06-20T01:02:03Z,'-50.00,ORD-WDR-88,summary WDR-88,\n"
                },
                {
                  "name": "400 from 超過 180 天",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/reports/export?from=2026-04-01T00:00:00Z",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "reports",
                        "export"
                      ],
                      "query": [
                        {
                          "key": "from",
                          "value": "2026-04-01T00:00:00Z"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40005,\n  \"message\": \"field validate failed (40005)\",\n  \"data\": [\n    \"from: must be within past 180 days\"\n  ]\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/reports/export?scope=CARD&paymentChannelCardId=9001&statusKinds=SUCCESS&statusKinds=REVIEW",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "reports",
                        "export"
                      ],
                      "query": [
                        {
                          "key": "scope",
                          "value": "CARD"
                        },
                        {
                          "key": "paymentChannelCardId",
                          "value": "9001"
                        },
                        {
                          "key": "statusKinds",
                          "value": "SUCCESS"
                        },
                        {
                          "key": "statusKinds",
                          "value": "REVIEW"
                        }
                      ]
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code === 200) {",
                      "  pm.test(\"CSV 匯出：Content-Type 為 text/csv 且 body 非空\", function () {",
                      "    pm.expect(String(pm.response.headers.get(\"Content-Type\")).indexOf(\"text/csv\") === 0, \"Content-Type 須為 text/csv\").to.be.true;",
                      "    pm.expect(pm.response.text().length > 0, \"CSV body 不得為空\").to.be.true;",
                      "  });",
                      "} else {",
                      "  pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "    const body = pm.response.json();",
                      "    pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "    pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "    pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "  });",
                      "  pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "    const body = pm.response.json();",
                      "    const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "    pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "  });",
                      "}"
                    ]
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "Withdrawal",
      "item": [
        {
          "name": "Read",
          "item": [
            {
              "name": "GET /cardholder/withdrawals/pending — 查詢 Cardholder App 待處理取款訂單",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/withdrawals/pending",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "withdrawals",
                    "pending"
                  ],
                  "query": []
                },
                "description": "回傳目前指派給本人、狀態為 ASSIGNED、PROCESSING、PENDING_VERIFICATION 或 PENDING_REVIEW 的取款訂單清單（不分頁，依訂單 id 由小到大），含出款所需的收款人帳號與戶名。目前指派的 attempt 缺失的那筆不列出；指派卡片 Bank 主檔缺失時 assignedBankCode、assignedBankName 為 null、該筆照列；指派卡片帳號無法解密時 assignedCardAccountNumber 為 null。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderWithdrawalController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 待處理取款",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/withdrawals/pending",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "withdrawals",
                        "pending"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": [\n    {\n      \"withdrawalOrderId\": 9,\n      \"orderNo\": \"WDR202610190000009\",\n      \"agentOrderId\": null,\n      \"agentId\": null,\n      \"agentPrefix\": null,\n      \"orderStatus\": \"ASSIGNED\",\n      \"withdrawalOrderType\": null,\n      \"finalSource\": null,\n      \"failureCategory\": null,\n      \"failureCode\": null,\n      \"failureReason\": null,\n      \"rejectReason\": null,\n      \"amount\": 1000,\n      \"proofSubmittedAmount\": null,\n      \"actualAmount\": null,\n      \"currencyId\": null,\n      \"currencyCode\": \"THB\",\n      \"currencyName\": null,\n      \"paymentChannelId\": null,\n      \"paymentChannelCode\": null,\n      \"paymentChannelName\": null,\n      \"sourcePaymentChannelCardId\": null,\n      \"sourceBankId\": null,\n      \"sourceBankCode\": null,\n      \"sourceBankName\": null,\n      \"sourceCardAccountNumber\": null,\n      \"sourceCardAccountName\": null,\n      \"assignedPaymentChannelCardId\": 45,\n      \"assignedBankId\": null,\n      \"assignedBankCode\": \"KBANK\",\n      \"assignedBankName\": \"Kasikorn Bank\",\n      \"assignedCardAccountNumber\": \"1234567890\",\n      \"assignedCardAccountName\": \"Alice\",\n      \"receiverBankCode\": \"SCB\",\n      \"receiverAccount\": \"55667788\",\n      \"receiverName\": \"收款人\",\n      \"proofFileId\": null,\n      \"expireTime\": \"2026-10-19T08:10:00Z\",\n      \"assignedTime\": \"2026-10-19T08:00:00Z\",\n      \"completedTime\": null,\n      \"createTime\": \"2026-10-19T07:59:00Z\",\n      \"modifyTime\": null\n    }\n  ]\n}"
                },
                {
                  "name": "401 未帶或無效 token",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/withdrawals/pending",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "withdrawals",
                        "pending"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "noauth"
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40000,\n  \"message\": \"no authentication\",\n  \"data\": null\n}"
                },
                {
                  "name": "503 BO 不可用",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/withdrawals/pending",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "withdrawals",
                        "pending"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Service Unavailable",
                  "code": 503,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40044,\n  \"message\": \"dependency unavailable\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "GET /cardholder/withdrawals/{id} — 查詢 Cardholder App 取款訂單明細",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/withdrawals/{{id}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "withdrawals",
                    "{{id}}"
                  ],
                  "query": []
                },
                "description": "查詢本人目前指派的單一取款訂單。特有錯誤：DATA_NOT_EXISTS 404（他人、歷史指派、已終結或不存在的訂單；目前指派的 attempt 缺失同樣回 404）；指派卡片 Bank 主檔缺失時照回明細、assignedBankCode、assignedBankName 為 null。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderWithdrawalController.java\n\nCardholder access token\n\nRead-only request。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 取款明細",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/withdrawals/9",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "withdrawals",
                        "9"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"withdrawalOrderId\": 9,\n    \"orderNo\": \"WDR202610190000009\",\n    \"agentOrderId\": null,\n    \"agentId\": null,\n    \"agentPrefix\": null,\n    \"orderStatus\": \"ASSIGNED\",\n    \"withdrawalOrderType\": null,\n    \"finalSource\": null,\n    \"failureCategory\": null,\n    \"failureCode\": null,\n    \"failureReason\": null,\n    \"rejectReason\": null,\n    \"amount\": 1000,\n    \"proofSubmittedAmount\": null,\n    \"actualAmount\": null,\n    \"currencyId\": null,\n    \"currencyCode\": \"THB\",\n    \"currencyName\": null,\n    \"paymentChannelId\": null,\n    \"paymentChannelCode\": null,\n    \"paymentChannelName\": null,\n    \"sourcePaymentChannelCardId\": null,\n    \"sourceBankId\": null,\n    \"sourceBankCode\": null,\n    \"sourceBankName\": null,\n    \"sourceCardAccountNumber\": null,\n    \"sourceCardAccountName\": null,\n    \"assignedPaymentChannelCardId\": 45,\n    \"assignedBankId\": null,\n    \"assignedBankCode\": \"KBANK\",\n    \"assignedBankName\": \"Kasikorn Bank\",\n    \"assignedCardAccountNumber\": \"1234567890\",\n    \"assignedCardAccountName\": \"Alice\",\n    \"receiverBankCode\": \"SCB\",\n    \"receiverAccount\": \"55667788\",\n    \"receiverName\": \"收款人\",\n    \"proofFileId\": null,\n    \"expireTime\": \"2026-10-19T08:10:00Z\",\n    \"assignedTime\": \"2026-10-19T08:00:00Z\",\n    \"completedTime\": null,\n    \"createTime\": \"2026-10-19T07:59:00Z\",\n    \"modifyTime\": null\n  }\n}"
                },
                {
                  "name": "404 非本人、歷史或不存在的訂單",
                  "originalRequest": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/withdrawals/9",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "withdrawals",
                        "9"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40002,\n  \"message\": \"data not exists (40002)\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          "name": "Mutations",
          "item": [
            {
              "name": "POST /cardholder/withdrawals/{id}/accept — Cardholder App 接受取款訂單",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/withdrawals/{{id}}/accept",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "withdrawals",
                    "{{id}}",
                    "accept"
                  ],
                  "query": []
                },
                "description": "ASSIGNED 且未逾期時轉為 PROCESSING；期限不延長。同一訂單重送 accept 回首次結果。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderWithdrawalController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 接受取款",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/withdrawals/9/accept",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "withdrawals",
                        "9",
                        "accept"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"withdrawalOrderId\": 9,\n    \"orderNo\": \"WDR202610190000009\",\n    \"agentOrderId\": null,\n    \"agentId\": null,\n    \"agentPrefix\": null,\n    \"orderStatus\": \"PROCESSING\",\n    \"withdrawalOrderType\": null,\n    \"finalSource\": null,\n    \"failureCategory\": null,\n    \"failureCode\": null,\n    \"failureReason\": null,\n    \"rejectReason\": null,\n    \"amount\": 1000,\n    \"proofSubmittedAmount\": null,\n    \"actualAmount\": null,\n    \"currencyId\": null,\n    \"currencyCode\": \"THB\",\n    \"currencyName\": null,\n    \"paymentChannelId\": null,\n    \"paymentChannelCode\": null,\n    \"paymentChannelName\": null,\n    \"sourcePaymentChannelCardId\": null,\n    \"sourceBankId\": null,\n    \"sourceBankCode\": null,\n    \"sourceBankName\": null,\n    \"sourceCardAccountNumber\": null,\n    \"sourceCardAccountName\": null,\n    \"assignedPaymentChannelCardId\": 45,\n    \"assignedBankId\": null,\n    \"assignedBankCode\": \"KBANK\",\n    \"assignedBankName\": \"Kasikorn Bank\",\n    \"assignedCardAccountNumber\": \"1234567890\",\n    \"assignedCardAccountName\": \"Alice\",\n    \"receiverBankCode\": \"SCB\",\n    \"receiverAccount\": \"55667788\",\n    \"receiverName\": \"收款人\",\n    \"proofFileId\": null,\n    \"expireTime\": null,\n    \"assignedTime\": \"2026-10-19T08:00:00Z\",\n    \"completedTime\": null,\n    \"createTime\": \"2026-10-19T07:59:00Z\",\n    \"modifyTime\": null\n  }\n}"
                },
                {
                  "name": "409 訂單狀態不允許",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/withdrawals/9/accept",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "withdrawals",
                        "9",
                        "accept"
                      ],
                      "query": []
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Conflict",
                  "code": 409,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40026,\n  \"message\": \"order status not allowed (40026)\",\n  \"data\": null\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "POST /cardholder/withdrawals/{id}/reject — Cardholder App 拒絕取款訂單",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/withdrawals/{{id}}/reject",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "withdrawals",
                    "{{id}}",
                    "reject"
                  ],
                  "query": []
                },
                "description": "轉為 PENDING_REVIEW，原因保存供 BO 審核（重派或轉人工由 BO 決定）；不推定未付款。同一訂單重送 reject 回首次結果。特有錯誤：FIELD_VALIDATE_FAILED 400（reason 缺漏或超過 500 字）。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderWithdrawalController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"reason\": \"{{reason}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 拒絕取款",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/withdrawals/9/reject",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "withdrawals",
                        "9",
                        "reject"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"reason\": \"帳戶餘額不足\"\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"withdrawalOrderId\": 9,\n    \"orderNo\": \"WDR202610190000009\",\n    \"agentOrderId\": null,\n    \"agentId\": null,\n    \"agentPrefix\": null,\n    \"orderStatus\": \"PENDING_REVIEW\",\n    \"withdrawalOrderType\": null,\n    \"finalSource\": null,\n    \"failureCategory\": null,\n    \"failureCode\": null,\n    \"failureReason\": null,\n    \"rejectReason\": \"帳戶餘額不足\",\n    \"amount\": 1000,\n    \"proofSubmittedAmount\": null,\n    \"actualAmount\": null,\n    \"currencyId\": null,\n    \"currencyCode\": \"THB\",\n    \"currencyName\": null,\n    \"paymentChannelId\": null,\n    \"paymentChannelCode\": null,\n    \"paymentChannelName\": null,\n    \"sourcePaymentChannelCardId\": null,\n    \"sourceBankId\": null,\n    \"sourceBankCode\": null,\n    \"sourceBankName\": null,\n    \"sourceCardAccountNumber\": null,\n    \"sourceCardAccountName\": null,\n    \"assignedPaymentChannelCardId\": 45,\n    \"assignedBankId\": null,\n    \"assignedBankCode\": \"KBANK\",\n    \"assignedBankName\": \"Kasikorn Bank\",\n    \"assignedCardAccountNumber\": \"1234567890\",\n    \"assignedCardAccountName\": \"Alice\",\n    \"receiverBankCode\": \"SCB\",\n    \"receiverAccount\": \"55667788\",\n    \"receiverName\": \"收款人\",\n    \"proofFileId\": null,\n    \"expireTime\": null,\n    \"assignedTime\": \"2026-10-19T08:00:00Z\",\n    \"completedTime\": null,\n    \"createTime\": \"2026-10-19T07:59:00Z\",\n    \"modifyTime\": null\n  }\n}"
                },
                {
                  "name": "400 body 不是合法 JSON",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/withdrawals/9/reject",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "withdrawals",
                        "9",
                        "reject"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "raw",
                      "raw": "{\"reason\": \"未收到",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40005,\n  \"message\": \"field validate failed\",\n  \"data\": [\n    \"body: malformed\"\n  ]\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            },
            {
              "name": "POST /cardholder/withdrawals/{id}/submitProof — Cardholder App 提交取款 proof",
              "request": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/cardholder/withdrawals/{{id}}/submitProof",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "cardholder",
                    "withdrawals",
                    "{{id}}",
                    "submitProof"
                  ],
                  "query": []
                },
                "description": "multipart/form-data：file（JPEG、PNG 或 WebP，不可為空，上限 10 MB）與 submittedAmount（大於 0、DECIMAL(30,10) 的 decimal text）。申報金額等於訂單金額、首次指派且 Payment Account 未凍結時自動結算為 COMPLETED；其餘為 PENDING_VERIFICATION（Payment Account 凍結時為 PENDING_REVIEW），由 BO 審核出款結果。每筆指派只能提交一次 proof；重送同金額回首次結果（含已自動結算的 COMPLETED，不重複結算），不同金額回 ORDER_STATUS_NOT_ALLOWED 409。\n\n來源：spay4-cardholder/src/main/java/com/sit/spay4/cardholder/controller/CardholderWithdrawalController.java\n\nCardholder access token\n\nMutation：僅可手動逐筆執行；不可使用 Collection Runner 自動鏈結。",
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "key": "file",
                      "type": "file",
                      "src": ""
                    },
                    {
                      "key": "submittedAmount",
                      "value": "{{submittedAmount}}",
                      "type": "text"
                    }
                  ]
                },
                "auth": {
                  "type": "bearer",
                  "bearer": [
                    {
                      "key": "token",
                      "value": "{{bearerToken}}",
                      "type": "string"
                    }
                  ]
                }
              },
              "response": [
                {
                  "name": "200 上傳轉帳憑證",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/withdrawals/9/submitProof",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "withdrawals",
                        "9",
                        "submitProof"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "key": "submittedAmount",
                          "value": "900.50",
                          "type": "text"
                        },
                        {
                          "key": "file",
                          "type": "file",
                          "src": "proof.png"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 2000,\n  \"message\": \"\",\n  \"data\": {\n    \"withdrawalOrderId\": 9,\n    \"orderNo\": \"WDR202610190000009\",\n    \"agentOrderId\": null,\n    \"agentId\": null,\n    \"agentPrefix\": null,\n    \"orderStatus\": \"PENDING_VERIFICATION\",\n    \"withdrawalOrderType\": null,\n    \"finalSource\": null,\n    \"failureCategory\": null,\n    \"failureCode\": null,\n    \"failureReason\": null,\n    \"rejectReason\": null,\n    \"amount\": 1000,\n    \"proofSubmittedAmount\": 900.5,\n    \"actualAmount\": null,\n    \"currencyId\": null,\n    \"currencyCode\": \"THB\",\n    \"currencyName\": null,\n    \"paymentChannelId\": null,\n    \"paymentChannelCode\": null,\n    \"paymentChannelName\": null,\n    \"sourcePaymentChannelCardId\": null,\n    \"sourceBankId\": null,\n    \"sourceBankCode\": null,\n    \"sourceBankName\": null,\n    \"sourceCardAccountNumber\": null,\n    \"sourceCardAccountName\": null,\n    \"assignedPaymentChannelCardId\": 45,\n    \"assignedBankId\": null,\n    \"assignedBankCode\": \"KBANK\",\n    \"assignedBankName\": \"Kasikorn Bank\",\n    \"assignedCardAccountNumber\": \"1234567890\",\n    \"assignedCardAccountName\": \"Alice\",\n    \"receiverBankCode\": \"SCB\",\n    \"receiverAccount\": \"55667788\",\n    \"receiverName\": \"收款人\",\n    \"proofFileId\": null,\n    \"expireTime\": null,\n    \"assignedTime\": \"2026-10-19T08:00:00Z\",\n    \"completedTime\": null,\n    \"createTime\": \"2026-10-19T07:59:00Z\",\n    \"modifyTime\": null\n  }\n}"
                },
                {
                  "name": "413 請求超過上傳上限",
                  "originalRequest": {
                    "method": "POST",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/cardholder/withdrawals/9/submitProof",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "cardholder",
                        "withdrawals",
                        "9",
                        "submitProof"
                      ],
                      "query": []
                    },
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "key": "submittedAmount",
                          "value": "100",
                          "type": "text"
                        },
                        {
                          "key": "file",
                          "type": "file",
                          "src": "proof.png"
                        }
                      ]
                    },
                    "auth": {
                      "type": "bearer",
                      "bearer": [
                        {
                          "key": "token",
                          "value": "{{bearerToken}}",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "status": "Payload Too Large",
                  "code": 413,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"code\": 40005,\n  \"message\": \"field validate failed\",\n  \"data\": [\n    \"request: exceeds upload limit\"\n  ]\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"ResponseVo 形狀：integer code、string message、data 欄位\", function () {",
                      "  const body = pm.response.json();",
                      "  pm.expect(Number.isInteger(body.code), \"code 須為 integer\").to.be.true;",
                      "  pm.expect(typeof body.message === \"string\", \"message 須為 string\").to.be.true;",
                      "  pm.expect(body !== null && Object.prototype.hasOwnProperty.call(body, \"data\"), \"須有 data 欄位（可為 null）\").to.be.true;",
                      "});",
                      "pm.test(\"HTTP status 與 code 配對：2xx 為 2000，其餘不是 2000\", function () {",
                      "  const body = pm.response.json();",
                      "  const success = pm.response.code >= 200 && pm.response.code < 300;",
                      "  pm.expect(success === (body.code === 2000), \"status \" + pm.response.code + \" 與 code \" + body.code + \" 不一致\").to.be.true;",
                      "});"
                    ]
                  }
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": ""
    },
    {
      "key": "bearerToken",
      "value": ""
    }
  ]
}
