latestOpenAPI 3.0.02026-08-10517386.6 KB

a9f1b102faca

Organization warehouse

Withdraw credits from warehouse

This endpoint withdraws credits from the organization warehouse.

post/organizations/{id}/warehouse/withdraw

Path parameters

idstring required

Headers

x-icr-api-versionstring

API version

Request body

tokenIdstring required

The onchain token id

tokenAddressstring required

The contract address of the token

amountnumber required

The amount of tokens to deposit

Example request

{
  "tokenId": "1",
  "tokenAddress": "0x51298f2f1142ecb129a2db5e6afd24f34f2e53f1",
  "amount": 10
}

Response

successboolean required

Whether the action was successful or not

transactionIdstring required

Transaction id for this tx