Linking Walmart Marketplace as a source

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

PostHog Wizard hedgehog

The Walmart Marketplace connector syncs orders, returns, and the payment reconciliation report (sales, refunds, commissions, fees, and adjustments) from a US Walmart Marketplace seller account into the PostHog data warehouse. Use it to analyze your marketplace sales and payouts alongside your product data.

Disputes and chargebacks aren't included because Walmart has no public API for them.

Prerequisites

You need a US Walmart Marketplace seller account and an API key:

  1. In Seller Center, open API Integration, then API Key Management.
  2. In the Walmart Developer Portal, copy the client ID and client secret of your personal key pair.

The key needs access to orders, returns, and reports.

Adding a data source

  1. In PostHog, go to the Sources tab of the data pipeline section.
  2. Click + New source and click Link next to this source.
  3. Enter your credentials (see Configuration below) and click Next.
  4. Select the tables you want to sync, choose a sync method and frequency, then click Import.

Once the syncs are complete, you can start querying this data in PostHog.

When linking Walmart Marketplace, you'll need:

  • Client ID: the client ID of your personal key pair.
  • Client secret: the client secret of your personal key pair.

PostHog checks these credentials by requesting an access token from Walmart.

Sync modes

Each table can be synced in one of several modes, depending on what the source supports:

  • Webhook (when available) – the source pushes changes to PostHog in real time. Fastest freshness, lowest ongoing cost, and the only mode that reliably captures updates and deletes.
  • Incremental – only new or updated rows are synced on each run, using a cursor field (such as an updated_at timestamp). Cheaper than a full refresh, but deletes aren't captured.
  • Append only – new rows are appended using a cursor field; existing rows are never updated. Ideal for immutable, append-only tables like event logs.
  • Full refresh – the whole table is reloaded on every sync. Use it when a table has no reliable cursor or when you need deletions reflected.

See sync methods for a full explanation of how each mode works and how to choose between them.

All Walmart Marketplace tables support incremental sync and full refresh. Each table merges on its primary key, so append sync isn't available.

TablePrimary keyIncremental fieldNotes
orderspurchaseOrderIdorderDateIncludes seller-fulfilled, Walmart Fulfillment Services (WFS), and 3PL-fulfilled orders. Incremental syncs request orders modified since the last sync, so status changes update existing rows.
returnsreturnOrderIdreturnOrderDateIncremental syncs request returns modified since the last sync, so refunds and status changes update existing rows.
reconciliation_reportreport_date, row_numberreport_dateOne row per line of Walmart's payment reconciliation report. Each incremental sync re-reads the newest report in case Walmart added rows to it.

Walmart only serves about 180 days of order history, so older orders aren't imported.

Configuration

OptionTypeRequired
Client IDtextYes
Client secretpasswordYes

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
orders

Purchase orders placed with the seller on Walmart Marketplace, for every fulfillment type. Covers the last 180 days.

Incremental, Full refreshorderDate—
returns

Return orders, with refund amounts and the status of each returned line.

Incremental, Full refreshreturnOrderDate—
reconciliation_report

Rows of Walmart's payment reconciliation report: sales, refunds, commissions, fees and adjustments per settlement period.

Incremental, Full refreshreport_date—

Troubleshooting

  • Authorization (401) or token errors: Walmart rejected your API key. Check the client ID and client secret in the Walmart Developer Portal, then reconnect the source.
  • 403 Forbidden on a table: your API key can't read that table. Give the key access to orders, returns, and reports in the Walmart Developer Portal.
  • The orders table fails with more than 10,000 orders in a single hour: Walmart's orders API can't return more than 10,000 orders for one hour, so the orders table can't sync for that account.

If your sync is failing or data looks wrong, see the Data warehouse troubleshooting guide. If that doesn't help, contact support – we're happy to help.

Still have questions?

Was this page useful?