{
  "issue": "#629",
  "flow": "A",
  "title": "OGP 同步 HOUSE 卡 → 帶 agentCardId 建收款單 → LINE 通知配對 → callback 排入 outbox",
  "newmanVersion": "6.2.3",
  "sourceVersion": "68faee0f47e945ef8c1ef480584d313cb672f78b",
  "status": "passed",
  "startedAt": "2026-11-19T05:11:22.626Z",
  "finishedAt": "2026-11-19T05:11:34.606Z",
  "totals": {
    "steps": 12,
    "assertions": 31,
    "failures": 0
  },
  "receiver": {
    "kind": "HOUSE",
    "ownership": "HOUSE"
  },
  "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": "3314299f-286e-4ac8-bf3d-82310ef350e2",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 2,
      "name": "建立 Agent",
      "collection": "BO",
      "method": "POST",
      "path": "/bo/v2/agents",
      "status": 200,
      "code": null,
      "requestId": "c787bfb3-b4ee-4507-b38a-3d5b5100e72d",
      "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": "70de54da-ce79-405c-a3e1-adb675fd6e87",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 4,
      "name": "建立 LINE notification source",
      "collection": "BO",
      "method": "POST",
      "path": "/bo/v2/notificationProviderSources",
      "status": 201,
      "code": null,
      "requestId": "14801f2a-8814-46e1-8269-366dd72c2085",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 5,
      "name": "啟用 LINE notification source",
      "collection": "BO",
      "method": "PUT",
      "path": "/bo/v2/notificationProviderSources/{{sourceId}}/status",
      "status": 204,
      "code": null,
      "requestId": "6fec0222-4071-4245-b1e8-aca7ae753687",
      "assertions": {
        "total": 0,
        "failed": 0
      }
    },
    {
      "index": 6,
      "name": "發行 Agent LINE credential",
      "collection": "BO",
      "method": "PUT",
      "path": "/bo/v2/agents/{{agentId}}/credentials/line/{{notificationProviderSourceId}}",
      "status": 200,
      "code": null,
      "requestId": "b5fd5bbd-6151-4de2-a1af-b09feb502299",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 7,
      "name": "OGP 同步 HOUSE 卡",
      "collection": "OGP",
      "method": "PUT",
      "path": "/v1/agentApi/houseCard",
      "status": 200,
      "code": 2000,
      "requestId": "ee707f1b-3ca5-402c-9f57-3f9329612f02",
      "assertions": {
        "total": 4,
        "failed": 0
      }
    },
    {
      "index": 8,
      "name": "OGP 建收款單",
      "collection": "OGP",
      "method": "POST",
      "path": "/v1/agentApi/depositOrder/assign",
      "status": 200,
      "code": 2000,
      "requestId": "e3ffeaec-4d2a-47d5-a5f1-2a4001f4f865",
      "assertions": {
        "total": 5,
        "failed": 0
      }
    },
    {
      "index": 9,
      "name": "Agent LINE 入款通知",
      "collection": "LINE",
      "method": "POST",
      "path": "/v2/external/transactions",
      "status": 200,
      "code": 2000,
      "requestId": "9e9dbc83-4abd-4c7a-ac64-5818ebf25f08",
      "assertions": {
        "total": 3,
        "failed": 0
      }
    },
    {
      "index": 10,
      "name": "OGP 查收款單終態",
      "collection": "OGP",
      "method": "GET",
      "path": "/v1/agentApi/depositOrder/{{agentOrderId}}",
      "status": 200,
      "code": 2000,
      "requestId": "af3d3fa6-640e-47e0-81ec-41b70a0e0b82",
      "assertions": {
        "total": 4,
        "failed": 0
      }
    },
    {
      "index": 11,
      "name": "查 callback outbox 列表",
      "collection": "BO",
      "method": "GET",
      "path": "/bo/v2/agentCallbackOutbox/page",
      "status": 200,
      "code": null,
      "requestId": "8c9e7b3a-df5b-4659-a649-c2effcf269c0",
      "assertions": {
        "total": 3,
        "failed": 0
      }
    },
    {
      "index": 12,
      "name": "查 callback outbox 明細",
      "collection": "BO",
      "method": "GET",
      "path": "/bo/v2/agentCallbackOutbox/{{id}}",
      "status": 200,
      "code": null,
      "requestId": "cdea6ba8-cf8a-40b1-9547-5a6b6909af67",
      "assertions": {
        "total": 7,
        "failed": 0
      }
    }
  ]
}
