# OneStock (prebuilt connector)

## Description

[OneStock](https://www.onestock-retail.com/en/) is an order management system businesses use to grow sales, simplify returns, and optimise everything in between.

## API documentation

API documentation for OneStock (used to build this connector) can be found via the link below:

{% embed url="<https://developers.onestock-retail.com/>" %}

## Authentication&#x20;

When adding connector instances for OneStock, the following authentication methods are supported:

* [Token authentication](#token-authentication)

### Token authentication

When a user chooses to [add a connector instance](/product-documentation/connectors-and-instances/working-with-instances/adding-an-instance.md) using **token** authentication, the credentials below are prompted:

<table><thead><tr><th>Credential</th><th width="162" data-type="checkbox">Required?</th><th>Notes</th></tr></thead><tbody><tr><td><code>site id</code></td><td>true</td><td>Your OneStock site ID, as provided by OneStock.</td></tr><tr><td><code>user id</code></td><td>true</td><td>Your OneStock username, as provided by OneStock.</td></tr><tr><td><code>password</code></td><td>true</td><td><p>The password associated with your OneStock <code>user id</code>.</p><p><br></p></td></tr><tr><td><code>base url</code></td><td>true</td><td>Leave set to the default URL.</td></tr><tr><td><code>response authentication token key</code></td><td>true</td><td>Generate a OneStock token and enter it here. OneStock tokens can be generated via the OneStock API as detailed in <a href="https://developers.onestock-retail.com/#token-authentication">this OneStock guide</a>.</td></tr></tbody></table>


---

# 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://doc.wearepatchworks.com/product-documentation/connectors-and-instances/patchworks-connectors/onestock-prebuilt-connector.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.
