Order Settlements Quickstart Guide
Table of Contents
- Introduction
- Core Concepts
- Setting Up Your Environment
- Stateset API Integration
- TikTok Shop Integration
- Amazon Integration
- Shopify Integration
- Consolidating Settlement Data
- Reporting and Analytics
- Automated Reconciliation
- Error Handling and Logging
- Best Practices and Optimization
Introduction
This guide demonstrates how to use Stateset’s API to manage order settlements across multiple e-commerce platforms: TikTok Shop, Amazon, Shopify, and Stateset’s own system. By following this guide, you’ll learn how to consolidate settlement data, process it efficiently, and gain insights into your multi-channel e-commerce operations.Core Concepts
Before diving into the implementation, let’s review some core concepts related to order settlements:- Settlement: A financial report that summarizes transactions over a specific period, including order revenue, fees, refunds, and adjustments.
- Payout: The actual transfer of funds from the e-commerce platform to the seller’s bank account.
- Reconciliation: The process of matching settlement data with actual received payments and internal order records.
- Fees: Charges applied by e-commerce platforms for their services (e.g., referral fees, fulfillment fees).
- Adjustments: Corrections or changes to settlement amounts due to various factors (e.g., customer claims, charge backs).
Setting Up Your Environment
- Sign up for Stateset at stateset.io/signup
- Generate an API Key in the Stateset Cloud Console
- Install the Stateset Node.js SDK:
- Set up environment variables:
- Initialize the Stateset client: