Price Simulations API

Description

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

Use this page to mock Price Simulations API in your testing and development.

Run our mock API sample using the open source WireMock library, or in the free edition of WireMock Cloud. You'll have a working API server simulating the behavior of Price Simulations API, which will allow you to keep building and testing even if the actual API you isn't currently available.

Ready to accelerate your development flow

Shorter release cycles, more predictable schedules and fewer defects in production.
Start Mocking for Free *Free forever. No credit card needed