Documentation
Feedback
Guides
API Reference

API Reference
Filter By
Post
Get
Put
Delete
Patch

Master Data API - v1

Master Data is a highly customizable VTEX database solution, which enables you to create applications. By default, Master Data is used to store and organize Customer data from your store. It features a powerful search engine, allowing you to store, search, expand, and customize data. Learn more about Master Data v1.

Do not use Master Data as a log, cache, or temporary data store. Writing high volumes of disposable data can trigger API throttling and degrade store performance.

Index

Data Entities

Obtain information about the structure of the data entities.

Documents

Create, update and retrieve documents.

Customer profiles

Modify customer profiles in the CL entity.

Addresses

Modify customer addresses in the AD entity.

Versions

Master Data documents are versioned. This means that, for each change, a new version is generated. The versions endpoints allow you to query the versions and also apply the state of a document to the most current version.

Scroll

Developed for external integration scenarios. If your collection is over 10.000 documents or you need to query the entire VTEX Master Data database, use these endpoints.

Query a collection of documents.

Attachments

Upload and download files.

Clusters

Check if a particular document is in one or more clusters.

Score

Record and remove points in Score2 type fields. Learn more about Data entity field types.

Endpoints

Data entities

SummaryMethodPath
List data entitiesGET/api/dataentities
Get data entity structureGET/api/dataentities/{acronym}

Documents

SummaryMethodPath
Create new documentPOST/api/dataentities/{acronym}/documents
Create partial documentPATCH/api/dataentities/{acronym}/documents
Get documentGET/api/dataentities/{acronym}/documents/{id}
Create document with custom ID or update entire documentPUT/api/dataentities/{acronym}/documents/{id}
Update partial documentPATCH/api/dataentities/{acronym}/documents/{id}
Delete documentDELETE/api/dataentities/{acronym}/documents/{id}

Customer profiles

SummaryMethodPath
Create new customer profilePOST/api/dataentities/CL/documents
Update customer profilePATCH/api/dataentities/CL/documents/{id}
Delete customer profileDELETE/api/dataentities/CL/documents/{id}

Addresses

SummaryMethodPath
Create new customer addressPOST/api/dataentities/AD/documents
Get address by IDGET/api/dataentities/AD/documents/{addressId}
Update address by IDPATCH/api/dataentities/AD/documents/{addressId}
Delete address by IDDELETE/api/dataentities/AD/documents/{addressId}

Versions

SummaryMethodPath
List versionsGET/api/dataentities/{acronym}/documents/{id}/versions
Get versionGET/api/dataentities/{acronym}/documents/{id}/versions/{versionId}
Update versionPUT/api/dataentities/{acronym}/documents/{id}/versions/{versionId}

Scroll

SummaryMethodPath
Scroll documentsGET/api/dataentities/{acronym}/scroll

Search

SummaryMethodPath
Search documentsGET/api/dataentities/{acronym}/search

Attachments

SummaryMethodPath
Retrieve attachmentGET/api/dataentities/{acronym}/documents/{id}/{field}/attachments/{file-name}
Save attachmentPOST/api/dataentities/{acronym}/documents/{id}/{field}/attachments

Clusters

SummaryMethodPath
Validate document by clustersPOST/api/dataentities/{acronym}/documents/{id}/clusters

Score

SummaryMethodPath
Update scoresPUT/api/dataentities/{acronym}/documents/{id}/score
Update score by fieldPUT/api/dataentities/{acronym}/documents/{id}/score/{field-name}
Delete score by fieldDELETE/api/dataentities/{acronym}/documents/{id}/score/{field-name}

Loading API specification...