Menu
Feedback
Start here

Known issues

Known issues
Kit Creation API is not Calculating Component Prices
Catalog
ID: 739693
Backlog
Published on3/28/2023
Last updated on4/2/2024
1 min read

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
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback