Check the new Pricing onboarding guide. We created this guide to improve the onboarding experience for developers at VTEX. It assembles all documentation on our Developer Portal about Pricing and is organized by focusing on the developer's journey
The Price Simulations API allows you to configure custom price selectors for B2B stores, based on the context set by the Orders Configuration app.
Custom Prices
In this section, you can create a specific shopping scenario with the criteria you want. For explaining purpose, we used the orderType
and state
as default values, but it can be others too.
GET
Get custom prices schema
POST
Create or Update custom prices schema
Session Management
Every time you edit a configuration value set on the Custom Prices session, you must use this endpoint to update the Order Configuration.
POST
Update Order Configuration
Price Association
Use these routes to associate a shopping scenario, created at the Custom Price session, to a specific price table.
GET
Get price association by ID
POST
Create price association
PUT
Update price association by ID
DELETE
Disassociate price association by ID