# store test-order

> Place a real order, so your app gets real order events.

Source: https://storeware.ai/docs/cli/commands/store-test-order

```bash
npx @storeware/cli store test-order [flags]
```

## Flags

| Flag | What it does |
| --- | --- |
| `--store <handle>` | Which development store, by handle or id. Your first one when not given. |
| `--paid` | Also mark it paid, so `order.paid.v1` follows. |
| `--pay <outcome>` | Pay it by a test payment instead, ending the way you say: `approve`, `decline`, `needs_action` or `error`. |
| `--json` | Print the order as JSON, for a script. |

## Examples

```bash
npx @storeware/cli store test-order
npx @storeware/cli store test-order --paid
npx @storeware/cli store test-order --pay decline
```

More in [Test payments](https://storeware.ai/docs/get-started/test-payments). Every command also takes the [flags on the reference page](https://storeware.ai/docs/cli/commands#flags-every-command-takes).
