{"openapi":"3.0.0","info":{"title":"Purchase API","description":"Tracks purchase conversion events within Dotdigital Personalization. Recording a completed purchase links transactional data to the personalisation engine, enabling revenue attribution, suppression of converted users from remarketing, and downstream reporting. Provides a single operation to mark a purchase as complete using an order reference.","version":"1.0.1"},"servers":[{"url":"https://{purchase_complete_domain}","variables":{"activity_domain":{"description":"Your purchase complete domain for Dotdigital Personalization.","default":"am.dycdn.net"}}}],"paths":{"/pc/{website_id}/":{"get":{"tags":["Track activity"],"summary":"Mark a purchase as complete","description":"Marks a purchase as complete from the server side if not using the usual client side tracking pixels.","operationId":"getPurchaseComplete","parameters":[{"name":"website_id","in":"path","description":"Website ID for the account you are posting data to.","required":true,"schema":{"type":"string"},"example":"abc123"},{"name":"e","in":"query","description":"Email address of the purchaser.","required":false,"schema":{"type":"string","format":"email"}},{"name":"r","in":"query","description":"The order id/reference number for the purchase.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Call successful"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"}}}}},"components":{"schemas":{},"parameters":{"WebsiteId":{"name":"website_id","in":"path","description":"Website ID for the account you are posting data to.","required":true,"schema":{"type":"string"},"example":"abc123"}}},"x-samples-languages":["curl","csharp","java","javascript","node","python","php","ruby"]}