Webhook history.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | Unique identifier. For POST requests, leave it at `0` — the server will assign one automatically. For PUT requests, set it to the id of the record you want to update. | [optional] |
| created | datetime | Creation date. It is set automatically. | [optional] [readonly] |
| version | int | Row version, for optimistic concurrency. It is set automatically. | [optional] [readonly] |
| web_hook_id | int | Webhook id. | [optional] |
| user_id | int | User id. | [optional] |
| event | str | Event name. | [optional] |
| status_code | int | HTTP status code returned by the webhook endpoint. A value of 0 means the request could not be completed due to a network error (e.g., DNS resolution failure, connection refused, or timeout). This typically indicates that the endpoint URL is misconfigured or no longer exists. | [optional] |
| error | str | Error description, if any. Null when the delivery is successful (2xx). Contains the exception message for network errors (status code 0) or the response body for non-2xx HTTP responses. | [optional] |
| date_time | datetime | Date and time of the request. | [optional] |
| success | bool | Whether the request was successful. | [optional] [readonly] |
from invoicetronic_sdk.models.web_hook_history import WebHookHistory
# TODO update the JSON string below
json = "{}"
# create an instance of WebHookHistory from a JSON string
web_hook_history_instance = WebHookHistory.from_json(json)
# print the JSON string representation of the object
print(WebHookHistory.to_json())
# convert the object into a dict
web_hook_history_dict = web_hook_history_instance.to_dict()
# create an instance of WebHookHistory from a dict
web_hook_history_from_dict = WebHookHistory.from_dict(web_hook_history_dict)