> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bridgelinepf.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TEST_STEP_OUT_OF_ORDER

> A test helper step was called before the step that comes first. The message names it.

`409 Conflict` · type `conflict`

**When it happens**

You called [`POST /v1/test_helpers/applications/{id}/sign`](https://docs.bridgelinepf.com/api-reference/test-helpers/application-sign) or [`POST /v1/test_helpers/applications/{id}/down_payment`](https://docs.bridgelinepf.com/api-reference/test-helpers/application-down-payment) out of order, or for a step that already happened. A test application follows the live order: send the agreement, the insured signs, the down payment comes in, then the agent countersigns. The `message` says what's wrong:

| Message | Why |
| - | - |
| This application has no agreement out for signature. Send it first. | Nothing has been sent. Call [`POST /v1/applications/{id}/send`](https://docs.bridgelinepf.com/api-reference/applications/send) first. |
| This application is not waiting on signatures. | The application isn't at a stage where anyone signs, for example it was voided or canceled. |
| The insured has already signed this agreement. | You asked for the insured's signature a second time. |
| The insured hasn't signed yet. Simulate the insured's signature first. | The down payment or the countersignature came before the insured's signature. |
| The down payment is already in. | You simulated the down payment a second time. |
| The down payment isn't in yet. Simulate it first: the agent countersigns only after it. | The countersignature came before the down payment. |
| The agreement is already countersigned and the application is active. | Every step is done. |
| The application changed while this ran. Read it and try again. | Another request changed the application at the same moment. |

**What to do**

Read the application with [`GET /v1/applications/{id}`](https://docs.bridgelinepf.com/api-reference/applications/retrieve) to see where it is, then call the step that comes next. See [test and live mode](https://docs.bridgelinepf.com/concepts/test-and-live-mode.md#test-helpers).

## Example

```json 409 Conflict theme={null}
{
  "error": {
    "type": "conflict",
    "code": "TEST_STEP_OUT_OF_ORDER",
    "message": "The insured hasn't signed yet. Simulate the insured's signature first.",
    "doc_url": "https://docs.bridgelinepf.com/errors#TEST_STEP_OUT_OF_ORDER",
    "request_id": "req_8fJ2kQ9xLm4TzW7nB3cY5pDv"
  }
}
```

See all [error codes](https://docs.bridgelinepf.com/errors.md), or how to [handle errors](https://docs.bridgelinepf.com/guides/errors.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.