{"openapi":"3.1.0","info":{"title":"Insight and transactional data","version":"2.0.0"},"x-readme":{"headers":[],"explorer-enabled":true,"proxy-enabled":true},"x-readme-fauxas":true,"x-samples-languages":["curl","csharp","java","javascript","node","python","php","ruby"],"externalDocs":{"description":"Learn more about Dotdigital APIs","url":"https://developer.dotdigital.com"},"servers":[{"url":"https://{region}-api.dotdigital.com","variables":{"region":{"default":"r1","enum":["r1","r2","r3"],"description":"The Dotdigital region id your account belongs to"}}}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}}},"paths":{"/v2/contacts/transactional-data/{collectionName}":{"parameters":[{"in":"header","name":"x-ddg-integration-token","required":false,"description":"If you are a partner of Dotdigital and have a [verified integration](https://developer.dotdigital.com/docs/partner-integration-verification) then include your [integration tracking token](https://developer.dotdigital.co/docs/verified-integration-tracking) here.","schema":{"type":"string","pattern":"/^(?:\\{{0,1}(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12}\\}{0,1})$/","example":"5a96bc79-19a7-4544-973b-e2da0c9136f9"}}],"post":{"summary":"Add transactional data to contact","deprecated":true,"description":"Adds a single piece of transactional/insight data to a contact or account","operationId":"add-transactional-data-to-contact","tags":["Insight and transactional data"],"parameters":[{"name":"collectionName","in":"path","description":"The name of the transactional data collection","required":true,"example":"","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["key","contactIdentifier","json"],"properties":{"key":{"type":"string","description":"The key for the piece of data"},"contactIdentifier":{"type":"string","description":"Either the id or email address of the contact that the transactional data is being added to"},"json":{"type":"string","description":"The data to be stored against the contact","format":"json"}}},"examples":{"Request Example":{"value":{"key":"Order-123","contactIdentifier":"myCustomer@emailsim.io","json":{"id":"Order-123","currency":"GBP","order_status":"completed","purchase_date":"2020-11-03T13:03:32.000Z","order_total":99,"order_subtotal":99,"products":[{"name":"Product Name","price":99,"sku":"68694","qty":1}]}},"summary":"Request Example"}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","examples":["P00000001"]},"contactIdentifier":{"type":"string","examples":["23"]},"json":{"type":"string","examples":["{\r\n\"id\": \"Order-123\",\r\n\"currency\": \"GBP\",\r\n\"order_status\": \"completed\",\r\n\"PurchaseDate\": \"2012-11-19T10:01:21Z\",\r\n\"order_total\": 111.2000000000,\r\n\"order_subtotal\": 133.4400000000,\r\n\"Products\": [\r\n{\r\n\"Name\": \"Long unlined leather gloves\",\r\n\"Price\": 111.2000000000,\r\n\"sku\": \"24920\",\r\n\"qty\": 2\r\n}\r\n]\r\n}"]}}},"examples":{"Result":{"summary":"Result","value":{"key":"P00000001","contactIdentifier":"23","json":"{\r\n\"id\": \"Order-123\",\r\n\"currency\": \"GBP\",\r\n\"order_status\": \"completed\",\r\n\"PurchaseDate\": \"2012-11-19T10:01:21Z\",\r\n\"order_total\": 111.2000000000,\r\n\"order_subtotal\": 133.4400000000,\r\n\"Products\": [\r\n{\r\n\"Name\": \"Long unlined leather gloves\",\r\n\"Price\": 111.2000000000,\r\n\"sku\": \"24920\",\r\n\"qty\": 2\r\n}\r\n]\r\n}"}}}}}}}}},"/v2/contacts/transactional-data/import/{collectionName}":{"parameters":[{"in":"header","name":"x-ddg-integration-token","required":false,"description":"If you are a partner of Dotdigital and have a [verified integration](https://developer.dotdigital.com/docs/partner-integration-verification) then include your [integration tracking token](https://developer.dotdigital.co/docs/verified-integration-tracking) here.","schema":{"type":"string","pattern":"/^(?:\\{{0,1}(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12}\\}{0,1})$/","example":"5a96bc79-19a7-4544-973b-e2da0c9136f9"}}],"post":{"summary":"Bulk add transactional data to contacts","deprecated":true,"description":"Adds multiple pieces of transactional/insight data to contacts asynchronously","operationId":"bulk-add-transactional-data-to-contacts","tags":["Insight and transactional data"],"parameters":[{"name":"collectionName","in":"path","description":"The name of the transactional data collection","required":true,"example":"","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"RAW_BODY":{"type":"array","description":"The insight data items to add","items":{"properties":{"key":{"type":"string","description":"The unique key to identify this specific insight record"},"contactIdentifier":{"type":"string","description":"The contact to add the insight data to; use **account** for account level insight data"},"json":{"type":"string","description":"The insight data to add","format":"json"}},"required":["key","contactIdentifier","json"],"type":"object"}}}},"examples":{"Request Example":{"value":[{"key":"Order-123","contactIdentifier":"myCustomer@emailsim.io","json":{"id":"Order-123","currency":"GBP","order_status":"completed","purchase_date":"2020-11-03T13:03:32.000Z","order_total":99,"order_subtotal":99,"products":[{"name":"Big BBQ","price":99,"sku":"68694","qty":1}]}},{"key":"Order-124","contactIdentifier":"myOtherCustomer@emailsim.io","json":{"id":"Order-124","currency":"USD","order_status":"completed","purchase_date":"2020-11-03T13:03:32.000Z","order_total":129,"order_subtotal":129,"products":[{"name":"Baseball bat","price":99,"sku":"BB-123","qty":1},{"name":"Baseball glove","price":30,"sku":"BB-912","qty":1}]}}],"summary":"Request Example"}}}}},"responses":{"202":{"description":"202","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","examples":["842d81e8-c619-457f-bb77-ab6c4a17da39"]},"status":{"type":"string","examples":["NotStarted"]}}},"examples":{"Result":{"summary":"Result","value":{"id":"842d81e8-c619-457f-bb77-ab6c4a17da39","status":"NotStarted"}}}}}}}}},"/v2/contacts/transactional-data/{collectionName}/{key}":{"parameters":[{"in":"header","name":"x-ddg-integration-token","required":false,"description":"If you are a partner of Dotdigital and have a [verified integration](https://developer.dotdigital.com/docs/partner-integration-verification) then include your [integration tracking token](https://developer.dotdigital.co/docs/verified-integration-tracking) here.","schema":{"type":"string","pattern":"/^(?:\\{{0,1}(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12}\\}{0,1})$/","example":"5a96bc79-19a7-4544-973b-e2da0c9136f9"}}],"post":{"summary":"Replace transactional data by key","deprecated":true,"description":"Replaces a piece of transactional/insight data by key","operationId":"replace-transactional-data-by-key","tags":["Insight and transactional data"],"parameters":[{"name":"collectionName","in":"path","description":"The name of the transactional data collection","required":true,"example":"","schema":{"type":"string"}},{"name":"key","in":"path","description":"The key for the piece of data","required":true,"example":"","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["json"],"properties":{"json":{"type":"string","description":"The data to be stored against the contact, as an escaped JSON string"}}},"examples":{"Request Example":{"value":{"key":"P00000001","contactIdentifier":"986710407","json":"{\r\n\"PurchaseDate\": \"2012-11-19T10:01:21Z\",\r\n\"TotalExTax\": 111.2000000000,\r\n\"TotalIncTax\": 133.4400000000,\r\n\"Product\": [\r\n{\r\n\"Name\": \"Long unlined leather gloves\",\r\n\"Brand\": \"Dents\",\r\n\"Department\": \"Womenswear\",\r\n\"Category\": \"Gloves\",\r\n\"PriceExTax\": 111.2000000000,\r\n\"ProductID\": \"24920\"\r\n}\r\n],\r\n\"SalesChannel\": \"Online\",\r\n\"SalesSubChannel\": \"myshop.com\"\r\n}"},"summary":"Request Example"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","examples":["P00000001"]},"contactIdentifier":{"type":"string","examples":["23"]},"json":{"type":"string","examples":["{\r\n\"PurchaseDate\": \"2012-11-19T10:01:21Z\",\r\n\"TotalExTax\": 111.2000000000,\r\n\"TotalIncTax\": 133.4400000000,\r\n\"Product\": [\r\n{\r\n\"Name\": \"Long unlined leather gloves\",\r\n\"Brand\": \"Dents\",\r\n\"Department\": \"Womenswear\",\r\n\"Category\": \"Gloves\",\r\n\"PriceExTax\": 111.2000000000,\r\n\"ProductID\": \"24920\"\r\n}\r\n],\r\n\"SalesChannel\": \"In store\",\r\n\"SalesSubChannel\": \"London - One New Change\"\r\n}"]}}},"examples":{"Result":{"summary":"Result","value":{"key":"P00000001","contactIdentifier":"23","json":"{\r\n\"PurchaseDate\": \"2012-11-19T10:01:21Z\",\r\n\"TotalExTax\": 111.2000000000,\r\n\"TotalIncTax\": 133.4400000000,\r\n\"Product\": [\r\n{\r\n\"Name\": \"Long unlined leather gloves\",\r\n\"Brand\": \"Dents\",\r\n\"Department\": \"Womenswear\",\r\n\"Category\": \"Gloves\",\r\n\"PriceExTax\": 111.2000000000,\r\n\"ProductID\": \"24920\"\r\n}\r\n],\r\n\"SalesChannel\": \"In store\",\r\n\"SalesSubChannel\": \"London - One New Change\"\r\n}"}}}}}}}},"get":{"summary":"Get transactional data by key","deprecated":true,"description":"Gets a piece of transactional/insight data by key","operationId":"get-transactional-data-by-key","tags":["Insight and transactional data"],"parameters":[{"name":"key","in":"path","description":"The key for the piece of transactional data","required":true,"example":"","schema":{"type":"string"}},{"name":"collectionName","in":"path","description":"The name of the transactional data collection","required":true,"example":"","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","examples":["P00000110"]},"contactIdentifier":{"type":"string","examples":["23"]},"json":{"type":"string","examples":["{\r\n\"PurchaseDate\": \"2020-01-01T09:40:18.527Z\",\r\n\"TotalExTax\": 111.2000000000,\r\n\"TotalIncTax\": 133.4400000000,\r\n\"Product\": [\r\n{\r\n\"Name\": \"Long unlined leather gloves\",\r\n\"Brand\": \"Dents\",\r\n\"Department\": \"Womenswear\",\r\n\"Category\": \"Gloves\",\r\n\"PriceExTax\": 111.2000000000,\r\n\"ProductID\": \"24920\"\r\n}\r\n],\r\n\"SalesChannel\": \"In store\",\r\n\"SalesSubChannel\": \"London - One New Change\"\r\n}"]}}},"examples":{"Result":{"summary":"Result","value":{"key":"P00000110","contactIdentifier":"23","json":"{\r\n\"PurchaseDate\": \"2020-01-01T09:40:18.527Z\",\r\n\"TotalExTax\": 111.2000000000,\r\n\"TotalIncTax\": 133.4400000000,\r\n\"Product\": [\r\n{\r\n\"Name\": \"Long unlined leather gloves\",\r\n\"Brand\": \"Dents\",\r\n\"Department\": \"Womenswear\",\r\n\"Category\": \"Gloves\",\r\n\"PriceExTax\": 111.2000000000,\r\n\"ProductID\": \"24920\"\r\n}\r\n],\r\n\"SalesChannel\": \"In store\",\r\n\"SalesSubChannel\": \"London - One New Change\"\r\n}"}}}}}}}},"delete":{"summary":"Delete transactional data by key","deprecated":true,"description":"Deletes a piece of transactional/insight data by key","operationId":"delete-transactional-data-by-key","tags":["Insight and transactional data"],"parameters":[{"name":"collectionName","in":"path","description":"The name of the transactional data collection","required":true,"example":"","schema":{"type":"string"}},{"name":"key","in":"path","description":"The key for the piece of transactional data","required":true,"example":"","schema":{"type":"string"}}],"responses":{"204":{"description":"204","content":{"application/json":{"schema":{"type":"object","properties":{}},"examples":{"Result":{"summary":"Result","value":{}}}}}}}}},"/v2/contacts/transactional-data/import/{id}":{"parameters":[{"in":"header","name":"x-ddg-integration-token","required":false,"description":"If you are a partner of Dotdigital and have a [verified integration](https://developer.dotdigital.com/docs/partner-integration-verification) then include your [integration tracking token](https://developer.dotdigital.co/docs/verified-integration-tracking) here.","schema":{"type":"string","pattern":"/^(?:\\{{0,1}(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12}\\}{0,1})$/","example":"5a96bc79-19a7-4544-973b-e2da0c9136f9"}}],"get":{"summary":"Get transactional data import status","deprecated":true,"description":"Gets the import status of a previously started transactional/insight data import","operationId":"get-transactional-data-import-status","tags":["Insight and transactional data"],"parameters":[{"name":"id","in":"path","description":"The import ID (GUID) of the transactional data import","required":true,"example":"","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","examples":["842d81e8-c619-457f-bb77-ab6c4a17da39"]},"status":{"type":"string","examples":["Finished"]}}},"examples":{"Result":{"summary":"Result","value":{"id":"842d81e8-c619-457f-bb77-ab6c4a17da39","status":"Finished"}}}}}}}}},"/v2/contacts/transactional-data/import/{id}/report":{"parameters":[{"in":"header","name":"x-ddg-integration-token","required":false,"description":"If you are a partner of Dotdigital and have a [verified integration](https://developer.dotdigital.com/docs/partner-integration-verification) then include your [integration tracking token](https://developer.dotdigital.co/docs/verified-integration-tracking) here.","schema":{"type":"string","pattern":"/^(?:\\{{0,1}(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12}\\}{0,1})$/","example":"5a96bc79-19a7-4544-973b-e2da0c9136f9"}}],"get":{"summary":"Get transactional data import report","deprecated":true,"description":"Gets a report with statistics about what transactional/insight data was successfully imported, and what was unable to be imported","operationId":"get-transactional-data-import-report","tags":["Insight and transactional data"],"parameters":[{"name":"id","in":"path","description":"The import ID (GUID) of the transactional data import","required":true,"example":"","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{}},"examples":{"Result":{"summary":"Result","value":"{\n\"totalItems\": 6,\n\"totalImported\": 5,\n\"totalRejected\": 1,\n\"faults\": [\n\"key\": \"1234AB\",\n\"reason\": \"InvalidJson\"\n]\n}"}}}}}}}},"/v2/contacts/{selector}/transactional-data/{collectionName}":{"parameters":[{"name":"selector","in":"path","description":"The email address or contact ID of the contact.","required":true,"example":"contact1@emailsim.io","schema":{"oneOf":[{"type":"string","description":"Email address","format":"email"},{"type":"string","description":"Contact ID","format":"regex","pattern":"[0-9]+"}]}},{"name":"collectionName","in":"path","description":"The name of the transactional data collection","required":true,"example":"orders","schema":{"type":"string"}}],"get":{"summary":"Get transactional data collection for contact by email","deprecated":true,"description":"Gets a list of up to 100 pieces of transactional data records for a contact in a collection by their email address, sorted by the transactional record key.","operationId":"get-transactional-data-collection-for-contact-by-email","tags":["Insight and transactional data"],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","examples":["P00000113"]},"contactIdentifier":{"type":"string","examples":["23"]},"json":{"type":"string","examples":["{\r\n\"PurchaseDate\": \"2020-01-01T09:40:18.527Z\",\r\n\"TotalExTax\": 92.0000000000,\r\n\"TotalIncTax\": 110.4000000000,\r\n\"Product\": [\r\n{\r\n\"Name\": \"Cashmere cable-knit beanie\",\r\n\"Brand\": \"Paul Smith\",\r\n\"Department\": \"Menswear\",\r\n\"Category\": \"Hat\",\r\n\"PriceExTax\": 88.0000000000,\r\n\"ProductID\": \"24937\"\r\n},\r\n{\r\n\"Name\": \"Armani Jeans beanie hat\",\r\n\"Brand\": \"Armani Jeans\",\r\n\"Department\": \"Menswear\",\r\n\"Category\": \"Hat\",\r\n\"PriceExTax\": 56.0000000000,\r\n\"ProductID\": \"24938\"\r\n}\r\n],\r\n\"SalesChannel\": \"Online\",\r\n\"SalesSubChannel\": \"myshop.com\"\r\n}"]}}}},"examples":{"Result":{"summary":"Result","value":[{"key":"P00000113","contactIdentifier":"23","json":"{\r\n\"PurchaseDate\": \"2020-01-01T09:40:18.527Z\",\r\n\"TotalExTax\": 92.0000000000,\r\n\"TotalIncTax\": 110.4000000000,\r\n\"Product\": [\r\n{\r\n\"Name\": \"Cashmere cable-knit beanie\",\r\n\"Brand\": \"Paul Smith\",\r\n\"Department\": \"Menswear\",\r\n\"Category\": \"Hat\",\r\n\"PriceExTax\": 88.0000000000,\r\n\"ProductID\": \"24937\"\r\n},\r\n{\r\n\"Name\": \"Armani Jeans beanie hat\",\r\n\"Brand\": \"Armani Jeans\",\r\n\"Department\": \"Menswear\",\r\n\"Category\": \"Hat\",\r\n\"PriceExTax\": 56.0000000000,\r\n\"ProductID\": \"24938\"\r\n}\r\n],\r\n\"SalesChannel\": \"Online\",\r\n\"SalesSubChannel\": \"myshop.com\"\r\n}"},{"key":"P00000114","contactIdentifier":"23","json":"{\r\n\"PurchaseDate\": \"2020-01-01T09:40:18.527Z\",\r\n\"TotalExTax\": 56.0000000000,\r\n\"TotalIncTax\": 67.2000000000,\r\n\"Product\": [\r\n{\r\n\"Name\": \"Armani Jeans beanie hat\",\r\n\"Brand\": \"Armani Jeans\",\r\n\"Department\": \"Menswear\",\r\n\"Category\": \"Hat\",\r\n\"PriceExTax\": 56.0000000000,\r\n\"ProductID\": \"24938\"\r\n}\r\n],\r\n\"SalesChannel\": \"In store\",\r\n\"SalesSubChannel\": \"Manchester\"\r\n}"}]}}}}}}},"delete":{"summary":"Delete transactional data collection for contact","deprecated":true,"description":"Deletes all transactional/insight data for a contact in a collection identified by either their email or contact ID.","operationId":"delete-transactional-data-collection-for-contact","tags":["Insight and transactional data"],"responses":{"204":{"description":"204","content":{"application/json":{"schema":{"type":"object","properties":{}},"examples":{"Result":{"summary":"Result","value":{}}}}}}}}},"/v2/transactional-data/{collectionName}":{"parameters":[{"in":"header","name":"x-ddg-integration-token","required":false,"description":"If you are a partner of Dotdigital and have a [verified integration](https://developer.dotdigital.com/docs/partner-integration-verification) then include your [integration tracking token](https://developer.dotdigital.co/docs/verified-integration-tracking) here.","schema":{"type":"string","pattern":"/^(?:\\{{0,1}(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12}\\}{0,1})$/","example":"5a96bc79-19a7-4544-973b-e2da0c9136f9"}}],"get":{"summary":"Get account scoped transactional data","deprecated":true,"description":"Gets transactional/insight data in a collection at account level","operationId":"get-account-scoped-transactional-data","tags":["Insight and transactional data"],"parameters":[{"name":"collectionName","in":"path","description":"The name of the transactional data collection","required":true,"example":"","schema":{"type":"string"}},{"name":"select","in":"query","description":"The number of records to select between 1 and 100","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"skip","in":"query","description":"The numbers of records to skip in the result set","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","examples":["Resort001"]},"contactIdentifier":{"type":"string","examples":["-1"]},"json":{"type":"string","examples":["{\r\n\"Name\": \"Playa del Fun\",\r\n\"Country\": \"Spain\",\r\n\"Stars\": 3.0000000000,\r\n\"Category\": \"Family beach\",\r\n\"Image\": \"https://www.123holidays.com/resorts/1/9/7/9/3/1/files/imagecache/63595/w20_124720_beachresort1.jpg\",\r\n\"Short_desc\": \"Close to three water parks and the best beach around, this resort is a favourite with families.\",\r\n\"From_price\": 412.0000000000,\r\n\"Link\": \"https://www.123holidays.com/resorts/playa_del_fun\"\r\n}"]}}}},"examples":{"Result":{"summary":"Result","value":[{"key":"Resort001","contactIdentifier":"-1","json":"{\r\n\"Name\": \"Playa del Fun\",\r\n\"Country\": \"Spain\",\r\n\"Stars\": 3.0000000000,\r\n\"Category\": \"Family beach\",\r\n\"Image\": \"https://www.123holidays.com/resorts/1/9/7/9/3/1/files/imagecache/63595/w20_124720_beachresort1.jpg\",\r\n\"Short_desc\": \"Close to three water parks and the best beach around, this resort is a favourite with families.\",\r\n\"From_price\": 412.0000000000,\r\n\"Link\": \"https://www.123holidays.com/resorts/playa_del_fun\"\r\n}"}]}}}}}}}},"/v2/contacts/transactional-data-collections":{"parameters":[{"in":"header","name":"x-ddg-integration-token","required":false,"description":"If you are a partner of Dotdigital and have a [verified integration](https://developer.dotdigital.com/docs/partner-integration-verification) then include your [integration tracking token](https://developer.dotdigital.co/docs/verified-integration-tracking) here.","schema":{"type":"string","pattern":"/^(?:\\{{0,1}(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12}\\}{0,1})$/","example":"5a96bc79-19a7-4544-973b-e2da0c9136f9"}}],"get":{"summary":"Get transactional data collections","deprecated":true,"description":"Gets transactional/insight data collections at account and contact level","operationId":"get-contact-scoped-transactional-data-collections","tags":["Insight and transactional data"],"parameters":[{"name":"select","in":"query","description":"The number of records to select between 1 and 1000","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"skip","in":"query","description":"The numbers of records to skip in the result set","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{}},"examples":{"Result":{"summary":"Result","value":"[\n{\n\"Id\": \"1\",\n\"Name\": \"Catalog\",\n},\n{\n\"Id\": \"2\",\n\"Name\": \"Orders\",\n},\n{\n\"Id\": \"3\",\n\"Name\": \"ProductRecommendations\",\n},\n{\n\"Id\": \"4\",\n\"Name\": \"ProductRecommendations_2\",\n}\n]"}}}}}}}},"/v2/contacts/transactional-data/{collectionName}/empty":{"parameters":[{"in":"header","name":"x-ddg-integration-token","required":false,"description":"If you are a partner of Dotdigital and have a [verified integration](https://developer.dotdigital.com/docs/partner-integration-verification) then include your [integration tracking token](https://developer.dotdigital.co/docs/verified-integration-tracking) here.","schema":{"type":"string","pattern":"/^(?:\\{{0,1}(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12}\\}{0,1})$/","example":"5a96bc79-19a7-4544-973b-e2da0c9136f9"}}],"put":{"summary":"Empty transactional data collection","deprecated":true,"description":"Removes all transactional data from the specified collection","operationId":"empty-transactional-data-collection","tags":["Insight and transactional data"],"parameters":[{"name":"collectionName","in":"path","description":"The name of the transactional data collection to be emptied","required":true,"example":"","schema":{"type":"string"}}],"responses":{"204":{"description":"204","content":{"text/plain":{"schema":{"type":"object","properties":{}},"examples":{"Result":{"summary":"Result","value":"{\n\"value\": \"\"\n}"}}}}}}}}}}