{
  "issue": "#629",
  "flow": "C",
  "title": "OGP 建付款單 → Cardholder 接單提交憑證 → BO 結算 → callback 排入 outbox",
  "newmanVersion": "6.2.3",
  "sourceVersion": "68faee0f47e945ef8c1ef480584d313cb672f78b",
  "status": "passed",
  "startedAt": "2026-11-19T05:15:26.690Z",
  "finishedAt": "2026-11-19T05:15:55.099Z",
  "totals": {
    "steps": 24,
    "assertions": 57,
    "failures": 0
  },
  "receiver": {
    "kind": "CARDHOLDER",
    "ownership": null
  },
  "terminal": {
    "orderStatus": "COMPLETED"
  },
  "outbox": {
    "id": 1,
    "eventType": "WITHDRAWAL_COMPLETED",
    "payloadChecked": [
      "eventType",
      "agentOrderId",
      "orderNo",
      "orderStatus",
      "actualAmount"
    ]
  },
  "steps": [
    {
      "index": 1,
      "name": "Superadmin 登入",
      "collection": "BO",
      "method": "POST",
      "path": "/public/v2/login",
      "status": 200,
      "code": 2000,
      "requestId": "e26b99ae-2533-4693-b687-82d63b517dcd",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 2,
      "name": "建立 Agent",
      "collection": "BO",
      "method": "POST",
      "path": "/bo/v2/agents",
      "status": 200,
      "code": null,
      "requestId": "b9efaffd-79de-46d6-b962-04dd8c7c85a2",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 3,
      "name": "發行 Agent API credential",
      "collection": "BO",
      "method": "PUT",
      "path": "/bo/v2/agents/{{agentId}}/credentials/externalOrderApi",
      "status": 200,
      "code": null,
      "requestId": "5ccdadf5-8c8a-444b-921f-2685981394d0",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 4,
      "name": "建立 Supplier 與預設 Gateway",
      "collection": "BO",
      "method": "POST",
      "path": "/bo/v2/suppliers",
      "status": 200,
      "code": null,
      "requestId": "e53f6ea0-017f-4968-ac30-0c8dcb6b9c43",
      "assertions": {
        "total": 2,
        "failed": 0
      }
    },
    {
      "index": 5,
      "name": "查 Gateway 分配版本",
      "collection": "BO",
      "method": "GET",
      "path": "/bo/v2/agents/{{agentId}}/supplyGatewayAllocations",
      "status": 200,
      "code": 2000,
      "requestId": "f89f5d70-03c1-4c41-8cc6-6345252fbc66",
      "assertions": {
        "total": 3,
        "failed": 0
      }
    },
    {
      "index": 6,
      "name": "Agent 分配 Gateway",
      "collection": "BO",
      "method": "PUT",
      "path": "/bo/v2/agents/{{agentId}}/supplyGatewayAllocations/{{gatewayId}}",
      "status": 200,
      "code": 2000,
      "requestId": "f4614bf6-5960-4607-99b9-09a834d2b640",
      "assertions": {
        "total": 2,
        "failed": 0
      }
    },
    {
      "index": 7,
      "name": "建立 Cardholder",
      "collection": "BO",
      "method": "POST",
      "path": "/bo/v2/supplyCardholders",
      "status": 201,
      "code": null,
      "requestId": "04fe827a-6638-417d-9c35-2cc4490534d0",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 8,
      "name": "CH 以臨時密碼登入",
      "collection": "CH",
      "method": "POST",
      "path": "/cardholder/auth/login",
      "status": 200,
      "code": 2000,
      "requestId": "941b67d7-cae3-4881-be3f-f0b9e19f1d85",
      "assertions": {
        "total": 4,
        "failed": 0
      }
    },
    {
      "index": 9,
      "name": "臨時密碼 token 不能讀業務資料",
      "collection": "CH",
      "method": "GET",
      "path": "/cardholder/withdrawals/pending",
      "status": 403,
      "code": 40001,
      "requestId": "a66ec2f1-def7-410f-95c8-db85c8cc2a99",
      "assertions": {
        "total": 2,
        "failed": 0
      }
    },
    {
      "index": 10,
      "name": "CH 變更密碼取得正式 token",
      "collection": "CH",
      "method": "POST",
      "path": "/cardholder/auth/changePassword",
      "status": 200,
      "code": 2000,
      "requestId": "2321d744-06b3-4386-9141-20df0bcf9fbd",
      "assertions": {
        "total": 3,
        "failed": 0
      }
    },
    {
      "index": 11,
      "name": "建立 Payment Account Application",
      "collection": "BO",
      "method": "POST",
      "path": "/bo/v2/paymentAccountApplications",
      "status": 201,
      "code": 2000,
      "requestId": "713dcc53-9d97-4da4-9645-2f277cc2a36c",
      "assertions": {
        "total": 2,
        "failed": 0
      }
    },
    {
      "index": 12,
      "name": "核准 Application",
      "collection": "BO",
      "method": "POST",
      "path": "/bo/v2/paymentAccountApplications/{{id}}/approve",
      "status": 200,
      "code": 2000,
      "requestId": "6982be07-ce9e-4245-b04f-64649d834ca7",
      "assertions": {
        "total": 2,
        "failed": 0
      }
    },
    {
      "index": 13,
      "name": "開啟 WITHDRAWAL 方向",
      "collection": "BO",
      "method": "PUT",
      "path": "/bo/v2/paymentAccounts/{{id}}/directionAvailability",
      "status": 200,
      "code": 2000,
      "requestId": "4e7f0471-4985-4cc5-b4b9-c3ab4de7c95c",
      "assertions": {
        "total": 2,
        "failed": 0
      }
    },
    {
      "index": 14,
      "name": "調整 Payment Account 餘額",
      "collection": "BO",
      "method": "POST",
      "path": "/bo/v2/paymentAccounts/{{id}}/balanceAdjustments",
      "status": 200,
      "code": 2000,
      "requestId": "c54506d6-915d-4690-a9c1-3dbf53175546",
      "assertions": {
        "total": 2,
        "failed": 0
      }
    },
    {
      "index": 15,
      "name": "OGP 建付款單",
      "collection": "OGP",
      "method": "POST",
      "path": "/v1/agentApi/withdrawalOrder",
      "status": 200,
      "code": 2000,
      "requestId": "73b384a3-f9b7-4c94-bafa-9c862f704b0d",
      "assertions": {
        "total": 3,
        "failed": 0
      }
    },
    {
      "index": 16,
      "name": "CH 查待處理取款",
      "collection": "CH",
      "method": "GET",
      "path": "/cardholder/withdrawals/pending",
      "status": 200,
      "code": 2000,
      "requestId": "dca43523-4bb0-4249-b1ce-c04c3f2699c4",
      "assertions": {
        "total": 3,
        "failed": 0
      }
    },
    {
      "index": 17,
      "name": "CH 接單",
      "collection": "CH",
      "method": "POST",
      "path": "/cardholder/withdrawals/{{id}}/accept",
      "status": 200,
      "code": 2000,
      "requestId": "d9217581-66be-488f-8594-b7b317c23afd",
      "assertions": {
        "total": 3,
        "failed": 0
      }
    },
    {
      "index": 18,
      "name": "CH 提交取款憑證",
      "collection": "CH",
      "method": "POST",
      "path": "/cardholder/withdrawals/{{id}}/submitProof",
      "status": 200,
      "code": 2000,
      "requestId": "8e66f38d-4d17-4c77-8931-15b712c6c8ef",
      "assertions": {
        "total": 3,
        "failed": 0
      }
    },
    {
      "index": 19,
      "name": "BO 查付款單明細",
      "collection": "BO",
      "method": "GET",
      "path": "/bo/v2/withdrawalOrders/{{id}}",
      "status": 200,
      "code": null,
      "requestId": "41d9155d-d319-48a8-a5f1-b68b8e13f754",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 20,
      "name": "BO 查付款憑證",
      "collection": "BO",
      "method": "GET",
      "path": "/bo/v2/withdrawalOrders/{{id}}/evidence",
      "status": 200,
      "code": null,
      "requestId": "a19507c6-6e0e-4352-b98c-711e21296be5",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 21,
      "name": "BO 結算付款單",
      "collection": "BO",
      "method": "POST",
      "path": "/bo/v2/withdrawalOrders/{{id}}/settle",
      "status": 200,
      "code": null,
      "requestId": "aef23b49-44aa-4705-b5c9-4c210a0c0a2b",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 22,
      "name": "OGP 查付款單終態",
      "collection": "OGP",
      "method": "GET",
      "path": "/v1/agentApi/withdrawalOrder/{{agentOrderId}}",
      "status": 200,
      "code": 2000,
      "requestId": "a9fc75e6-50d2-4264-bc79-b2acde9c1f9a",
      "assertions": {
        "total": 4,
        "failed": 0
      }
    },
    {
      "index": 23,
      "name": "查 callback outbox 列表",
      "collection": "BO",
      "method": "GET",
      "path": "/bo/v2/agentCallbackOutbox/page",
      "status": 200,
      "code": null,
      "requestId": "18833a95-09b3-4a1a-a593-4fa45a45e78c",
      "assertions": {
        "total": 3,
        "failed": 0
      }
    },
    {
      "index": 24,
      "name": "查 callback outbox 明細",
      "collection": "BO",
      "method": "GET",
      "path": "/bo/v2/agentCallbackOutbox/{{id}}",
      "status": 200,
      "code": null,
      "requestId": "d9ab60fd-2450-43cf-bf2e-1d297f493f87",
      "assertions": {
        "total": 7,
        "failed": 0
      }
    }
  ]
}
