---
search:
  tags:
    - SupplierFinance
    - POST
seo:
  description: >-
    Any signed in user. Sets one batch's regulatory… Reference for the POST
    /api/v1/supplier-finance/batches/{batchId}/quarantine endpoint in the
    PharmaFlow API.
sidebar:
  label: Quarantine or release a batch
  badge: POST
title: Quarantine or release a batch
type: openapi-operation
---
Any signed in user. Sets one batch's regulatory status to quarantined, active, or recalled. A status outside those three is refused, so a batch cannot leave with an unknown state.

`POST /api/v1/supplier-finance/batches/{batchId}/quarantine`

**Request body** (`application/json`, required)

- `status` (string)

Request body example:

```json
{
  "status": "string"
}
```

**Responses**

- `200` — The batch with its new status
- `400` — Invalid quarantine status
- `401` — Not authenticated

Response example, 200:

```json
{
  "id": "string",
  "medicine_id": "string",
  "branch_id": "string",
  "supplier_id": "string",
  "batch_number": "string",
  "expiry_date": "string",
  "manufacturing_date": "string",
  "qty_received": -9007199254740991,
  "qty_remaining": -9007199254740991,
  "unit_cost": 0,
  "status": "string",
  "sfda_status": "string",
  "is_deleted": true,
  "created_at": "string"
}
```
