post https://sellercenter-api.falabella.com/?Action=CreateWebhook
CreateWebhook. Based on a provided URL, allows the generation of webhooks for a series of events.
Request Payload
The body transmitted by the POST is an XML structure.
Feed-related events
- onFeedCompleted: Notification of executed Feed, which may be with or without rejections
- onFeedCreated: Notification of Feed creation
Order-related events
- onOrderCreated: Notification of the generation of a new Order creation
- onOrderItemsStatusChanged: Notification when there is a status change in items.
Product-related events
- onProductCreated: Notification of new product creation
- onProductQcStatusChanged: Notification when there is a change in content points
- onProductUpdated: Notification when there is a change in the status of a product
Request Body
<?xml version="1.0" encoding="UTF-8" ?>
<Request>
<Webhook>
<CallbackUrl>http://example.com/callback</CallbackUrl>
<Events>
<Event>onOrderCreated</Event>
<Event>onProductCreated</Event>
</Events>
</Webhook>
</Request>
The XML tags have the following meaning:
Field Name | Type | Comment |
---|---|---|
CallbackUrl | String | The webhook URL that Falabella Seller Center will call |
Events | Event[] | List of events related to the webhook identified by their alias, see the GetWebhookEntities call for more details. |
Error description
Error Code | Error Description |
---|---|
5 | Invalid Request Format |
6 | Unexpected internal error (may mean feature is not configured or unknown error occurred) |
89 | Required field is missing |
98 | Invalid Webhook Callback Url, "Given url is invalid" |
99 | Invalid Webhook Event Alias, "Events alias are not matching" |
Example of error response
<?xml version="1.0" encoding="UTF-8"?>
<ErrorResponse>
<Head>
<RequestAction>CreateWebhook</RequestAction>
<ErrorType>Sender</ErrorType>
<ErrorCode>96</ErrorCode>
<ErrorMessage>
E096: Invalid Webhook Event Alias, "Events alias are not matching"
</ErrorMessage>
</Head>
<Body/>
</ErrorResponse>