{
  "issue": "#629",
  "flow": "D",
  "title": "OGP HOUSE 卡同步 → 建收款單 → LINE 配對",
  "newmanVersion": "6.2.3",
  "sourceVersion": "68faee0f47e945ef8c1ef480584d313cb672f78b",
  "status": "passed",
  "startedAt": "2026-11-19T05:17:58.825Z",
  "finishedAt": "2026-11-19T05:18:10.138Z",
  "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": "1cae096d-1741-4f7a-9971-decbb29ea78f",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 2,
      "name": "建立 Agent",
      "collection": "BO",
      "method": "POST",
      "path": "/bo/v2/agents",
      "status": 200,
      "code": null,
      "requestId": "beb8e0d7-9b26-4c1f-bbef-343725287ed2",
      "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": "af0094f3-3563-4266-81f8-bb32d2df91c7",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 4,
      "name": "建立 LINE notification source",
      "collection": "BO",
      "method": "POST",
      "path": "/bo/v2/notificationProviderSources",
      "status": 201,
      "code": null,
      "requestId": "d084c859-2629-4038-bddc-ad81a4604422",
      "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": "c030fa66-1b77-450c-af4c-fe23a44935f1",
      "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": "a623d407-f06b-4df6-8504-cf922360e01d",
      "assertions": {
        "total": 1,
        "failed": 0
      }
    },
    {
      "index": 7,
      "name": "OGP 同步 HOUSE 卡",
      "collection": "OGP",
      "method": "PUT",
      "path": "/v1/agentApi/houseCard",
      "status": 200,
      "code": 2000,
      "requestId": "9898616d-3c2a-4699-8403-59f70dc074d2",
      "assertions": {
        "total": 4,
        "failed": 0
      }
    },
    {
      "index": 8,
      "name": "OGP 建收款單",
      "collection": "OGP",
      "method": "POST",
      "path": "/v1/agentApi/depositOrder/assign",
      "status": 200,
      "code": 2000,
      "requestId": "fa964184-6efc-493b-b727-b21dbeb37f0d",
      "assertions": {
        "total": 5,
        "failed": 0
      }
    },
    {
      "index": 9,
      "name": "Agent LINE 入款通知",
      "collection": "LINE",
      "method": "POST",
      "path": "/v2/external/transactions",
      "status": 200,
      "code": 2000,
      "requestId": "527d2b10-43bc-4339-97fc-d9e2f9771696",
      "assertions": {
        "total": 3,
        "failed": 0
      }
    },
    {
      "index": 10,
      "name": "OGP 查收款單終態",
      "collection": "OGP",
      "method": "GET",
      "path": "/v1/agentApi/depositOrder/{{agentOrderId}}",
      "status": 200,
      "code": 2000,
      "requestId": "9cdf696f-250b-40bd-b064-1f72f13048c7",
      "assertions": {
        "total": 4,
        "failed": 0
      }
    },
    {
      "index": 11,
      "name": "查 callback outbox 列表",
      "collection": "BO",
      "method": "GET",
      "path": "/bo/v2/agentCallbackOutbox/page",
      "status": 200,
      "code": null,
      "requestId": "f9a2316f-c80a-4eee-a9dd-2df03078dccb",
      "assertions": {
        "total": 3,
        "failed": 0
      }
    },
    {
      "index": 12,
      "name": "查 callback outbox 明細",
      "collection": "BO",
      "method": "GET",
      "path": "/bo/v2/agentCallbackOutbox/{{id}}",
      "status": 200,
      "code": null,
      "requestId": "fbe7daa8-b520-4fcf-b9f8-9c94373e5ea3",
      "assertions": {
        "total": 7,
        "failed": 0
      }
    }
  ]
}
