Products APIs

Modified on Wed, 1 Oct at 8:42 PM

Create Product

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

Here is an example of a request body:

{
  "productName": "Pencil",
  "sku": "1234AB123CDEas",
  "price": "23.5",
  "taxAmount": "11",
  "barcode": "1245125123421",
  "secondBarcode": "231412312",
  "description": "This is product description",
  "brandId": 6345,
  "category": "Category of the product",
  "productImage": "",
  "customAttributes": [
    {
      "attributeName": "112",
      "attributeValue": "test product"
    }
  ]
}
Request Parameters
NameRequiredTypeDescription
skuyesstringSKU of the product
productNameyesstringName of the product
priceyesstringPrice of the product
taxAmountnostringTax Amount of the product
brandIdnostringBrand id of the product
descriptionnostringDescription of the product
barcodenostringBarcode of the product
secondBarcodenostringSecond Barcode of the product
productImagenostringImage Link of the product
categorynostringCategory of the product
hsCodenostringA standardized numerical method of classifying traded products
itemOriginnostringOrigin of the product
bundleItemsnobooleanIt can be true/ false
categorynoCategory of product
customAttributesnoJSONArrayCustom attributes of the product
NameRequiredTypeDescription
attributeValuenostringValue of the attribute
attributeNameyesstringName of the attribute

Available Packages: All Packages

This API endpointallows clients to add new products to the system by providing key product details. This endpoint is essential for catalog management, enabling businesses to define and register products for use in their operations, such as inventory management, sales, and order processing.

Request Parameters: |

Request Paramaters for Custom Attributes array: |


Product List

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

Here is an example of a request body:

{
  "pageSize": 100,
  "currentPage": 1
}
Request Parameters
NameRequiredTypeDescription
pageSizenonumberitems per page, default is 100
currentPagenonumberpage numbe to be called, default is 1

Available Packages: All Packages

This API endpoint provides a simple and efficient way to retrieve a list of products available in your inventory. This endpoint returns essential product details such as names, images, SKUs, and barcodes, enabling applications to display and manage product information effectively.

Request Parameters: |


Add Box

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

Here is an example of a request body:

{
  "name": "xsmall",
  "length": 25,
  "width": 24,
  "height": 9
}
Request Parameters
NameRequiredTypeDescription
nameyesstringname of the box, name should be unique
lengthyesdoublelength of the package
widthyesdoublewidth of the package
heightyesdoubleheight of the package

Available Packages: All Packages

This API endpoint allows you to create new boxes with the dimensions you provided.

Request Parameters: |


Update Box

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

Here is an example of a request body:

{
  "name": "xsmall",
  "length": 3,
  "width": 4,
  "height": 3
}

Available Packages: All Packages

You can change the dimension information of an existing box. Since the name is unique, you can change the information of that box by entering the name information in the request.


Get Box

Endpoint URL
GET https://api.tryoto.com/rest/v2/getBox

Available Packages: All Packages

This API endpoint you to retrieve the name, id and dimension information of all boxes currently in your account.


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