# Best integrations practices

#### Stock and Prices

***

• Read the provided documentation to minimize integration issues.&#x20;

• Only send updates for products that exist in Alephee's catalog.&#x20;

• Do not send updates for products that do not exist.&#x20;

• Only send updates for products that have had their price or inventory/stock modified.&#x20;

• Do not send updates for products that have not been modified at all.&#x20;

• Do not update one product per API call.&#x20;

• Instead, send a "batch" of several products in each call.&#x20;

• Take advantage of the update time slots.&#x20;

• Do not use the daytime update time slot to make updates that can be done during the nighttime update time slot.&#x20;

• Develop a scheme for "retrying" submissions in case of communication failures with the API.&#x20;

• Use the provided services efficiently.&#x20;

• Do not make calls every minute for similar cases.

#### Orders

***

• Read the provided documentation to minimize integration issues.&#x20;

• Only take from each order what the integrating system requires.&#x20;

• Do not process all order attributes but only those needed for the integration.&#x20;

• Implement 2 (two) order integration cycles from Alephee:&#x20;

• Normal cycle:&#x20;

* Retrieve orders with a filter of "not integrated" in Alephee, without any other filter (GET orders method).&#x20;
* Process each order in the integrating system, paying special attention to those in cancelled status.&#x20;
* Mark each order in Alephee as integrated (PUT orders/integrate method).&#x20;

• Late cancellation cycle:&#x20;

* For orders that were cancelled after the sale and were previously integrated.&#x20;
* Retrieve orders with filters of CANCELLED status and modified in the last X days (GET orders method).&#x20;
* Process each order and cancel it in the integrating system using the corresponding method for each system.&#x20;

• Use the provided services efficiently.&#x20;

• Do not make calls every 1 minute or similar cases.
