# 查询提现 (/zh/docs/conta-digital/endpoints/withdrawals/get_withdraw)

## GET /transactions/withdraw/{withdrawId}

`GET https://api.hub.payzu.com.br/api/v1/transactions/withdraw/{withdrawId}`

Scope: `WITHDRAW_READ`. Returns a withdrawal or a Pix copy-and-paste payment, with its current status. Accepts the withdrawal `id` and the webhook `withdrawId`.

### Path params

| Field | Type | Required | Details |
| --- | --- | --- | --- |
| `withdrawId` | string | yes | Withdrawal or Pix copy-and-paste payment identifier. |

### Responses

**200** Withdrawal.

| Field | Type | Required | Details |
| --- | --- | --- | --- |
| `id` | string | yes | Withdrawal identifier. The lookup accepts this `id` and the webhook `withdrawId`. |
| `status` | string | yes | `REQUESTED`: requested; the amount has already left the available balance. `CREATED`: registered at the bank. `APPROVED`: approved, on its way. `CONFIRMED`: the money arrived. `FAILED`: it did not go out, and the amount returned to the balance; it can come from `REQUESTED`, `CREATED` or `APPROVED`. — `REQUESTED`, `CREATED`, `APPROVED`, `CONFIRMED`, `FAILED` |
| `operation` | string | yes | `WITHDRAW`: withdrawal to a key. `EXTERNAL_PAYMENT`: Pix copy-and-paste payment. — `WITHDRAW`, `EXTERNAL_PAYMENT` |
| `amount` | integer | yes | Amount that reaches the destination. In cents. |
| `serviceFee` | integer | yes | Fee, added on top. In cents. |
| `totalDebited` | integer | yes | `amount + serviceFee`: what leaves the account. In cents. |
| `destination` | object | yes | Withdrawal destination. |
| `destination.pixKey` | string | yes | Destination key, masked: CPF, email and phone keys are masked; CNPJ and random keys are shown in full. |
| `destination.pixKeyType` | string | null | yes | Key type, inferred from the format. — `EVP`, `CNPJ`, `CPF`, `EMAIL`, `PHONE` |
| `comment` | string | null | yes | Text sent to the recipient. |
| `e2e` | string | null | yes | End-to-end ID of the Pix. `null` until the bank registers it. |
| `providerRejectedReason` | string | null | yes | Message ready to display, set when the bank refused. |
| `callbackUrl` | string | null | yes | The `callbackUrl` sent on creation. `null` when none was sent. |
| `createdAt` | string | yes | Date and time in ISO 8601, UTC. — format: date-time |
| `sentAt` | string | null | yes | When the bank registered the withdrawal. — format: date-time |
| `approvedAt` | string | null | yes | When the bank approved the withdrawal. — format: date-time |
| `confirmedAt` | string | null | yes | When the money reached the destination. — format: date-time |
| `failedAt` | string | null | yes | When the withdrawal failed. `null` if it did not fail. — format: date-time |

**401** Missing, invalid or expired credential.

| Field | Type | Required | Details |
| --- | --- | --- | --- |
| `message` | string | yes | Description in Portuguese, ready to display. It may change at any time. |
| `code` | string | yes | Stable error code. Your system decides what to do based on it. |
| `details` | object | no | Structured error context, when available. |

**403** Not allowed: scope, IP or disabled operation.

| Field | Type | Required | Details |
| --- | --- | --- | --- |
| `message` | string | yes | Description in Portuguese, ready to display. It may change at any time. |
| `code` | string | yes | Stable error code. Your system decides what to do based on it. |
| `details` | object | no | Structured error context, when available. |

**404** Not found, or from another account.

| Field | Type | Required | Details |
| --- | --- | --- | --- |
| `message` | string | yes | Description in Portuguese, ready to display. It may change at any time. |
| `code` | string | yes | Stable error code. Your system decides what to do based on it. |
| `details` | object | no | Structured error context, when available. |