感谢您的反馈!
This update marks a transformative evolution in our endpoint management, prioritizing a seamless and enriched developer experience. In an effort to enhance efficiency, we have substantially reduced the number of endpoints from an initial 11 to a more streamlined and potent set of 5.
The significant changes made with these new endpoints are as follows:
Imagine you have a product that already exists and is associated with three Stock Keeping Units (SKUs) - let's call them sku1, sku2, and sku3. Now, if you want to introduce a new SKU, say sku4, to this existing product, you would utilize the "createAndUpdate" endpoint.
Here's the step-by-step breakdown:
So, by using the "createAndUpdate" endpoint with the new SKU information, you effectively append sku4 to the existing product configuration, resulting in a product that now includes all four SKUs: sku1, sku2, sku3, and the newly added sku4
Updating an existing SKU using the "/createUpdateProduct" endpoint:
In summary, by making a call to the "/createUpdateProduct" endpoint with the same sellerSku and the updated SKU information, you effectively modify the existing SKU1 in the product configuration. The resulting product now includes the updated SKU1 along with the other existing SKUs, sku2 and sku3.
In order to update the stock of the items listed in Miravia we have created an specific endpoint in order to manage the changes. There is a minor to update the stock between using only one warehouse or multi warehouses. In this guide, we are going to explain how to update the stock with only one warehouse.
Use this API to update the total inventory of the corresponding warehouse for an product.
Please take into consideration:
1. When updating the quantity, if you provide the SPU along with the SKU, all SKUs under the specified SPU will have their quantity updated.
2. If you only provide the SKU, only that specific SKU's quantity will be changed.
4 No more than 20 SKU per call.
Description:
The "UpdatePrice" endpoint is designed to facilitate modifications to the pricing structure of products on the platform.
Please take into consideration:
1. If the discount price field is empty, the value from the price field will be taken.
2. If a discount price is added, the final price will reflect this discount.
3. If the price field is empty and the discount price is not, an error will occur.
4 No more than 20 SKU per call.
5 The price cannot exceed 2 decimals place
The "UpdateStatus" endpoint manages the status of products, influencing their availability and visibility on the platform. Here's a breakdown of the different status:
Active: Description: Products in the "Active" status are ready and poised for publication. They are visible to users, and transactions can occur.
Inactive: Description: Products marked as "Inactive" are in a state of temporary suspension or hold. They are not currently available for purchase or display. This status is typically used when a product requires further attention or adjustments before being made available again.
Delete: Description: Products in the "Delete" status are no longer available on the platform. This status implies a more permanent removal from the system, and the product is no longer visible or accessible. Deleted products are usually archived or removed from the database.
For example if the product is already created, we have two ways of delete the product:
1 Product with [sku1,sku2,sku3]
2 product with [sku1,sku2,sku3]
a. call "updateStatus" with productId and sku1, sku2 ,sku3.
Ongoing Features (Delete status)
1. In the current development phase, if an erroneous SKU, not present in our database, is deleted, no error message will be generated; the deletion will simply not take place. Consequently, it is imperative to exercise caution when entering SKUs and to verify their status post-deletion.
2. Product restoration is presently unavailable. Following deletion, should you wish to re-publish a product, it will necessitate creating it anew.
Please take into consideration:
1. If both item ID and SKU are passed, an error will be reported.
2. If you provide the item ID alone, the status of all SKUs associated with that item ID will be updated.
3. If only the SKU is provided, only that SKU's status will be modified.
Description:
We've made enhancements to the getProduct endpoint to provide you with more flexibility and control when searching for products. This modification introduces additional parameters that allow for a more refined search.