API documentation for updating/creating product availability in stores
Table with field descriptions:
| Field | Type | Required? | Description |
|---|---|---|---|
| shop_id | int | Yes | Unique identifier of the store where product availability is updated. |
https://admin.ecom.md/ru/admin/Base_files/ourcontacts/
qty| Float| Yes| The quantity of a product available at a specified store.
groupproductid| string| Yes| The unique identifier of the product for which store availability is being updated.
1. Update/create product availability
Method: POST
URL: {domain}/external/product/shop-update/
Description:
Allows you to set or update the availability of goods in stores.
Query example:
POST {domain}/external/product/shop-update/
Content-Type: application/json
Request body:
[
{
"shop_id": 281,
"qty": 9999,
"group_product_id": "349254"
},
{
"shop_id": 282,
"qty": 500,
"group_product_id": "349255"
}
]
Notes:
- The request can contain multiple objects to update/create availability for multiple stores or products.
- If availability data for a certain combination of
shop_idandgroup_product_idalready exists, it will be updated. - If the specified combination of
shop_idandgroup_product_iddoes not exist, it will be created. - The
shop_idfield must be the identifier of an existing store, and it is validated during the request processing stage. - The
group_product_idfield must match an existing product ID in the group and its format is also checked before the request is executed.
Was the article helpful?
Yes, thank you! Unfortunately no