...
Table of Contents |
---|
...
|
...
...
Stock Requests and Cron Schedules
|
1. Configuration page
1.1. API configuration
Site ID: Your OneStock Site ID
API Url: Should be either
...
Once your credentials saved, you will have access to more configurations.
...
1.2. Sales channels
For each of your stores, you will need to map it to a OneStock sales channel. A dropdown with the available sales channels configured in OneStock will allow you to do so.
...
1.3. Stock Requests and Cron Schedules
For each of your commercetools channel, you need to configure stock request settings and define the cron schedules for stock imports. Below are the required steps:
1.3.1. Full Stock Request
Each store must have a full stock request assigned. This request is used to import the complete stock data for that channel.
Example:
export_unified_web_full
,export_warehouses_full
1.3.2. Delta Stock Request
A delta stock request should also be assigned for each store. This request is used to import only the stock changes (differences) since the last import.
Example:
export_unified_web_diff
1.3.3. Full Stock Import Schedule
You must define a specific time at which the full stock import will be executed every day. This is a single daily execution.
Example:
HH:mm AM/PM
1.3.4. Delta Stock Import Schedule
For delta stock updates, you must set up a cron schedule specifying:
Frequency: How often the delta stock import should run (e.g., every hour).
Start Time: The time from which the delta imports begin each day.
End Time: The time until which the delta imports are allowed to run.
...
2. Synchronization page
The Onestock Synchronization page allows users to manage the synchronization of products and stock between their system and OneStock. The page consists of two main sections:
...
Note that published products will also be automatically updated in OneStock.
...
3. Mapping page
The mapping page enables users to map fields from OneStock's order data to the corresponding fields in Commercetools' order data. The mapping allows you to ensure that both systems can communicate effectively by synchronizing order data between them.
...
Onestock Source Field: delivery_promise Commercetools Target Field: custom.fields.delivery_promise
...
4. Jobs page
This section provides an overview of stock export and product import jobs.
4.1. Stock Export Jobs
Displays a list of stock export jobs with the following columns:
Export ID: Unique identifier for each export job.
Type: Type of stock export (either 'full' or 'diff').
Request Name: Name of the stock request associated with the export.
Channel Key: The key for the channel.
Channel ID: The ID of the channel.
Status: Current status of the export job.
4.2. Product Import Jobs
Displays a list of product import jobs with the following columns:
...