Replaces a piece of transactional data by key

This replaces a single piece of transactional data by key. The existing piece of transactional data attached to the key will be overwritten by the piece of transactional data in the request body.

This therefore makes it the logical equivalent to a delete and an insert.

SOAP action:


Input and output parameters

The input and output parameters for this method are:

Input parameters

  • DataCollection - required; string
  • Key - required; string
  • Json - required; string

Output parameters

  • ReplaceTransactionalDataByKeyResult
    • Key - string
    • ContactIdentifier - string
    • Json - string


using (var client = new ApiServiceClient())
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var collectionName = "TestCollectionName";
	var key = "P00000001";
	var json = @"{
	                ""PurchaseDate"": ""2020-01-01T09:40:18.527Z"",
	                ""TotalExTax"": 111.2000000000,
	                ""TotalIncTax"": 133.4400000000,
	                ""Product"": [
	                        ""Name"": ""Long unlined leather gloves"",
	                        ""Brand"": ""Dents"",
	                        ""Department"": ""Womenswear"",
	                        ""Category"": ""Gloves"",
	                        ""PriceExTax"": 111.2000000000,
	                        ""ProductID"": ""24920""
	                ""SalesChannel"": ""In store"",
	                ""SalesSubChannel"": ""London - One New Change""
	var replacedTransactionalData = client.ReplaceTransactionalDataByKey(collectionName, key, json);