---
updatedAt: 2026-11-10T18:06:50.000Z
agentTools:
  projectIndex: https://docs.flexfactor.io/llms.txt
---

# Cancel an application

> ❗️ This endpoint is not available
>
> `POST /v1/onboarding/application/{id}/cancel` is not available on the FlexFactor API. This page is hidden and kept for reference only.

This endpoint is used to cancel a pending application, regardless of its current status (e.g., **DRAFT**, **SUBMITTED**, **APPROVED**, or **DECLINED**). Canceling an application removes it from the onboarding workflow and marks it as **CANCELED** in the system.

***

<br />

* [Request](#request)
* [Response](#response)
* [Payload examples](#payload-examples)

***

<br />

# Request

## Endpoint

| environment                | HTTP method | endpoint                                                                  |
| :------------------------- | :---------- | :------------------------------------------------------------------------ |
| **Sandbox testing**        | POST        | <https://api-sandbox.flexfactor.io/v1/onboarding/application/{id}/cancel> |
| **Production environment** | POST        | <https://api.flexfactor.io/v1/onboarding/application/{id}/cancel>         |

<br />

## Required keys

| Parameter          | Description                                                                                  |
| ------------------ | -------------------------------------------------------------------------------------------- |
| **`{id}`**         | The unique application identifier returned during application creation or listing endpoints. |
| **`bearer token`** | The auth token returned by `/oauth2/token`                                                   |

<br />

## Body

This API does not require body parameters.

<br />

***

# Response

## Field Definitions

| Field Name           | Type         | Description                                  |
| -------------------- | ------------ | -------------------------------------------- |
| **HTTP Status Code** | Integer      | Returns **200** for successful cancellation. |
| **Response Body**    | Empty Object | The response body is empty.                  |

<br />

> ❗️ Note
>
> After receiving a successful response, update the application status in your CRM or internal system to **CANCELED**.

***

# Payload Examples

## Request

#### cURL Request Example

```bash
curl --request POST \
     --url https://api-sandbox.flexfactor.io/v1/onboarding/application/{application_id}/cancel \
     --header 'Authorization: Bearer {the token returned by /oauth2}' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '{}'
```

***

## Response

#### HTTP Example for a Successful Cancellation

```http
HTTP/1.1 200 OK
Content-Type: application/json

{}
```

***

## Example for Handling Errors

If the provided application ID is invalid or the bearer token is unauthorized, the API will return an appropriate error status and message.

```http
HTTP/1.1 400 Bad Request
Content-Type: application/json

{
  "errors": [
    "Invalid application ID."
  ]
}
```

```http
HTTP/1.1 401 Unauthorized
Content-Type: application/json

{
  "errors": [
    "Authentication failed. Invalid bearer token."
  ]
}
```

***

<br />

<br />

> ❕ Notes
>
> * Ensure the `{id}` parameter corresponds to a valid application.
> * The API returns an empty body on success; any errors will be provided in the response.
> * Use this endpoint to cancel applications in bulk automation workflows or as part of an internal cancellation process.