---
title: "Withdrawal Transaction"
method: POST
path: "/GenerateWithdrawalClosedLoop"
tags: ["Transactions"]
---

# Withdrawal Transaction

`POST /GenerateWithdrawalClosedLoop`

This API is responsible for generating a Withdrawal transaction. When triggered, it creates a QR Code or a 6-digit token that the final user will use to confirm the Withdrawal in their application.

## Request body

- object
  - `Method` string, required — Text Containing The Name Of The Method
  - `BusinessUnitId` integer, required — Number Of The BusinessUnit
  - `PartnerId` integer, required — Number Of The Partner
  - `ContractIdentifier` string, required — The Store's ContractIdentifier
  - `Value` number, required — Value Of The Transaction without Rates
  - `UserRate` number, required — User Rate value
  - `MerchantAccountKey` string, required — Merchant Account Identifier
  - `Identifier` string, required — Identifier Of The Transaction
  - `InitiationType` integer, required — The type of user initiation: 0 for Code, 1 for QRCode

## Response `200`

Possible responses for a request

- union
  - GenerateClosedLoopTransactionCode
    - `Success` boolean — True or False
    - `Message` string — Returned message
    - `TransactionIdentifier` string — Transaction Identifier
    - `TransactionCode` string — Code to Confirm Closed Loop Transaction
  - GenerateClosedLoopdTransactionQRCode
    - `Success` boolean — True or False
    - `Message` string — Returned message
    - `TransactionIdentifier` string — Transaction Identifier
    - `Hash` string — The transaction identifier to confirm it
    - `Image` string — A Base64 Image Containing A QR Code

---

[API](https://skmtc.net/fitbank/apis/onboarding.md) · [All operations](https://skmtc.net/fitbank/apis/onboarding/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fitbank/onboarding/revisions/f94d262a8f58/schema)
