> For the complete documentation index, see [llms.txt](https://bump.sh/dealer-auction/doc/stock/llms.txt)

# End listing early

> POST /v1/testing/set-auction-end-time
> 
> This endpoint can be used to end your listing early which can be useful for end to end testing.
> 
> This endpoint will only work in our test environment.



## Servers
- Stock API: https://api.dealerauction.co.uk (Stock API)


## Authentication methods
- Basic


## Parameters



### Body: application/json (object)

- **listingId** (string)
  If listing ID is supplied then that will be the listing that is processed and stock ID will be ignored.

- **stockId** (string)
  If stock ID is supplied instead of listing ID then we will retrieve the latest listing and process it.

- **endTime** (string(date-time))



## Responses
### 429
Too Many Requests

#### Body: application/json (object)
- **errorCode** (string)

- **errorMessage** (string)


### 500
Internal Server Error

#### Body: application/json (object)
- **errorCode** (string)

- **errorMessage** (string)


### 404
Not Found

#### Body: application/json (object)
- **errorCode** (string)

- **errorMessage** (string)


### 502
Bad Gateway

#### Body: application/json (object)
- **errorCode** (string)

- **errorMessage** (string)


### 409
Conflict

#### Body: application/json (object)
- **errorCode** (string)

- **vrm** (string)


### 401
Unauthorized

#### Body: application/json (object)
- **errorCode** (string)

- **errorMessage** (string)


### 400
Bad Request

#### Body: application/json (object)
- **errorCode** (string)

- **errorMessage** (string)

- **errors** (array[object])


### 403
Forbidden

#### Body: application/json (object)
- **errorCode** (string)

- **errorMessage** (string)


### 200
OK


[Powered by Bump.sh](https://bump.sh)
