# Release remaining order amount

`POST /v3/session/{sessionId}/order/release-remaining`

Section: Order Management. Base URLs: Playground https://playground-api.briqpay.com, Production https://api.briqpay.com. Auth: HTTP Basic.

Release the remaining uncaptured amount of a partially captured order. This signals to the payment provider that no further captures will be made, effectively closing out the order. It is only possible to release remaining on an order that has been partially captured (`captured_partial` status). Orders that have not been captured, are fully captured, cancelled, pending, or rejected cannot have their remaining amount released.

## Path parameters

- `sessionId` (string, required): **Format:** UUID

## Headers

- `Content-Type` (string, one of: `"application/json"`)
- `Accept` (string, one of: `"application/json"`)
- `Authorization` (string): Format: "Basic <base64(username:secret)>"

## Request example

```bash
curl -X POST 'https://playground-api.briqpay.com/v3/session/{sessionId}/order/release-remaining' \
  -H 'Authorization: Basic <base64(merchantId:secret)>' \
  -H 'Content-Type: application/json'
```

## Responses

### 204

No content.

### 400

- `error` (object)
  - `code` (string, one of: `"INVALID_CREDENTIALS"`, `"OPERATION_NOT_SUPPORTED"`, `"ORDER_NOT_COMPLETED"`, `"ORDER_REJECTED"`, `"ORDER_PENDING"`, `"ORDER_ALREADY_CANCELLED"`, `"UNKNOWN"`)
  - `message` (string)

### 403

- `error` (object)
  - `code` (string, one of: `"INVALID_CREDENTIALS"`, `"INVALID_API_KEY"`, `"AUTH_SECRET_EXPIRED"`)
  - `message` (string)

### 404

- `error` (object)
  - `code` (string, one of: `"SESSION_NOT_FOUND"`)
  - `message` (string)
