---
title: "Withdraw credits from warehouse"
method: POST
path: "/organizations/{id}/warehouse/withdraw"
tags: ["Organization warehouse"]
---

# Withdraw credits from warehouse

`POST /organizations/{id}/warehouse/withdraw`

## Request

- Base URL: `https://api.carbonregistry.com`
- URL: `https://api.carbonregistry.com/organizations/{id}/warehouse/withdraw`
- Auth: none declared
- TypeScript: <https://skmtc.dev/carbonregistry/apis/carbon-registry-rest-api/docs/organizations/:id/warehouse/withdraw/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint withdraws credits from the organization warehouse.

## Path parameters

- `id` string, required

## Headers

- `x-icr-api-version` string

## Request body

- DepositOrganizationCreditsInWarehouseRequestDto
  - `tokenId` string, required: The onchain token id
  - `tokenAddress` string, required: The contract address of the token
  - `amount` number, required: The amount of tokens to deposit

## Response `200`

- DepositOrganizationCreditsInWarehouseResponseDto
  - `success` boolean, required: Whether the action was successful or not
  - `transactionId` string, required: Transaction id for this tx

---

[API](https://skmtc.dev/carbonregistry/apis/carbon-registry-rest-api.md) - [All operations](https://skmtc.dev/carbonregistry/apis/carbon-registry-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/carbonregistry/apis/carbon-registry-rest-api/revisions/a9f1b102faca?raw)
