---
title: "Create new invoice"
method: GET
path: "/operations/withdraw"
tags: ["transaction", "withdraw"]
---

# Create new invoice

`GET /operations/withdraw`

## Request

- Base URL: `https://plisio.loc/api/v1`
- URL: `https://plisio.loc/api/v1/operations/withdraw`
- Auth: API key in query parameter `api_key`

## Query parameters

- `psys_cid` string, required
- `to` string, required
- `amount` string, required
- `type` string, required
- `feePlan` string

## Response `200`

Returns WithdrawApiResponseDto object

- WithdrawApiResponseDto
  - `status` string: success or error
  - `data` WithdrawResponseDto
    - `type` string: 'cash_out' or 'mass_cash_out' depending on the request
    - `status` string: Cash-out status 'competed', 'error'
    - `psys_cid` string: ID column from https://plisio.net/documentation/appendices/supported-cryptocurrencies
    - `currency` string: Code column from https://plisio.net/documentation/appendices/supported-cryptocurrencies
    - `source_currency` string: Fiat currency - only USD available for the moment
    - `source_rate` string: Exchange rate from the “psys_cid” to the “source_currency” at the moment of transfer
    - `fee` string: Transaction fee stated in the transfer
    - `wallet_hash` string: Destination hash (type=cash_out)
    - `sendmany` string[]: Pairs of hashes and values (type=mass_cash_out)
    - `params` FeeParamsDto
      - `conf_target` string: estimated fee parameter to confirm the transaction in the “conf_target” blocks
      - `plan` string: the Plisio’s fee plan name
      - `value` string: fee value
    - `created_at_utc` integer: timestamp in the UTC timezone; it may need to be divided by 1000
    - `amount` string: transfer amount in cryptocurrency
    - `tx_url` string: link to the cryptocurrency block explorer
    - `tx_id` string[]: array of transaction ids
    - `id` string: internal Plisio operation ID
    - `txn_id` string: internal Plisio operation ID

## Other responses

- `401`: Returns error
- `404`: Returns error
- `422`: Returns error
- `500`: Returns error

---

[API](https://skmtc.dev/plisio/apis/plisio-api-plisio-loc.md) · [All operations](https://skmtc.dev/plisio/apis/plisio-api-plisio-loc/llms.txt) · [OpenAPI document](https://skmtc.dev/plisio/apis/plisio-api-plisio-loc/revisions/b54f70a29304?raw)
