Shopify CSV Converter
Converts Shopify CSV order records into the formats external providers accept
Features
- Speeds up order processing and reduces manual work — exports tens of thousands of orders into a provider's required format in seconds
- Automatically identifies the provider for each order by SKU
- Automatically fills the blank cells left by multi-item orders
- Automatically completes missing county-level city data
- Automatically detects bundle orders
Supported Platforms
- Rouzao
- Any platform compatible with the Mabang or Mangoerp format
- Kingdee Guanyi ERP
Usage
bun run src/index.ts --outputDir '/export/dir' --input '/path/to/exported.csv'Options
--outputDir: Output directory--input: Path to the input CSV file--note: Note text, appended to the end of the file name
Shopify Coupon Generator
Automatically generates percentage-off discount coupons for a given Shopify product
bun run src/scripts/generateCoupon.ts --variantId 50019194634516 --discount 100 --pngOptions
--variantId: Shopify product variant ID--discount: Discount percentage--png: Whether to generate a PNG image
Environment Variables
PROVIDERS: Order SKU whitelist, split by comma, only SKU starts with these values will be importedORDER_PREFIXOrder prefix to avoid conflict with providers, mainly used by RouzaoGUANYI_ERP_SHOP_NAME: Shop name in Guanyi ERPGUANYI_ERP_PRIVATE_MODE: When private mode is enabled, no price amount will be exportedSHOPIFY_SHOP_SLUG: Shopify shop slugSHOPIFY_API_SECRET: Shopify custom developer app API secret
Repository
Last updated on September 9, 2026