vtex.local – MasterData-API-
- Homepage
- https://api.apis.guru/v2/specs/vtex.local:MasterData-API-/1.0.json
- Provider
- vtex.local:MasterData-API- / MasterData-API-
- OpenAPI version
- 3.0.0
- Spec (JSON)
- https://api.apis.guru/v2/specs/vtex.local/MasterData-API-/1.0/openapi.json
- Spec (YAML)
- https://api.apis.guru/v2/specs/vtex.local/MasterData-API-/1.0/openapi.yaml
Tools (22)
Extracted live via the executor SDK.
-
attachments.retrieveattachmentUse this API to retrieve a file.
Be sure to include the file extension in the name. Like in this example:
-
attachments.saveattachmentThis API allows you to save a file in a field of type
File.When using in javascript, you must add the header
content-typewith valuemultipart/form-data;You can upload more than one file. Just add a new field in the
form-datawith typeFile. -
clusters.validateDocumentbyClusters -
dataEntities.getdataentitystructureReturns the data entity structure with its respective fields and data type.
Response status code
- Status Code
403: Access not allowed - Status Code
200: Retrieves data entity structure
All headers listed below are required.
- Status Code
-
dataEntities.listdataentitiesRetrieves the list of existing data entities in the store.
Response status code
- Status Code
403: Access not allowed - Status Code
200: Retrieves data entity list
All headers listed below are required.
- Status Code
-
documents.createnewdocumentCreates documents through a JSON object where the key is the name of the field.
-
documents.createorupdateentiredocument -
documents.createorupdatepartialdocument -
documents.deletedocumentIt allows to delete a document.
-
documents.getdocumentRetrieves a document.
Assign the
_fieldsparameter in the query string to retrieve the desired fields. If you want to return all the fields use_fields=_all. -
documents.updateentiredocument -
documents.updatepartialdocument -
score.deletescorebyfieldAllows you to remove a key from a specific field.
-
score.putscorebyfieldIt allows to punctuate in a specific field.
-
score.putscoresIt allows punctuate in more than one field and more than one key.
-
scroll.scrolldocumentsScrolls through documents according to the query parameter filters.
Avoid sending too many requests with wildcards (
*) in the search parameters or that use thekeywordparameter. This may lead to this endpoint being temporarily blocked for your account. If this happens you will receive an error with status code429.Use all the features of
searchAPI to perform filters.In the first request, the
X-VTEX-MD-TOKENtoken will be obtained in the header. This token must be passed to the next request in the query string_tokenparameter. The token has a timeout of 10 minutes, which refreshes after each request.ATTENTION: To inform the number of documents per request, use the query string parameter
_size, which has the maximum value of 1000.After the token is obtained it is no longer necessary to send the filter or document size per page parameters. You only need to resend the token until the document collection is empty.
First request example:
After the first request, retrieve the token in the header
X-VTEX-MD-TOKENand make the next requests.Example of subsequent requests:
-
search.searchdocumentsSearch documents by the query parameters described below.
Avoid sending too many requests with wildcards (
*) in the search parameters or that use thekeywordparameter. This may lead to this endpoint being temporarily blocked for your account. If this happens you will receive an error with status code503. -
versions.getversionReturns the version of a document.
-
versions.listversionsAllows to list the versions of a document.
-
versions.putversionUpdates document with version values.
-
openapi.previewSpecPreview an OpenAPI document before adding it as a source
-
openapi.addSourceAdd an OpenAPI source and register its operations as tools