Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 3.89 KB

EcommerceV1WebhookWebhookEndpointResource.md

File metadata and controls

41 lines (32 loc) · 3.89 KB

EcommerceV1WebhookWebhookEndpointResource

Properties

Name Type Description Notes
id str Webhook endpoint ID.
store_id str Owning store ID.
url str HTTPS receiver URL.
events List[str] Subscribed event types. - `order.placed`: a customer places an order, before any online payment is completed. Orders paid online may not have an order number yet. - `order.paid`: an order becomes fully paid: an online payment is captured, a free order is placed or the merchant marks it as paid. Partial payments don't send it. - `order.cancelled`: an unpaid order is canceled, for example by the merchant, a connected sales channel or after a delayed payment fails. Paid orders can't be canceled, so a cancellation never involves a refund. - `order.refunded`: each time a full or partial refund is recorded, through the payment provider or manually. - `order.fulfilled`: a fulfillment leaves every item in the order fulfilled. Partial fulfillments send `fulfillment.created` instead. - `fulfillment.created`: each time items in an order are fulfilled, including partial fulfillments and digital items fulfilled automatically after payment. - `fulfillment.updated`: a fulfillment's tracking details change, or a connected shipping service or sales channel reports progress such as delivery. - `fulfillment.cancelled`: a fulfillment is canceled before it ships, for example when it is canceled or its shipping label is voided. - `product.created`: a product is added to the store, including drafts and products created in bulk. - `product.updated`: a product changes, including its details, variants, prices, stock, visibility or collections. Stock changes from orders also send it, so expect frequent events. - `product.deleted`: a product is deleted, individually or in bulk.
sales_channel_ids List[str] Channel filter; null means store-wide.
enabled bool Whether delivery is enabled.
disabled_reason str Reason delivery was disabled. receiver_gone and receiver_failing are automatic health disables that can be resumed with enabled: true; store_* reasons are permanent revocations.
disabled_at datetime
failing_since datetime Start of the current failure streak; null after a successful delivery attempt, a URL change or re-enabling.
last_attempted_at datetime When the latest delivery attempt started, whether or not it reached the receiver; null before any attempt.
last_succeeded_at datetime When the latest successful delivery completed; null before any success.
created_at datetime
updated_at datetime

Example

from hostinger_api.models.ecommerce_v1_webhook_webhook_endpoint_resource import EcommerceV1WebhookWebhookEndpointResource

# TODO update the JSON string below
json = "{}"
# create an instance of EcommerceV1WebhookWebhookEndpointResource from a JSON string
ecommerce_v1_webhook_webhook_endpoint_resource_instance = EcommerceV1WebhookWebhookEndpointResource.from_json(json)
# print the JSON string representation of the object
print(EcommerceV1WebhookWebhookEndpointResource.to_json())

# convert the object into a dict
ecommerce_v1_webhook_webhook_endpoint_resource_dict = ecommerce_v1_webhook_webhook_endpoint_resource_instance.to_dict()
# create an instance of EcommerceV1WebhookWebhookEndpointResource from a dict
ecommerce_v1_webhook_webhook_endpoint_resource_from_dict = EcommerceV1WebhookWebhookEndpointResource.from_dict(ecommerce_v1_webhook_webhook_endpoint_resource_dict)

[Back to Model list] [Back to API list] [Back to README]