## Lookup a funding event `funding_events.get(strid, FundingEventGetParams**kwargs) -> FundingEventSummaryItemV1` **get** `/v1/funding_events/{id}` Retrieves the details of an existing funding event. Supply the unique funding event `id`, and Straddle will return the individual transaction items that make up the funding event. ### Parameters - `id: str` - `correlation_id: Optional[str]` - `request_id: Optional[str]` - `straddle_account_id: Optional[str]` ### Returns - `class FundingEventSummaryItemV1: …` - `data: Data` - `id: str` Unique identifier for the funding event. - `amount: int` The amount of the funding event in cents. - `created_at: datetime` Created at. - `direction: Literal["deposit", "withdrawal"]` Describes the direction of the funding event from the perspective of the `linked_bank_account`. - `"deposit"` - `"withdrawal"` - `event_type: Literal["charge_deposit", "charge_reversal", "payout_return", "payout_withdrawal"]` The funding event types describes the direction and reason for the funding event. - `"charge_deposit"` - `"charge_reversal"` - `"payout_return"` - `"payout_withdrawal"` - `payment_count: int` The number of payments associated with the funding event. - `trace_ids: Dict[str, str]` Trace Ids. - `trace_numbers: List[str]` Trace number. - `transfer_date: date` The date on which the funding event occurred. For `deposits` and `returns`, this is the date the funds were credited to your bank account. For `withdrawals` and `reversals`, this is the date the funds were debited from your bank account. - `updated_at: datetime` Updated at. - `status: Optional[Literal["created", "scheduled", "failed", 6 more]]` The current status of the `charge` or `payout`. - `"created"` - `"scheduled"` - `"failed"` - `"cancelled"` - `"on_hold"` - `"pending"` - `"paid"` - `"reversed"` - `"validating"` - `status_details: Optional[DataStatusDetails]` - `changed_at: datetime` The time the status change occurred. - `message: str` A human-readable description of the current status. - `reason: Literal["insufficient_funds", "closed_bank_account", "invalid_bank_account", 24 more]` - `"insufficient_funds"` - `"closed_bank_account"` - `"invalid_bank_account"` - `"invalid_routing"` - `"disputed"` - `"payment_stopped"` - `"owner_deceased"` - `"frozen_bank_account"` - `"risk_review"` - `"fraudulent"` - `"duplicate_entry"` - `"invalid_paykey"` - `"payment_blocked"` - `"amount_too_large"` - `"too_many_attempts"` - `"internal_system_error"` - `"user_request"` - `"ok"` - `"other_network_return"` - `"payout_refused"` - `"cancel_request"` - `"failed_verification"` - `"require_review"` - `"blocked_by_system"` - `"watchtower_review"` - `"validating"` - `"auto_hold"` - `source: Literal["watchtower", "bank_decline", "customer_dispute", 2 more]` - `"watchtower"` - `"bank_decline"` - `"customer_dispute"` - `"user_action"` - `"system"` - `code: Optional[str]` The status code if applicable. - `trace_number: Optional[str]` The trace number of the funding event. - `meta: ResponseMetadata` Metadata about the API request, including an identifier and timestamp. - `api_request_id: str` Unique identifier for this API request, useful for troubleshooting. - `api_request_timestamp: datetime` Timestamp for this API request, useful for troubleshooting. - `response_type: Literal["object", "array", "error", "none"]` Indicates the structure of the returned content. - "object" means the `data` field contains a single JSON object. - "array" means the `data` field contains an array of objects. - "error" means the `data` field contains an error object with details of the issue. - "none" means no data is returned. - `"object"` - `"array"` - `"error"` - `"none"` ### Example ```python import os from straddle import Straddle client = Straddle( api_key=os.environ.get("STRADDLE_API_KEY"), # This is the default and can be omitted ) funding_event_summary_item_v1 = client.funding_events.get( id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", ) print(funding_event_summary_item_v1.data) ``` #### Response ```json { "data": { "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "amount": 100000, "created_at": "2019-12-27T18:11:19.117Z", "direction": "deposit", "event_type": "charge_deposit", "payment_count": 0, "trace_ids": { "foo": "string" }, "trace_numbers": [ "string" ], "transfer_date": "2019-12-27", "updated_at": "2019-12-27T18:11:19.117Z", "status": "created", "status_details": { "changed_at": "2019-12-27T18:11:19.117Z", "message": "Bank account sucesfully validated", "reason": "insufficient_funds", "source": "watchtower", "code": "code" }, "trace_number": "trace_number" }, "meta": { "api_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "api_request_timestamp": "2019-12-27T18:11:19.117Z" }, "response_type": "object" } ```