GET /stocks/warehouses/{warehouseId}/check-associations

Check if warehouse has dependencies

This endpoint allows you to determine if a specific warehouse has any existing dependencies (such as associated operators or ongoing purchases).

Operation ID: getWarehousesAssociations
lock This endpoint requires a Bearer token in the Authorization header.

Path Parameters

Name Type Description
warehouseId required
path
string

The unique identifier of the warehouse within the system. This ID is immutable and assigned upon creation.

Example: 1

Query Parameters

Name Type Description
associations
query
string

A comma-separated list of dependencies (related resources).

operators purchases

Responses

status string required
success
data object required
operators boolean

Indicates if the warehouse has associated operators (whose default warehouse is this one) that prevent deletion. 'true' if dependencies exist, 'false' otherwise.

purchases boolean

Indicates if the warehouse has ongoing purchases that prevent deletion. 'true' if dependencies exist, 'false' otherwise.

status string
error
error object
http_code integer
401
message string

Example: Authentication token invalid.

more_info string
status string
error
error object
http_code integer
429
message string

Example: Too Many Requests.

more_info string
status string
error
error object
http_code integer
500
message string

Example: An error has occurred during the request.

more_info string