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 NameTypeComment
CallbackUrlStringThe webhook URL that Falabella Seller Center will call
EventsEvent[]List of events related to the webhook identified by their alias, see the GetWebhookEntities call for more details.

Error description

Error CodeError Description
5Invalid Request Format
6Unexpected internal error
(may mean feature is not configured or unknown error occurred)
89Required field is missing
98Invalid Webhook Callback Url, "Given url is invalid"
99Invalid 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>
Language