> ## Documentation Index
> Fetch the complete documentation index at: https://docs.groundtech.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhook payload examples

> Example JSON bodies for Portfolio Wallet webhook events.

Below are example JSON bodies for each event type. Headers like `Ground-Event-Id`, `Ground-Event-Type`, and `Ground-Signature` are sent separately.

## `portfolio_wallet.status_changed`

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "event": "portfolio_wallet.status_changed",
  "organizationId": "43c78f4f-44a7-45ff-a524-8f010f7a4c72",
  "walletId": "9d1a1c83-3a1c-4c14-9c5a-0c9a57a4a7db",
  "previousStatus": "idle",
  "status": "rebalance_active",
  "occurredAt": "2026-02-05T10:28:00.000Z"
}
```

## `portfolio_wallet.deposit.status_changed`

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "event": "portfolio_wallet.deposit.status_changed",
  "walletId": "9d1a1c83-3a1c-4c14-9c5a-0c9a57a4a7db",
  "observedAt": "2026-02-05T09:45:00.000Z",
  "deposit": {
    "id": "2a3ad0af-11b3-41d5-96c5-2b9d8799f1e2",
    "walletId": "9d1a1c83-3a1c-4c14-9c5a-0c9a57a4a7db",
    "amount": "50000.000000",
    "token": "usdc",
    "chain": "ethereum",
    "fromAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
    "txHash": "0x8e89b5f7d806b104aa149ca01d978043158932174d3704ad39823779502f8527",
    "status": "completed",
    "createdAt": "2026-02-05T09:40:00.000Z",
    "completedAt": "2026-02-05T09:45:00.000Z",
    "assetId": "4ab063cf-303d-4f62-80a6-5a142c1d2fdb"
  }
}
```

## `portfolio_wallet.withdrawal.status_changed`

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "event": "portfolio_wallet.withdrawal.status_changed",
  "walletId": "9d1a1c83-3a1c-4c14-9c5a-0c9a57a4a7db",
  "observedAt": "2026-02-05T11:05:00.000Z",
  "withdrawal": {
    "id": "11b17950-1f5c-4d36-8f0d-0f3d1d0c6a45",
    "amountRequestedUsd": "65000.000000",
    "amountPaidUsd": null,
    "amountPaidToPartnerUsd": null,
    "feeUsd": "0.000000",
    "destinationChain": "ethereum",
    "destinationAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
    "destinationToken": "usdc",
    "status": "processing",
    "failureReason": null,
    "createdAt": "2026-02-05T11:00:00.000Z",
    "completedAt": null,
    "legsCompleted": 0,
    "legsTotal": 1,
    "payoutLegs": [
      {
        "status": "pending_customer_approval",
        "amountUsd": "65000.000000",
        "from": {
          "assetId": "80f900d0-a4b8-4c97-bdc2-8e2ab5228e19",
          "kind": "yield_source",
          "label": "Morpho Gauntlet USDC Prime"
        },
        "to": {
          "kind": "external_payout",
          "id": "external_payout:ethereum:usdc",
          "label": "External payout (Ethereum)"
        },
        "startedAt": "2026-02-05T11:01:00.000Z",
        "completedAt": null,
        "stepsCompleted": 1,
        "stepsTotal": 2,
        "steps": [
          {
            "name": "Redeeming from Morpho Gauntlet USDC Prime",
            "chain": "ethereum",
            "state": "completed",
            "txKind": "yield_source_redeem",
            "stepKind": "yield_source_redeem",
            "startedAt": "2026-02-05T11:01:00.000Z",
            "completedAt": "2026-02-05T11:02:00.000Z",
            "cancelledAt": null,
            "stepOrdinal": 0,
            "protocolType": "morpho",
            "sequenceRole": "yield_redeem",
            "txHash": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1"
          },
          {
            "name": "Sending payout",
            "chain": "ethereum",
            "state": "pending_customer_approval",
            "txKind": "external_payout_transfer",
            "stepKind": "external_payout_transfer",
            "startedAt": "2026-02-05T11:03:00.000Z",
            "completedAt": null,
            "cancelledAt": null,
            "stepOrdinal": 1,
            "protocolType": "external_payout",
            "sequenceRole": "external_payout_transfer",
            "txHash": null
          }
        ]
      }
    ]
  }
}
```

## `portfolio_wallet.withdrawal.payout.status_changed`

`payout` contains the updated workflow leg from `withdrawal.payoutLegs`.

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "event": "portfolio_wallet.withdrawal.payout.status_changed",
  "walletId": "9d1a1c83-3a1c-4c14-9c5a-0c9a57a4a7db",
  "observedAt": "2026-02-05T11:05:00.000Z",
  "payout": {
    "status": "completed",
    "amountUsd": "65000.000000",
    "from": {
      "assetId": "80f900d0-a4b8-4c97-bdc2-8e2ab5228e19",
      "kind": "yield_source",
      "label": "Morpho Gauntlet USDC Prime"
    },
    "to": {
      "kind": "external_payout",
      "id": "external_payout:ethereum:usdc",
      "label": "External payout (Ethereum)"
    },
    "startedAt": "2026-02-05T11:01:00.000Z",
    "completedAt": "2026-02-05T11:05:00.000Z",
    "stepsCompleted": 2,
    "stepsTotal": 2,
    "steps": [
      {
        "name": "Redeeming from Morpho Gauntlet USDC Prime",
        "chain": "ethereum",
        "state": "completed",
        "txKind": "yield_source_redeem",
        "stepKind": "yield_source_redeem",
        "startedAt": "2026-02-05T11:01:00.000Z",
        "completedAt": "2026-02-05T11:02:00.000Z",
        "cancelledAt": null,
        "stepOrdinal": 0,
        "protocolType": "morpho",
        "sequenceRole": "yield_redeem",
        "txHash": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1"
      },
      {
        "name": "Sending payout",
        "chain": "ethereum",
        "state": "completed",
        "txKind": "external_payout_transfer",
        "stepKind": "external_payout_transfer",
        "startedAt": "2026-02-05T11:03:00.000Z",
        "completedAt": "2026-02-05T11:05:00.000Z",
        "cancelledAt": null,
        "stepOrdinal": 1,
        "protocolType": "external_payout",
        "sequenceRole": "external_payout_transfer",
        "txHash": "0xb4ec6ad9f2f2d75fb8df30c6e49b1f319138f0172d7bff7c402e7dcb7f017e8a"
      }
    ]
  }
}
```

## `portfolio_wallet.approval.status_changed`

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "event": "portfolio_wallet.approval.status_changed",
  "walletId": "9d1a1c83-3a1c-4c14-9c5a-0c9a57a4a7db",
  "observedAt": "2026-10-09T17:45:00.000Z",
  "approval": {
    "activityId": "01a11d9f-e6a3-7577-82a9-323801484c76",
    "activityKind": "stellar_trustline",
    "chain": "stellar_testnet",
    "status": "pending",
    "requestedAt": "2026-10-09T17:45:00.000Z",
    "validBefore": "2026-10-09T18:00:00.000Z",
    "resolvedAt": null
  }
}
```

## `portfolio_wallet.strategy.status_changed`

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "event": "portfolio_wallet.strategy.status_changed",
  "walletId": "9d1a1c83-3a1c-4c14-9c5a-0c9a57a4a7db",
  "observedAt": "2026-02-05T09:30:00.000Z",
  "strategy": {
    "walletId": "9d1a1c83-3a1c-4c14-9c5a-0c9a57a4a7db",
    "requestId": "6d74dc1c-f1b5-4f2c-8f33-9f7b9e27cd4b",
    "status": "completed",
    "allocations": {
      "usdc:crosschain": [
        {
          "assetId": "03389041-80ad-4dcf-8fe2-3536bcfe92db",
          "targetWeightPct": 40
        },
        {
          "assetId": "80f900d0-a4b8-4c97-bdc2-8e2ab5228e19",
          "targetWeightPct": 30
        },
        {
          "assetId": "6c6c676a-4111-472b-b29c-3e7e00d1a49c",
          "targetWeightPct": 30
        }
      ]
    },
    "createdAt": "2026-02-05T09:29:00.000Z"
  }
}
```

## `portfolio_wallet.rebalance.status_changed`

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "event": "portfolio_wallet.rebalance.status_changed",
  "walletId": "9d1a1c83-3a1c-4c14-9c5a-0c9a57a4a7db",
  "observedAt": "2026-02-05T10:30:00.000Z",
  "rebalance": {
    "id": "b6c7d8e9-1234-4abc-8def-0123456789ab",
    "status": "processing",
    "reason": "deposit_deployment",
    "amountUsd": "50000.000000",
    "legsCompleted": 0,
    "legsTotal": 2,
    "rebalanceLegs": [
      {
        "status": "processing",
        "amountUsd": "25000.000000",
        "from": {
          "assetId": "4ab063cf-303d-4f62-80a6-5a142c1d2fdb",
          "kind": "cash",
          "label": "Cash (Ethereum)"
        },
        "to": {
          "assetId": "80f900d0-a4b8-4c97-bdc2-8e2ab5228e19",
          "kind": "yield_source",
          "label": "Morpho Gauntlet USDC Prime"
        },
        "startedAt": "2026-02-05T10:29:00.000Z",
        "completedAt": null,
        "stepsCompleted": 0,
        "stepsTotal": 1,
        "steps": [
          {
            "name": "Depositing into Morpho Gauntlet USDC Prime",
            "chain": "ethereum",
            "state": "processing",
            "txKind": "yield_source_deposit",
            "stepKind": "yield_source_deposit",
            "startedAt": "2026-02-05T10:29:00.000Z",
            "completedAt": null,
            "cancelledAt": null,
            "stepOrdinal": 0,
            "protocolType": "morpho",
            "sequenceRole": "yield_deposit",
            "txHash": null
          }
        ]
      }
    ],
    "failureReason": null,
    "createdAt": "2026-02-05T10:28:00.000Z",
    "startedAt": "2026-02-05T10:29:00.000Z",
    "completedAt": null
  }
}
```

Transaction hashes, when available, are in payout rows; individual steps may
omit them. See [Webhook event payloads](https://docs.groundtech.co/v3/docs/portfolio-wallets/webhooks.md#event-payloads)
for execution details.

### Completed stock conversion

A settled stock leg adds `assetTrades`. Use its native quantities and cash amount to reconcile the conversion; the requested dollar allocation can differ from the actual spend. The following is a completed leg from `rebalance.rebalanceLegs` or `withdrawal.payoutLegs`:

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "status": "completed",
  "from": {
    "assetId": "4ab063cf-303d-4f62-80a6-5a142c1d2fdb",
    "kind": "cash",
    "label": "USDC Cash"
  },
  "to": {
    "assetId": "ffb32944-f0e4-45b3-ab70-5b4d29849778",
    "kind": "yield_source",
    "label": "QQQon"
  },
  "amountUsd": "727.557767",
  "startedAt": "2026-10-21T04:00:00.000Z",
  "completedAt": "2026-10-21T04:00:12.000Z",
  "stepsCompleted": 1,
  "stepsTotal": 1,
  "steps": [
    {
      "name": "Buying QQQon",
      "stepKind": "ondo_stock_buy",
      "sequenceRole": "asset_trade",
      "protocolType": "ondo",
      "stepOrdinal": 0,
      "chain": "ethereum",
      "txKind": "ondo_stock_buy",
      "state": "completed",
      "startedAt": "2026-10-21T04:00:00.000Z",
      "completedAt": "2026-10-21T04:00:12.000Z",
      "cancelledAt": null,
      "txHash": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1"
    }
  ],
  "assetTrades": [
    {
      "side": "buy",
      "kind": "stock",
      "assetId": "ffb32944-f0e4-45b3-ab70-5b4d29849778",
      "assetSymbol": "QQQon",
      "stockNativeUnits": "1000000000000000000",
      "cashNativeUnits": "727557767",
      "chain": "ethereum",
      "token": "usdc",
      "txHash": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    }
  ]
}
```

## `portfolio_wallet.risk.alert.triggered`

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "event": "portfolio_wallet.risk.alert.triggered",
  "organizationId": "43c78f4f-44a7-45ff-a524-8f010f7a4c72",
  "portfolioWalletId": "9d1a1c83-3a1c-4c14-9c5a-0c9a57a4a7db",
  "riskAlertId": "8f0d1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
  "riskRuleId": "1f0d1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
  "metric": "apy_pct",
  "ruleKind": "threshold",
  "comparator": "lt",
  "thresholdValue": 3,
  "observedValue": 2.75,
  "baselineValue": null,
  "observedChangePct": null,
  "windowSeconds": null,
  "status": "triggered",
  "metricsObservationId": "5d0d1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
  "triggeredAt": "2026-02-05T10:30:00.000Z",
  "explanation": {
    "message": "APY fell below threshold"
  },
  "assetId": "80f900d0-a4b8-4c97-bdc2-8e2ab5228e19"
}
```

## `portfolio_wallet.risk.alert.resolved`

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "event": "portfolio_wallet.risk.alert.resolved",
  "organizationId": "43c78f4f-44a7-45ff-a524-8f010f7a4c72",
  "portfolioWalletId": "9d1a1c83-3a1c-4c14-9c5a-0c9a57a4a7db",
  "riskAlertId": "8f0d1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
  "riskRuleId": "1f0d1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
  "metric": "apy_pct",
  "ruleKind": "threshold",
  "comparator": "lt",
  "thresholdValue": 3,
  "observedValue": 3.25,
  "baselineValue": null,
  "observedChangePct": null,
  "windowSeconds": null,
  "status": "resolved",
  "metricsObservationId": "5d0d1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
  "triggeredAt": "2026-02-05T10:30:00.000Z",
  "resolvedAt": "2026-02-05T11:30:00.000Z",
  "resolutionSource": "metric_recovered",
  "resolutionNote": "APY recovered above threshold",
  "explanation": {},
  "assetId": "80f900d0-a4b8-4c97-bdc2-8e2ab5228e19"
}
```

## `portfolio_wallet.risk.action.status_changed`

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "event": "portfolio_wallet.risk.action.status_changed",
  "organizationId": "43c78f4f-44a7-45ff-a524-8f010f7a4c72",
  "portfolioWalletId": "9d1a1c83-3a1c-4c14-9c5a-0c9a57a4a7db",
  "riskActionId": "6f0d1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
  "riskAlertId": "8f0d1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
  "riskRuleId": "1f0d1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
  "outcome": "exit_position",
  "approvalMode": "automatic",
  "previousStatus": "pending_auto_execution",
  "status": "executing",
  "attemptCount": 1,
  "executionVersion": 1,
  "rebalanceId": "7f0d1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
  "changedAt": "2026-02-05T10:31:00.000Z",
  "executionError": null,
  "explanation": {},
  "assetId": "80f900d0-a4b8-4c97-bdc2-8e2ab5228e19"
}
```

## `portfolio_wallet.risk.unwind.completed`

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "event": "portfolio_wallet.risk.unwind.completed",
  "organizationId": "43c78f4f-44a7-45ff-a524-8f010f7a4c72",
  "portfolioWalletId": "9d1a1c83-3a1c-4c14-9c5a-0c9a57a4a7db",
  "riskActionId": "6f0d1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
  "riskAlertId": "8f0d1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
  "riskRuleId": "1f0d1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
  "rebalanceId": "7f0d1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
  "completedRebalanceLegId": "2b0d1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
  "completedSourceAccountId": "80f900d0-a4b8-4c97-bdc2-8e2ab5228e19",
  "cashDestinationChain": "ethereum",
  "cashDestinationToken": "usdc",
  "completedAmountNativeUnits": "25000000000",
  "completedAt": "2026-02-05T10:45:00.000Z",
  "eventId": "3c0d1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
  "occurredAt": "2026-02-05T10:45:00.000Z",
  "explanation": {
    "message": "Exited Morpho Gauntlet USDC Prime to cash after APY alert"
  },
  "cashDestinationAssetId": "4ab063cf-303d-4f62-80a6-5a142c1d2fdb",
  "assetId": "80f900d0-a4b8-4c97-bdc2-8e2ab5228e19",
  "assetLabel": "Morpho Gauntlet USDC Prime"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.