Master Data v2 provides a powerful data base solution for your store, that you can manage via the Master Data v2 API. Below you can learn about some basic features and how to use them.
If you do not need to validate your data, you may save your documents without any setup. You can use the following API requests:
- Create new document
- Create partial document
- Create document with custom ID or Update entire document
- Update partial document
In case you need to validate the data, you must first create a JSON schema. After that, you'll add the name of the JSON Schema to the query, like in this example:
There are three ways of retrieving documents. If you have the document's ID, you must use the Get document endpoint.
To get multiple documents, you may use the Search documents API request.
And finally, if you want to get all documents that attend to a specific set of criteria, you must use the Scroll documents API endpoint.
The documents could comply with none or multiple JSON Schemas. You may add the
_schema parameter to the query to filter the documents based in the JSON Schema. See the example below.