Closed bennobuilder closed 1 year ago
The core
backend listens on the physicaldotart@gmail.com
inbox and if a new Email matching a specific pattern like Du hast einen Verkauf auf Etsy erzielt [11,90 €, Bestellung #xxx]
it interprets that as new order and fetches the actual order/receipt from the Etsy API.
getReceipts()
endpointThe core
backend has a cront
job running that polls every x minutes the getReceipts()
Etsy API endpoint to see whether a new order exists. To not process orders twice the min_created
query parameter is used. So only receive orders to a specific timeframe, in this case after the last poll time. This last poll time will be saved in a Database so it won't get lost during a restart.
min_created
parameter, it can be ensured that only new orders are retrieved.
DoD
core
appFrom SyncLinear.com | PHY-32