Hourly Amazon order log in Google Sheets

By General Input

Every hour, new Amazon Seller Central orders flow into a shared Google Sheet so your ops team has one master log without logging into Seller Central.

Integrations

  • Amazon Seller Partner
  • Google Sheets

Type

Deterministic Code

Categories

  • Operations
  • Sales

Build a code workflow that runs every hour on a cron schedule and syncs new Amazon Seller Partner orders into a Google Sheet as an append-only master log for the ops team.

Step 1. Call Amazon Seller Partner Search Orders (Orders v2026-01-01), filtered by LastUpdatedAfter equal to the timestamp of the previous run. On the very first run, fall back to the last 24 hours. Pass the seller's MarketplaceIds. Page through all results using the paginationToken cursor until there are none left.

Step 2. For each order returned, extract these fields in this exact column order: Amazon Order ID, Purchase Date, Last Update Date, Order Status, Fulfillment Channel, Marketplace ID, Sales Channel, Item Count (sum of NumberOfItemsShipped and NumberOfItemsUnshipped), Order Total Amount, Order Total Currency, Shipping City, Shipping State, Shipping Country.

Step 3. Before writing, deduplicate against the destination sheet. Read the Amazon Order ID column from the most recent rows of the target tab and drop any order from the batch whose ID is already present. This makes the workflow safe to re-run after a failure without creating duplicate rows.

Step 4. Call Google Sheets Append Values once with all of the remaining new rows batched together, targeting the configured spreadsheet ID and tab. Use valueInputOption USER_ENTERED so dates and numbers render correctly in the sheet, and keep the column order from Step 2.

Step 5. Persist the new high-water mark (the maximum LastUpdateDate from this batch, or the run start time if the batch was empty) so the next hourly run picks up exactly where this one stopped.

This is a deterministic CRUD pipeline. Every step is fixed: list, transform to a known column order, dedupe, append. No LLM reasoning, no branching judgement, no AI nodes. Use code nodes throughout.

Inputs the workflow should expose as configuration: the destination Google spreadsheet ID, the destination tab name, the list of MarketplaceIds to include, and (optionally) an order status filter.

Related prompts

Explore more prompts
Call overdue Xero customers with an AI collections agentLocal listing health board for every location you manageLet support send one-off Loops emails without an engineerStop cold emails to anyone with a live deal in PipedriveiMessage campaign console with pre-flight checks and delivery boardLinkedIn Ads budget pacing dashboard for every client accountFront desk appointment confirmation board for the next 3 daysGive your team Looker numbers without buying more seatsBuild audience segments from product usage and push to LoopsTurn the people who engage with your posts into Pipedrive leads