Products

APIs for maketplace owner to manager vendor products.

Get product list

Get product list

Request
query Parameters
searchCriteria[filterGroups][0][filters][0][field]
string

Field

searchCriteria[filterGroups][0][filters][0][value]
string

Value

searchCriteria[filterGroups][0][filters][0][conditionType]
string

Condition type

searchCriteria[sortOrders][0][field]
string

Sorting field.

searchCriteria[sortOrders][0][direction]
string

Sorting direction.

searchCriteria[pageSize]
integer

Page size.

searchCriteria[currentPage]
integer

Current page.

vendor_id
integer

Specify vendor id to filter products.

Responses
200

200 Success.

401

401 Unauthorized

default

Unexpected error

get/rest/V1/products
Response samples
{
  • "items": [
    ],
  • "search_criteria": {
    },
  • "total_count": 0
}

Create or update product - [deprecated]

Because performance issues with this default magento API, we suggest to use POST /V1/omnyfy/products instead. Native call to create a product. Use the Inventory API to assign the product to a specific Vendor on the marketplace.

Request
Request Body schema: application/json
optional
required
object (catalog-data-product-interface)
saveOptions
boolean
Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

default

Unexpected error

post/rest/V1/products
Request samples
application/json
{
  • "product": {
    },
  • "saveOptions": true
}
Response samples
application/json
{
  • "id": 0,
  • "sku": "string",
  • "name": "string",
  • "attribute_set_id": 0,
  • "price": 0,
  • "status": 0,
  • "visibility": 0,
  • "type_id": "string",
  • "created_at": "string",
  • "updated_at": "string",
  • "weight": 0,
  • "extension_attributes": {
    },
  • "product_links": [
    ],
  • "media_gallery_entries": [
    ],
  • "tier_prices": [
    ],
  • "custom_attributes": [
    ]
}

Get product by SKU

Get product by SKU

Request
path Parameters
sku
required
string
query Parameters
editMode
boolean
storeId
integer
forceReload
boolean
Responses
200

200 Success.

get/rest/V1/products/{sku}
Response samples
application/json
{
  • "id": 0,
  • "sku": "string",
  • "name": "string",
  • "attribute_set_id": 0,
  • "price": 0,
  • "status": 0,
  • "visibility": 0,
  • "type_id": "string",
  • "created_at": "string",
  • "updated_at": "string",
  • "weight": 0,
  • "extension_attributes": [
    ],
  • "product_links": [
    ],
  • "options": [
    ],
  • "media_gallery_entries": [
    ],
  • "tier_prices": [
    ],
  • "custom_attributes": {
    }
}

Delete product

delete product

Request
path Parameters
sku
required
string
Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

default

Unexpected error

delete/rest/V1/products/{sku}
Response samples
application/json
true

Get category list

Get category list

Request
query Parameters
searchCriteria[filterGroups][0][filters][0][field]
string

Field

searchCriteria[filterGroups][0][filters][0][value]
string

Value

searchCriteria[filterGroups][0][filters][0][conditionType]
string

Condition type

searchCriteria[sortOrders][0][field]
string

Sorting field.

searchCriteria[sortOrders][0][direction]
string

Sorting direction.

Responses
200

200 Success.

401

401 Unauthorized

default

Unexpected error

get/V1/categories/list
Response samples
application/json
{
  • "items": [
    ],
  • "search_criteria": {
    },
  • "total_count": 0
}

Import products

This API provides aggregated product import with better performance than the stock Magento V1/products API. Import product, image upload, assign vendor and set vendor location quantity can be done within one API call.

  1. Please use the field “variant_skus” to provide all child product SKUs for the configurable (parent) product.
  2. Please use the field “super_attribute_codes” to provide all attributes (example, colour, size etc) that are used to link child product SKUs to the configurable (parent) product.
  3. Please provide values in each child product for attributes in parent product in point 2 above where 4763 is the code for the colour of that child product. Example - { "attribute_code": "color", "value": 4763 }
  4. Please use the field “type_id”. Value will be “configurable” for parent product and “simple” for child products.
  5. Please use the field “visibility”.Value will be 4 for parent product and 1 for child products.
  6. See Response samples - items from above points are provided. You do not need to send the child products in the same payload
Request
Request Body schema: application/json
optional
required
Array of objects (omnyfy-product-import)
Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

default

Unexpected error

post/V1/omnyfy/products
Request samples
application/json
[
  • {
    },
  • {
    },
  • {
    }
]
Response samples
application/json
{
  • "items": [
    ]
}

Get Product Attributes

Retrieve all attributes for entity type

Request
query Parameters
searchCriteria[filterGroups][0][filters][0][field]
string

Field

searchCriteria[filterGroups][0][filters][0][value]
string

Value

searchCriteria[filterGroups][0][filters][0][conditionType]
string

Condition type

searchCriteria[sortOrders][0][field]
string

Sorting field.

searchCriteria[sortOrders][0][direction]
string

Sorting direction.

searchCriteria[pageSize]
integer

Page size.

searchCriteria[currentPage]
integer

Current page.

Responses
200

200 Success.

get/rest/V1/products/attributes
Response samples
application/json
{
  • "items": [
    ],
  • "search_criteria": {
    },
  • "total_count": 0
}