Weekly eBay payouts and fees export to Google Sheets

By General Input

Every Monday, automatically log last week's eBay payouts, sales, fees, and refunds into a Google Sheets tab so your accountant gets a clean reconciliation feed.

Integrations

  • eBay
  • Google Sheets

Type

Deterministic Code

Categories

  • Finance
  • Operations

Every Monday at 7:00am, on a weekly cron schedule, export the prior week's eBay finances into my Google Sheets bookkeeping tab. This is a deterministic bookkeeping export: one row per record, a fixed field mapping, and no summarization or interpretation, so my accountant always has a clean weekly reconciliation feed.

First, compute the date range for the prior week (the previous Monday through Sunday, ending just before this run). Use that same date range for every eBay call below.

Call eBay Get Payouts (Finances API) for payouts that settled within that date range. Treat each payout as one record.

Call eBay Get Transactions (Finances API) for the underlying activity in the same date range: the individual sales, fees, and refunds. Treat each transaction as one record.

For every payout and every transaction, write one row to the Google Sheets bookkeeping tab using Google Sheets Append Values. Each row must contain, in a fixed column order: the date (the payout settlement date for payouts, the transaction date for transactions), the record type (for example payout, sale, fee, or refund), the order or payout reference, the gross amount, the fees, the net amount, and the currency. Append the payout rows and the transaction rows so the tab grows by exactly one row per record. Do not merge, net, or summarize records, and do not interpret the data.

Frame this for a US-marketplace seller: target the US marketplace (EBAY_US) on the eBay calls. Note that the eBay Finances API is hosted on apiz.ebay.com, and that due to EU and UK payments regulations an additional Digital Signature security verification is required for all Finances API methods made on behalf of EU or UK sellers. If this seller operates in the EU or UK, that verification must be configured for the Get Payouts and Get Transactions calls to succeed.

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