Stock Management APIs

Modified on Wed, 1 Oct at 8:43 PM

Update Stock Quantity

Endpoint URL
POST https://api.tryoto.com/rest/v2/updateStockQuantity
Example Request Body

Here is an example of a request body:

{
  "actionType": "adjust",
  "locationCode": "ASDS",
  "sku": "156487494561",
  "qty": "40"
}
Request Parameters
NameRequiredTypeDescription
actionTypeyesenum"set","adjust"
locationCodeyesstringLocation code of the inventory
skuyesstringSKU of the product in the inventory
qtyyesintegerQuantity to be set or adjusted in the inventory

Available Packages: Scale Package, Enterprise Package, Marketplaces

This API endpoint enables efficient inventory management by allowing you to update the quantity of a SKU in two flexible ways:

1. Adjust : Modify the existing quantity by adding or deducting a specified amount. To decrease the quantity, provide a negative value for `qty`. For example, setting `qty` to ` 5` will deduct 5 units from the current stock.

2. Set : Directly set the quantity on hand to a specific value, replacing the current stock with the provided `qty`.

Request Parameters: |


Check Inventory Stock

Endpoint URL
GET https://api.tryoto.com/rest/v2/checkInventoryStock?sku=SG1,SG2,SG3
Request Parameters
NameRequiredTypeDescription
skuyesstringThe product's SKU identifier

Available Packages: Scale Package, Enterprise Package, Marketplaces

This API endpoint allows you to retrieve real time stock availability for products at specific locations.

It provides detailed information on the quantity of items on hand and forecasted stock for each product at various pickup locations, offering a location based view of inventory distribution.

Request Parameters: |

Response: success : Indicates whether the request was successful (`true` or `false`).

stock : A dictionary with SKUs as keys, containing a list of stock details for each location:

pickupLocationCode : The code representing the specific location.

sku : The product's SKU identifier.

quantityForecasted : The forecasted stock level at the location.

quantityOnHand : The actual available stock at the location.


Check Global Stock

Endpoint URL
GET https://api.tryoto.com/rest/v2/checkGlobalStock?sku=12,123123
Request Parameters
NameRequiredTypeDescription
skuyesstringThe product's SKU identifier

Available Packages: Scale Package, Enterprise Package, Marketplaces

This API endpoint provides an overview of total stock availability for SKUs across all locations. This endpoint aggregates stock levels to display a global view, helping businesses understand their overall inventory status.

Request Parameters: |

Response: success : Indicates whether the request was successful (`true` or `false`).

stock : A dictionary with SKUs as keys, containing global stock details for each product:

sku : The product's unique SKU identifier.

quantityOnHand : The total quantity of the product available across all locations.

quantityForecasted : The total forecasted stock quantity, if applicable.

minInventory : The minimum inventory threshold for the product, if defined.


Create Inventory Order

Endpoint URL
POST https://api.tryoto.com/rest/v2/createInventoryOrder
Example Request Body

Here is an example of a request body:

{
  "action": "inbound",
  "locationCode": "WHA",
  "binLocationName": "test",
  "orderDate": "31/03/2022",
  "deliveryDate": "31/03/2023",
  "waybillNumber": "12345",
  "description": "loc1",
  "items": [
    {
      "sku": "123123",
      "qty": "1"
    }
  ]
}
Request Parameters
NameRequiredTypeDescription
actionyesenum"inbound": Creates the order as purchase type and sets the ingoing location field
"outbound": Creates the order as disposal and sets the outgoing location field
locationCodeyesstringCode of the warehouse or the branch of the inventory
binLocationNamenostringName of the desired Bin
orderDatenodateDate of the order, must be a valid date value
deliveryDatenodateDate of the delivery, must be a valid date value
waybillNumbernostringWayBillNumber of the order
descriptionnostringArbitrary description of the order
itemsnoJSONArrayAn array of the items of the order
NameRequiredTypeDescription
skuyesstringSKU of the item of the customer that exists on database
qtyyesintegerQuantity of the item, must be a positive number

Available Packages: Scale Package, Enterprise Package, Marketplaces

This API endpoint creates inventory order as inbound or outbound for a warehouse or branch location. This API is used mostly to provide the incoming or outgoing bulk items from ERP systems to OTO. Once the order is created the status will be new for the warehouse or branch to accept and process the order.

Request Parameters: |

Request paramaters for Items array: |


Update Packing Status

Endpoint URL
POST https://api.tryoto.com/rest/v2/updatePackingStatus
Example Request Body

Here is an example of a request body:

{
  "orderId": "123",
  "packingStatus": "packed"
}
Request Parameters
NameRequiredTypeDescription
orderIdyesstringId of the order that you wanna update packing status
packingStatusyesstringPacking status value can be `packed` or `picked`

Available Packages: Scale Package, Enterprise Package, Marketplaces

This API endpoint allows you to update the packing status of an order during the fulfillment process. This endpoint is used to record and track the progress of orders as they move through the packing stage, ensuring accurate status updates for operational visibility.

Request Parameters: |


Get Orders Ready For Packing

Endpoint URL
POST https://api.tryoto.com/rest/v2/getPackingOrders
Example Request Body

Here is an example of a request body:

{
  "warehouseCode": "WH123"
}
Request Parameters
NameRequiredTypeDescription
warehouseCodeyesString`pickupLocationCode` of the warehouse.

Available Packages: Scale Package, Enterprise Package, MarketplacesEndFragment

This API endpoint retrieves a list of orders that are ready for pick and pack operations. This endpoint is designed to streamline warehouse workflows by providing access to orders that have completed prior processes and are prepared for fulfillment.

Request Parameters: |


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article