A comprehensive set of Postman collections for popular e-commerce platform APIs.
| Collection | Requests | Description |
|---|---|---|
| Shopify GraphQL API | 30 | Full GraphQL Admin API coverage |
| Shopify REST API | 19 | REST Admin API endpoints |
| BigCommerce API | 17 | Store, Catalog, Orders, Customers, Error Handling |
| WooCommerce API | 19 | Full REST API v3 coverage |
| Magento API | 10 | Products, Categories, Orders, Customers, Inventory, Store |
| TrustPilot API | 8 | Reviews, Business Units, Invitations API |
- Automatic ID Extraction: List endpoints automatically extract IDs for use in subsequent "get by ID" requests
- Smart Skip Logic: Tests skip gracefully when required IDs or credentials aren't available
- No False Failures: Tests pass when credentials aren't configured (skipped instead of failed)
- Cross-Platform: Includes both bash (
run-tests.sh) and PowerShell (run-tests.ps1) test runners
# Clone the repository
git clone https://github.com/your-org/ecommerce-api-postman-collections.git
# Or download and import directly into Postman- Open Postman
- Click Import
- Select the collection files you need
Each collection includes pre-defined variables. Choose your preferred method:
Option A: Collection Variables (Quickest)
- Click on the collection name in Postman
- Go to the Variables tab
- Fill in the "Current value" column
- Save and start making requests
Option B: Environment Variables (Best for multiple stores)
- Import
Ecommerce_APIs.postman_environment.json - Fill in your credentials for each platform
- Select the environment from the dropdown
- Switch environments to test different stores
Note: Environment variables override collection variables, so you can use both approaches together.
Each collection is self-contained with authentication pre-configured.
Comprehensive GraphQL Admin API collection with proper graphql body type for Postman's GraphQL features.
📁 Shop & App (4) - Shop info, scopes, publications, locations
📁 Products (6) - CRUD, search, metafields, publications
📁 Variants (2) - Variant queries
📁 Inventory (4) - Items, levels, adjustments
📁 Collections (2) - List and products
📁 Orders (2) - List and details
📁 Customers (1) - Customer queries
📁 Metafields (2) - Set and delete
📁 Bulk Operations (4) - Async bulk exports
📁 Webhooks (3) - Subscription management
Set these environment variables:
shopify_store- Your store name (without.myshopify.com)shopify_token- Admin API access token (shpat_...)shopify_api_version- API version (default:2025-01)
query GetProduct($id: ID!) {
product(id: $id) {
id
title
variants(first: 10) {
edges {
node {
sku
price
}
}
}
}
}REST endpoints for the Shopify Admin API.
📁 Products - CRUD operations
📁 Variants - Variant management
📁 Inventory - Inventory items and levels
📁 Metafields - Product metafields
📁 Collections - Smart and custom collections
📁 Product Images - Image management
Uses X-Shopify-Access-Token header with your Admin API token.
BigCommerce REST API v2/v3 with comprehensive catalog, order, and customer coverage.
📁 Store (1) - Store information
📁 Products & Variants (4) - Products, variants with ID extraction
📁 Categories (3) - Categories and category tree
📁 Brands (2) - Brand management
📁 Customers (2) - Customer queries
📁 Orders (3) - Orders and order products
📁 Error Handling Tests (2) - 404 and 401 negative test cases
Set these environment variables:
bigcommerce_store_hash- Your store hash (from API path)bigcommerce_token- API token (X-Auth-Token)bigcommerce_client_id- Client ID (X-Auth-Client)
The collection automatically extracts and chains:
bigcommerce_product_id→ from List Productsbigcommerce_variant_id→ from List Productsbigcommerce_category_id→ from List Categoriesbigcommerce_brand_id→ from List Brandsbigcommerce_customer_id→ from List Customersbigcommerce_order_id→ from List Orders
WooCommerce REST API v3 with comprehensive store coverage.
📁 System (1) - System status and environment info
📁 Products (4) - Products and variations with ID extraction
📁 Categories (2) - Product categories
📁 Orders (3) - Orders and order notes
📁 Customers (2) - Customer management
📁 Coupons (2) - Coupon management
📁 Shipping (2) - Shipping zones and methods
📁 Payment Gateways (1) - Payment gateway configuration
📁 Tax (2) - Tax classes and rates
Uses query string authentication:
woo_store_url- Full store URL (e.g.,https://mystore.com)woo_consumer_key- Consumer key (ck_...)woo_consumer_secret- Consumer secret (cs_...)
The collection automatically extracts and chains:
woo_product_id→ from List Productswoo_variable_product_id→ from List Products (first variable product)woo_variation_id→ from List Product Variationswoo_category_id→ from List Categorieswoo_order_id→ from List Orderswoo_customer_id→ from List Customerswoo_coupon_id→ from List Couponswoo_shipping_zone_id→ from List Shipping Zones
Magento 2 REST API with comprehensive store coverage.
📁 Products (2) - List products, get product by SKU
📁 Categories (1) - List categories
📁 Orders (2) - List orders, get order by ID
📁 Customers (2) - List customers, get customer by ID
📁 Inventory (1) - Get stock items
📁 Store (2) - Store config, store groups
Supports both:
- Bearer Token: Set
magento_store_urlandmagento_token - OAuth 1.0: Set
magento_store_url, consumer key, consumer secret, access token, and token secret
The collection automatically extracts and chains:
magento_order_id→ from List Ordersmagento_customer_id→ from List Customers
TrustPilot Business API for reviews, business units, and invitations.
- Auth Call (OAuth token retrieval)
- Upsert Products
- Get Products
- Get Business Unit
- Get Product Reviews
- Get Review by ID
- Get Business Unit Stats
- Create Service Review Invitation
The collection automatically extracts and chains:
trustpilot_review_id→ from Get Product Reviews
- Set
trustpilot_api_keyandtrustpilot_api_secret - Set
trustpilot_username,trustpilot_password, andtrustpilot_business_unit_id - Run "Auth Call" to get an access token (stored in
trustpilot_access_token) - Use the token for subsequent requests
All variables use platform prefixes for clarity. The environment file is organized by platform with visual separators.
| Variable | Required | Description |
|---|---|---|
shopify_store |
✅ | Store name without .myshopify.com |
shopify_token |
✅ | Admin API access token (shpat_...) |
shopify_api_version |
✅ | API version (default: 2025-01) |
shopify_product_id |
Product ID for testing | |
shopify_variant_id |
Variant ID | |
shopify_location_id |
Location ID for inventory | |
shopify_inventory_item_id |
Inventory item ID | |
shopify_collection_id |
Collection ID | |
shopify_order_id |
Order ID | |
shopify_webhook_callback_url |
Webhook endpoint URL |
| Variable | Required | Description |
|---|---|---|
bigcommerce_store_hash |
✅ | Store hash from API path |
bigcommerce_token |
✅ | API access token (X-Auth-Token) |
bigcommerce_client_id |
✅ | API client ID (X-Auth-Client) |
bigcommerce_product_id |
Auto | Product ID (extracted from List Products) |
bigcommerce_variant_id |
Auto | Variant ID (extracted from List Products) |
bigcommerce_category_id |
Auto | Category ID (extracted from List Categories) |
bigcommerce_brand_id |
Auto | Brand ID (extracted from List Brands) |
bigcommerce_customer_id |
Auto | Customer ID (extracted from List Customers) |
bigcommerce_order_id |
Auto | Order ID (extracted from List Orders) |
| Variable | Required | Description |
|---|---|---|
woo_store_url |
✅ | Full store URL with protocol |
woo_consumer_key |
✅ | Consumer key (ck_...) |
woo_consumer_secret |
✅ | Consumer secret (cs_...) |
woo_product_id |
Auto | Product ID (extracted from List Products) |
woo_variable_product_id |
Auto | Variable product ID (extracted from List Products) |
woo_variation_id |
Auto | Variation ID (extracted from List Variations) |
woo_category_id |
Auto | Category ID (extracted from List Categories) |
woo_order_id |
Auto | Order ID (extracted from List Orders) |
woo_customer_id |
Auto | Customer ID (extracted from List Customers) |
woo_coupon_id |
Auto | Coupon ID (extracted from List Coupons) |
woo_shipping_zone_id |
Auto | Shipping zone ID (extracted from List Zones) |
| Variable | Required | Description |
|---|---|---|
magento_store_url |
✅ | Full store URL with protocol |
magento_token |
✅* | Integration access token |
magento_consumer_key |
OAuth 1.0 consumer key | |
magento_consumer_secret |
OAuth 1.0 consumer secret | |
magento_access_token |
OAuth 1.0 access token | |
magento_token_secret |
OAuth 1.0 token secret | |
magento_order_id |
Auto | Order ID (extracted from List Orders) |
magento_customer_id |
Auto | Customer ID (extracted from List Customers) |
*Required for Bearer auth. Use OAuth variables instead if using OAuth 1.0.
| Variable | Required | Description |
|---|---|---|
trustpilot_host |
✅ | API host (default: https://api.trustpilot.com/) |
trustpilot_api_key |
✅ | API key |
trustpilot_api_secret |
✅ | API secret |
trustpilot_username |
✅ | Account email |
trustpilot_password |
✅ | Account password |
trustpilot_business_unit_id |
✅ | Business Unit ID |
trustpilot_access_token |
Auto | OAuth token (from Auth Call) |
trustpilot_review_id |
Auto | Review ID (extracted from Get Product Reviews) |
All collections include test scripts that validate successful responses. You can run these tests using Newman (Postman's CLI).
# Install Newman
npm install -g newman newman-reporter-htmlextra
# Copy and configure credentials
cp .env.example .env
# Edit .env with your credentialsLinux/macOS (bash):
# Run all tests
./run-tests.sh
# Run specific platform
./run-tests.sh shopify # Shopify GraphQL only
./run-tests.sh shopify-all # Both Shopify collections
./run-tests.sh bigcommerce
./run-tests.sh woocommerce
./run-tests.sh magento
./run-tests.sh trustpilotWindows (PowerShell):
# Run all tests
.\run-tests.ps1
# Run specific platform
.\run-tests.ps1 shopify # Shopify GraphQL only
.\run-tests.ps1 shopify-all # Both Shopify collections
.\run-tests.ps1 bigcommerce
.\run-tests.ps1 woocommerce
.\run-tests.ps1 magento
.\run-tests.ps1 trustpilotHTML reports are generated in the reports/ directory after each run.
This repository includes a GitHub Actions workflow (.github/workflows/api-tests.yml) that:
- Runs on push to main/master
- Runs on pull requests
- Can be triggered manually
- Runs on a daily schedule
Setup:
- Go to your repository's Settings → Secrets and variables → Actions
- Add the required secrets for each platform you want to test:
| Platform | Required Secrets |
|---|---|
| Shopify | SHOPIFY_STORE, SHOPIFY_TOKEN |
| BigCommerce | BIGCOMMERCE_STORE_HASH, BIGCOMMERCE_TOKEN, BIGCOMMERCE_CLIENT_ID |
| WooCommerce | WOO_STORE_URL, WOO_CONSUMER_KEY, WOO_CONSUMER_SECRET |
| Magento | MAGENTO_STORE_URL, MAGENTO_TOKEN |
| TrustPilot | TRUSTPILOT_API_KEY, TRUSTPILOT_API_SECRET, TRUSTPILOT_USERNAME, TRUSTPILOT_PASSWORD, TRUSTPILOT_BUSINESS_UNIT_ID |
- Tests will automatically skip for platforms without configured secrets
Each request validates:
- Status Code: 2xx response
- Response Time: Under 5 seconds
- JSON Validity: Valid JSON when Content-Type is application/json
- GraphQL Errors: No errors in GraphQL response body (Shopify GraphQL only)
Tests automatically skip (instead of failing) when:
- Credentials not configured: Platform credentials are empty or placeholder values
- Required IDs not available: "Get by ID" endpoints skip when list endpoints returned no data
- Optional features missing: e.g., no variable products, no orders, no customers
- Fork the repository
- Create a feature branch
- Make your changes
- Ensure no credentials are included
- Submit a pull request
- Use environment variables for all sensitive data
- Include descriptions for new endpoints
- Follow existing folder organization
- Test requests before submitting
- All sensitive values use Postman's
secretvariable type - Environment file is a template with empty values
- Use Postman's environment management for your credentials
MIT License - See LICENSE for details.