VTEX Master Data is an easy-to-use, secure, fast, scalable and extensible repository. On it you can create your own Entities, store data and consult directly from the storefront or use it to store info for some external integration.
There are internal VTEX modules that use VTEX Master Data as data repository. We have the VTEX Customer Service, VTEX Profile System and VTEX InStore, for example. It is also used by other internal services.
There are two ways to use Master Data:
If your scenario is to be used inside the storefront, be aware of the following observations:
It’s important to avoid CORS using the relative path
If your scenario is to perform external integration, such as migrating client data from another service, be aware of the following observations:
{{accountName}}.vtexcommercestable.com.br
;Name | Description |
---|---|
accountName | Account name in VTEX License Manager |
name | Data Entity name |
schema | JSON Schema of a Data Entity |
id | Identifier of a document |
x-vtex-api-appKey | User key |
x-vtex-api-appToken | User token |
Use this page to mock Master Data API - v2 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 Master Data API - v2, which will allow you to keep building and testing even if the actual API you isn't currently available.