See here for Facebook, but I'd expect other providers to do the same.
https://developers.facebook.com/docs/marketing-api/conversio...