Greetings fellow xTuplers,
My company has a customer who sells products on Amazon and then fulfills the orders from their own warehouse. They probably process 25 - 50 orders a day from Amazon. We’ve written an API that talks to Amazon’s API and the orders are automatically imported into the customers xTuple system and then follow the exact same fulfillment path as an order entered by customer service or an ecommerce website entered order. The “customer” for each of those Amazon is “Amazon Merchant Account”. The ship-to information for Amazon orders are stored as a “free-form” ship-to addresses.
Amazon is now requiring that all PII (Personal Identifiable Information) be removed from any data storage within 30 days of order shipment. The Amazon definition of PII includes buyer’s first and last name, buyer’s street address, buyer’s email address, buyer’s phone number,and buyer’s 9 digit zipcode. That is my challenge.
I know this PII shipping information is propagated by the normal processing of an xTuple sales order. Things like invoices, tax records, RMAs, etc. So I think I’ll have to use a creative process to meet Amazon’s requirements. My customer also uses a custom picking/packing/ and shipping software that needs to use all of this Amazon provided ship-to data.
My first idea is to create an additional table (maybe “cohead_extra”) to hold the actual ship-to data as received from Amazon. Then within the initial cohead rec at import time I’ll load the cohead PII data columns with some sort of “redacted” info. I’ll have to build some functions, views, or other mechanism to be able to retrieve the “real” shipto info during the order fulfilment process. I’ll automate a process to automatically remove the “real” data from my cohead_extra table 30 days after shipment.
So today I’m beginning to try to implement this strategy without breaking anything. I’m planning on putting all of this code into an extension package so it can be easily added or removed. My reason in posting here is to expose my strategies to the eyes of the experts here. I’d love any feedback or “gotchas” anyone might see. I’m pretty thick skinned so don’t pull any punches if you feel this is doomed to fail!!
Thanks for any input.
Jim Wirt