# WooCommerce

### Prerequisites

The following are required to integrate Sendbox webhooks:

1. Current [WooCommerce](https://wordpress.org/plugins/woocommerce/) Version
2. An active WooCommerce store URL
3. A [Sendbox business](https://business.sendbox.co) dashboard account.

### Authentication

For the integration to work, you must allow Sendbox to have webhooks on your store.

This leads us to connect your store to Sendbox. To connect your store, you will provide your store URL, and in return, Sendbox will give you an OAuth URL. When you paste this URL directly into a web browser, a popup will appear asking you to authorize permissions.

<figure><img src="/files/aMweBxTZ2XJB3YVeXGwr" alt=""><figcaption><p>WooCommerce Permissions Screen</p></figcaption></figure>

Once permissions are granted, Sendbox webhooks are automatically created on your store's WooCommerce admin dashboard.

### Import Products and Orders&#x20;

During the OAuth flow, your already existing products and orders will automatically be imported to the Sendbox business dashboard.&#x20;

### Create Product

The create product webhook will be triggered once a new product is created on your WooCommerce dashboard. This means that the product information will be automatically sent to Sendbox and will simultaneously be created on your Sendbox business dashboard as well.

### Create Order

The create order webhook will be triggered once a new order request is made on your store.&#x20;

This means the order information will be sent to Sendbox and the fulfillment process for that order will commence from packaging to delivery.&#x20;

### Order Notification

As the status of the order changes, the order webhook is once again trigged and automatically it updates the order status from pending to completed. &#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sendbox.co/webhooks/woocommerce.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
