Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
Kit Creation API is not Calculating Component Prices
Kit Creation API is not Calculating Component Prices
ID: 739693
Backlog
Published on 3/28/2023
Last update on 4/2/2024

Summary

Currently, the insert KIT API payload has a format requesting the components that this kit consists of and its according quantities and prices.

The expected price of a KIT should be a ponderated sum of its component prices * its needed quantities to compose the kit.

For instance, if I have a KIT which is:

Component (A) --> $10, 2 units Component (B) --> $25, 1 unit

The kit Price should be: 10*2 + 25 === 45.

This is what happens on the KIT UI SkuKit.aspx.

However, the API https://developers.vtex.com/docs/api-reference/catalog-api#post-/api/catalog/pvt/stockkeepingunitkit is not making such price updates for components other than the 1st one added.

Simulation

Create a kit using the following API with a component with a quantity of 2 or more https://developers.vtex.com/docs/api-reference/catalog-api#post-/api/catalog/pvt/stockkeepingunitkit and then check its price on the pricing module UI.

Workaround

Insert the final price of the kit directly via pricing API.

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback