Skip to main content

Bulk test orders

Fills a test environment with realistic random orders so you have data to demo, test and train with. It picks random contacts and products from your own catalogue, so the orders look like real ones.

Runs: Outside Propeller · Trigger: Manual · Difficulty: Medium

Test environments only

This workflow creates real orders through the API. Run it only against a test or staging environment, never against production.

What you need​

  • An n8n account. See Set up n8n.
  • A Propeller API key for your test environment.

How it works​

The workflow fetches random pages of contacts and products, keeps contacts whose company has both a delivery and an invoice address and keeps products with a valid price. It then generates up to 100 orders, each for a random contact with 1 to 10 random products in random quantities. Each order gets a random status from the list in Settings (default NEW, CONFIRMED and VALIDATED). Orders are created through the same tender flow the webshop uses, in batches of 10.

Install it​

  1. In n8n, import the downloaded JSON as a new workflow.
  2. Create a header auth credential with the API key of your test environment and select it on every GraphQL node.
  3. In the Settings node, set API_URL to the API endpoint of your test environment and set I_CONFIRM_TEST_ENVIRONMENT to true. Until you do, the workflow stops with a message and creates nothing.
  4. Click Execute workflow to run it. The workflow starts with a manual trigger, so nothing runs unless you start it yourself. Replace the trigger with a Schedule trigger if you want fresh data on a recurring basis.
Filling in your API key

In n8n, create a credential of type Header Auth and fill in its two fields exactly like this:

FieldWhat to fill in
NameapiKey
ValueYour Propeller API key

Name is not a title you pick yourself. It has to say exactly apiKey, otherwise the workflow cannot sign in. See Set up n8n for the full steps.

Make it yours​

All settings sit in the Settings node.

  • Number of orders: ORDER_COUNT (default 100).
  • Order sizes: PRODUCTS_PER_ORDER (1 to 10 products) and QUANTITY (1 to 5 per line).
  • Statuses: STATUSES, the list each order gets a random status from.
  • Channel, order type and source: CHANNEL_ID (default 1), ORDER_TYPE (default purchase) and SOURCE (default Webshop).

Use it outside n8n​

Copy the JSON into an AI assistant and follow Adjust a workflow with an AI assistant.

Good to know

The workflows and agents in the Agent Hub are free to use and adapt. They are examples, not supported product features, so test them in a staging environment and check the results before using them in production.