{
  "issue": "#629",
  "flow": "B",
  "title": "OGP 建收款單 → Cardholder 確認（附憑證）→ callback 排入 outbox",
  "newmanVersion": "6.2.3",
  "sourceVersion": "68faee0f47e945ef8c1ef480584d313cb672f78b",
  "status": "passed",
  "startedAt": "2026-11-19T05:13:22.859Z",
  "finishedAt": "2026-11-19T05:13:43.930Z",
  "totals": {
    "steps": 19,
    "assertions": 51,
    "failures": 0
  },
  "receiver": {
    "kind": "CARDHOLDER",
    "ownership": "CARDHOLDER"
  },
  "terminal": {
    "orderStatus": "COMPLETED"
  },
  "outbox": {
    "id": 1,
    "eventType": "DEPOSIT_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": "b6f4a1f0-aa22-4bd0-bcef-7e5727caca86",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 2,
      "name": "建立 Agent",
      "collection": "BO",
      "method": "POST",
      "path": "/bo/v2/agents",
      "status": 200,
      "code": null,
      "requestId": "521f920d-2464-490e-aac6-e92ebfc7bee0",
      "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": "fe961fb6-e31d-4e3e-a803-a968dfd75345",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 4,
      "name": "建立 Supplier 與預設 Gateway",
      "collection": "BO",
      "method": "POST",
      "path": "/bo/v2/suppliers",
      "status": 200,
      "code": null,
      "requestId": "27b47605-6cd2-4378-8c9f-d834c3ea93f2",
      "assertions": {
        "total": 2,
        "failed": 0
      }
    },
    {
      "index": 5,
      "name": "查 Gateway 分配版本",
      "collection": "BO",
      "method": "GET",
      "path": "/bo/v2/agents/{{agentId}}/supplyGatewayAllocations",
      "status": 200,
      "code": 2000,
      "requestId": "56ea1f9a-cfb5-4372-a63b-e2d793c684de",
      "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": "992073d9-cf88-49ff-9d88-930f0352582f",
      "assertions": {
        "total": 2,
        "failed": 0
      }
    },
    {
      "index": 7,
      "name": "建立 Cardholder",
      "collection": "BO",
      "method": "POST",
      "path": "/bo/v2/supplyCardholders",
      "status": 201,
      "code": null,
      "requestId": "e20953fb-8200-4dae-bf39-4db0f6fc1821",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 8,
      "name": "CH 以臨時密碼登入",
      "collection": "CH",
      "method": "POST",
      "path": "/cardholder/auth/login",
      "status": 200,
      "code": 2000,
      "requestId": "852ef74e-a86b-4fee-aedb-d8ec9e13c2e1",
      "assertions": {
        "total": 4,
        "failed": 0
      }
    },
    {
      "index": 9,
      "name": "臨時密碼 token 不能讀業務資料",
      "collection": "CH",
      "method": "GET",
      "path": "/cardholder/deposits/pending",
      "status": 403,
      "code": 40001,
      "requestId": "c11c98bf-6dd4-4141-8741-3a9b7d213fbd",
      "assertions": {
        "total": 2,
        "failed": 0
      }
    },
    {
      "index": 10,
      "name": "CH 變更密碼取得正式 token",
      "collection": "CH",
      "method": "POST",
      "path": "/cardholder/auth/changePassword",
      "status": 200,
      "code": 2000,
      "requestId": "990c222c-334d-4d35-968c-53c87ad2cdcb",
      "assertions": {
        "total": 3,
        "failed": 0
      }
    },
    {
      "index": 11,
      "name": "建立 Payment Account Application",
      "collection": "BO",
      "method": "POST",
      "path": "/bo/v2/paymentAccountApplications",
      "status": 201,
      "code": 2000,
      "requestId": "67a4da16-672e-42d9-852f-de57fa29c605",
      "assertions": {
        "total": 2,
        "failed": 0
      }
    },
    {
      "index": 12,
      "name": "核准 Application",
      "collection": "BO",
      "method": "POST",
      "path": "/bo/v2/paymentAccountApplications/{{id}}/approve",
      "status": 200,
      "code": 2000,
      "requestId": "bdaa6f20-0a98-4fcf-b56f-b2a349b7613c",
      "assertions": {
        "total": 2,
        "failed": 0
      }
    },
    {
      "index": 13,
      "name": "開啟 DEPOSIT 方向",
      "collection": "BO",
      "method": "PUT",
      "path": "/bo/v2/paymentAccounts/{{id}}/directionAvailability",
      "status": 200,
      "code": 2000,
      "requestId": "b911b940-6340-4bdd-8efb-15ea6440eb12",
      "assertions": {
        "total": 2,
        "failed": 0
      }
    },
    {
      "index": 14,
      "name": "OGP 建收款單",
      "collection": "OGP",
      "method": "POST",
      "path": "/v1/agentApi/depositOrder/assign",
      "status": 200,
      "code": 2000,
      "requestId": "ae1bbfae-726d-4da2-8277-1d9c8df0b469",
      "assertions": {
        "total": 5,
        "failed": 0
      }
    },
    {
      "index": 15,
      "name": "CH 查待處理入款",
      "collection": "CH",
      "method": "GET",
      "path": "/cardholder/deposits/pending",
      "status": 200,
      "code": 2000,
      "requestId": "8dc9a76d-6b9f-4479-932b-570fbe83ef8d",
      "assertions": {
        "total": 3,
        "failed": 0
      }
    },
    {
      "index": 16,
      "name": "CH 確認入款並上傳憑證",
      "collection": "CH",
      "method": "POST",
      "path": "/cardholder/deposits/{{depositOrderId}}/confirm",
      "status": 200,
      "code": 2000,
      "requestId": "1211bba7-234e-4114-a8d5-9eb8f85ffac8",
      "assertions": {
        "total": 3,
        "failed": 0
      }
    },
    {
      "index": 17,
      "name": "OGP 查收款單終態",
      "collection": "OGP",
      "method": "GET",
      "path": "/v1/agentApi/depositOrder/{{agentOrderId}}",
      "status": 200,
      "code": 2000,
      "requestId": "4603ae77-defc-40f7-b632-97ea93fb7d1e",
      "assertions": {
        "total": 4,
        "failed": 0
      }
    },
    {
      "index": 18,
      "name": "查 callback outbox 列表",
      "collection": "BO",
      "method": "GET",
      "path": "/bo/v2/agentCallbackOutbox/page",
      "status": 200,
      "code": null,
      "requestId": "087a9468-a0e2-40d5-9235-a50921d6f6b0",
      "assertions": {
        "total": 3,
        "failed": 0
      }
    },
    {
      "index": 19,
      "name": "查 callback outbox 明細",
      "collection": "BO",
      "method": "GET",
      "path": "/bo/v2/agentCallbackOutbox/{{id}}",
      "status": 200,
      "code": null,
      "requestId": "41d19044-bf37-4fe9-bbae-fa2bcf68f0b9",
      "assertions": {
        "total": 7,
        "failed": 0
      }
    }
  ]
}
