# Load Orders from Komet to Unosof

The newly developed Komet Sales Bridge allows Unosof users to download pre-book orders from Komet to Unosof.

<figure><img src="https://4099088335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBi3aNCeQ0YEBUj1LmkHR%2Fuploads%2F3cl9pNJuUuQzn5k7JO1b%2FScreenshot%202023-11-16%20at%2015.36.35.png?alt=media&#x26;token=f71523b4-ecb1-4e7b-abfe-6906273075a0" alt=""><figcaption><p>Load Orders from KS to Unosof</p></figcaption></figure>

## Generate Komet Sales Token and grant access to the APIs

{% hint style="info" %}
Token with the following API permissions are required:\
Product.List\
BoxType.List\
Vendor. List\
Location.List\
Carrier.List\
Customer.List\
PurchaseOrder.List\
Purchase.Order.Items.Awb.Add\
Prebook.Details.List
{% endhint %}

## Map Data

It's necessary to map species, varieties, SKUs, Billing Customers, Shipping Customers, Cargo Agencies, Carriers, Box Types, Order Types, Incoterms, etc.

Using some of the APIs described above, Unosof can access the Komets Sales tables, store that data, and automatically map some variables in the Unosof tables.

{% hint style="info" %}
Revise[ Integration Requirements: Data Mapping](https://manual.unosofbooks.com/integrations-api/download-pos-from-komet#data-mapping)
{% endhint %}

## Load Orders from Komet Sales to Unosof

To access this module, go to:

{% hint style="success" %}
Bridges / Komet Bridge\
<https://farm.unosof.com/index.cfm?event=Bridge.Komet.List>
{% endhint %}

Use Token Type, Vendor ID, and Line Item Status filters to set all the query limitations for calling the Komet Sales Orders.

* Token Type:  Application Token (General Komet Sales Account) or Customer Token (Customer's Komet Sales Account).
* Vendor ID: Komet Sales vendor number.
* Line Item Status: C is for confirmed, and S is for shipped orders in Komet Sales.

<figure><img src="https://4099088335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBi3aNCeQ0YEBUj1LmkHR%2Fuploads%2FAc3zpcvqF1MaIs4KhqDI%2FScreenshot%202023-11-09%20at%2018.56.25.png?alt=media&#x26;token=062e416c-2fa7-4ff9-af04-b3c87cceb4c3" alt=""><figcaption><p>Komet Bridge - Page filters</p></figcaption></figure>

After setting the integration variables, click the Search button to see all results. &#x20;

It is also possible to use advanced filters by:

* Start and End Date
* Komet ID: Komet PO
* Text Search: Type in the customer's name
* Location: Komet Locations
* Show mapped: Activate this option to map products
* Show JSON: Activate this option to see the JSON file.

Once the filters are set, click on the search button to see the results:

The page shows all orders that are in KS according to the search.&#x20;

It will display compared information between both systems, labels, packing lists, and helpful integration tools.

<figure><img src="https://4099088335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBi3aNCeQ0YEBUj1LmkHR%2Fuploads%2FKOh3G1qqNrSXlaaygM5q%2FScreenshot%202023-11-16%20at%2015.10.49.png?alt=media&#x26;token=c001ed1f-dd34-4e86-8c47-2ff551eb7fa4" alt=""><figcaption><p>Komet order Compare Page</p></figcaption></figure>

1. Unosof Date: Unosof Order Date (Dispatch date)
2. Komet Date: Komer Order Date
3. PO ID: Unosof PO ID
4. Invoice ID: Unosof Invoice ID
5. Komet ID:  Komet PO ID
6. Uno Customer: Customer in Unosof (Depends on the customer ID mapping)
7. Kom Customer: Customer in Komet
8. \#Boxes Uno: Number of boxes in Unosof
9. \#Boxes Kom: Number of boxes in Komet
10. Amount Uno: Dollars in Unosof. (Can be different from the KS amount due to modifiers or Transfer price).
11. Amount Kom: Dollars in Komet
12. JSON: Activate the JSON switch and search to see the JSON file for each PO. On the JSON File, you will find all the information that KS is sending Unosof to create the PO: customers, boxes, SKUs, number of bunches per box, Package Type (Vendor Tag), etc.

<figure><img src="https://4099088335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBi3aNCeQ0YEBUj1LmkHR%2Fuploads%2FYFuvtdb813ULCqm5snEs%2Fimage.png?alt=media&#x26;token=5305b3bc-a5d6-4417-afda-46bd809ec3bf" alt=""><figcaption><p>JSON Switch</p></figcaption></figure>

<figure><img src="https://4099088335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBi3aNCeQ0YEBUj1LmkHR%2Fuploads%2FO1HaS5Wu1CGPWRjxg0iU%2FScreenshot%202023-11-16%20at%2015.12.55.png?alt=media&#x26;token=ec2a56e6-cacf-4e3b-9f67-225f7ea504fa" alt=""><figcaption><p>JSON File Example</p></figcaption></figure>

13. Map Boxes: Relate Box IDs in Unosof and KS
14. Stickers: Visualize the farm box stickers for each PO.

<div data-full-width="false"><figure><img src="https://4099088335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBi3aNCeQ0YEBUj1LmkHR%2Fuploads%2FS1WgghIIq3iv4M1phB2K%2FScreenshot%202023-11-16%20at%2015.17.39.png?alt=media&#x26;token=b67ac256-fc1a-4f3d-9e29-87fdd54a2a5a" alt=""><figcaption><p>Farm Label</p></figcaption></figure></div>

15. Stickers PH: Visualize secondary stickers such as In\&Out Stickers. This applies to particular POs.
16. Packing: Visualize the Komet Packing List&#x20;
17. Synch: Click on the Synch Button to download a PO.
18. Mass Synch: Select the orders and click the Mass Synch button to download orders simultaneously.
19. Products: Visualize not mapped products.
20. Box Error: Compares the number of boxes and IDs in Komet vs Unosof. Use this tool to map boxes.
21. AWB Assigned: Number of AWB assigned to the PO in Unosof
22. AWB Posted: Number of AWB posted to KS.
23. Komet Verified: Shows KS response to the AWB Posting.
24. Post AWB: Click on the button to post AWB to KS.
25. Date Created: Shows date/time of order download
