Skip to content
SwapWalletDocs
فارسیGet an API key

Toman withdrawals

A Toman withdrawal pays Toman from your balance into a bank account, by its IBAN (Sheba). The IBAN must be registered on your SwapWallet account and be in your own name. Registering one needs identity verification at level «متوسط»: national ID, date of birth and a bank card in your own name. It takes about a minute in the app and is done once.

It takes two calls:

  1. Preview a Toman withdrawal for the IBAN and amount: the fee, the most you can withdraw now and the bank.
  2. Create a Toman withdrawal.

Amounts are whole Toman (IRT). A large withdrawal is paid in several bank transfers, one after another, listed in fiatWithdraw.transfers; a large daily total can be held for a manual review before it’s sent. The withdrawal stays PENDING until the bank has taken every transfer.

Balance and limit errors (INSUFFICIENT_USER_BALANCE, USER_DO_NOT_CONSIDER_NETWORK_FEE, LIMIT_DAILY_WITHDRAW_EXCEEDED, LIMIT_MONTHLY_WITHDRAW_EXCEEDED, USER_BALANCE_LOCKED) carry one more field, error.suggestionAmount: the most you can withdraw right now, as a Money object.

The Toman withdrawal preview object

What a Toman withdrawal of a given amount to a given IBAN would look like.

Attributes

  • feeMoneyRequired

    Withdrawal fee for this amount and IBAN, in IRT.

    Show child attributesHide child attributes
    • numberdecimal stringRequired

      The amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.

    • unitstringRequired

      The token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.

  • receivedAmountMoneyRequired

    amount − fee when feeDeductType is INTERNAL, amount when it’s EXTERNAL. Note that a withdrawal created with INTERNAL sends the full amount and takes fee from your balance on top.

    Show child attributesHide child attributes
    • numberdecimal stringRequired

      The amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.

    • unitstringRequired

      The token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.

  • isInstantWithdrawAvailablebooleanRequired

    Whether this IBAN can be paid by an instant account-to-account transfer. Currently true only for Bank Saderat IBANs. Not a guarantee: the bank network has the last word.

  • minWithdrawMoneyRequired

    Smallest amount you can withdraw.

    Show child attributesHide child attributes
    • numberdecimal stringRequired

      The amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.

    • unitstringRequired

      The token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.

  • maxWithdrawMoneyRequired

    The most you can withdraw to this IBAN now: what your Toman balance covers with the fees on top, within your daily and monthly limits.

    Show child attributesHide child attributes
    • numberdecimal stringRequired

      The amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.

    • unitstringRequired

      The token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.

  • ibanstringRequired

    The IBAN you asked about.

  • bankstringRequired

    Bank of the IBAN, such as SAMAN.

  • predictedDoneDateISO 8601 timestampRequired

    Not an estimate yet: it currently returns the time of the request. Don’t rely on it.

The Toman withdrawal preview object
{
  "fee": {
    "number": "2200",
    "unit": "IRT"
  },
  "receivedAmount": {
    "number": "4997800",
    "unit": "IRT"
  },
  "isInstantWithdrawAvailable": false,
  "minWithdraw": {
    "number": "15000",
    "unit": "IRT"
  },
  "maxWithdraw": {
    "number": "48239100",
    "unit": "IRT"
  },
  "iban": "IR040560611828005553419001",
  "bank": "SAMAN",
  "predictedDoneDate": "2026-11-20T10:30:12.551204Z"
}

The Toman withdrawal transaction

A Transaction object with type FIAT_WITHDRAW. Its supportCode is the whole request’s; fiatWithdraw holds the details.

Attributes

  • idintegerRequired

    Transaction ID; for a withdrawal paid in several transfers, the first transfer’s.

  • supportCodestringRequired

    Code to quote to support, such as SW-K7NP2QR-MXVT.

  • timestampintegerRequired

    When SwapWallet recorded the transaction, in Unix milliseconds. For a crypto deposit, the time it was credited, not its block time.

  • typeenumRequired

    Always FIAT_WITHDRAW.

    Possible values

    • FIAT_WITHDRAW
  • statusenumRequired

    Where the withdrawal stands.

    Possible values

    • PENDINGAt least one transfer hasn’t been taken by the bank yet.
    • SUCCEEDThe bank has taken every transfer.
  • networkenumRequired

    Always INTERNAL.

    Possible values

    • INTERNAL
  • exchangeFeeMoneyRequired

    Total withdrawal fee, the sum of every transfer’s fee.

    Show child attributesHide child attributes
    • numberdecimal stringRequired

      The amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.

    • unitstringRequired

      The token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.

  • fiatWithdrawobjectRequired

    Withdrawal details.

    Show child attributesHide child attributes
    • amountMoneyRequired

      Total amount sent to the bank account, in IRT, across all transfers.

      Show child attributesHide child attributes
      • numberdecimal stringRequired

        The amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.

      • unitstringRequired

        The token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.

    • valueMoneyRequired

      Value in US dollars (USD) at the time of the transaction.

      Show child attributesHide child attributes
      • numberdecimal stringRequired

        The amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.

      • unitstringRequired

        The token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.

    • userCurrencyValueMoneyRequired

      The same value in your account's display currency, usually IRT. It's converted at the current rate each time you read it, so it moves with the market.

      Show child attributesHide child attributes
      • numberdecimal stringRequired

        The amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.

      • unitstringRequired

        The token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.

    • ibanstringRequired

      Destination IBAN (Sheba).

    • bankstringRequired

      Bank of the IBAN, such as SAMAN or MELLAT.

    • holderNamestringRequired

      Account holder’s name.

    • predictedDoneTimeISO 8601 timestamp

      When the bank is expected to settle it. Left out when there is no estimate still ahead.

    • publicReceiptUrlstring

      Link to the bank receipt. Present only for a single-transfer withdrawal that the bank has taken.

    • trackingCodestring

      Bank tracking code. Present only for a single-transfer withdrawal that the bank has taken.

    • trackingCodeMethodenum

      Which kind of code trackingCode is.

      Possible values

      • A2AAccount-to-account; the code is a tracking number (شماره پیگیری).
      • ACHPAYA; the code is a reference code (کد رهگیری).
      • RTGSSATNA; the code is a reference code (کد رهگیری).
    • transfersarray of objectsRequired

      The bank transfers the withdrawal is paid in. A large withdrawal is split into several, sent one after another.

      Show child attributesHide child attributes
      • idintegerRequired

        ID of this transfer.

      • amountMoneyRequired

        Amount of this transfer.

        Show child attributesHide child attributes
        • numberdecimal stringRequired

          The amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.

        • unitstringRequired

          The token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.

      • feeMoneyRequired

        Withdrawal fee for this transfer.

        Show child attributesHide child attributes
        • numberdecimal stringRequired

          The amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.

        • unitstringRequired

          The token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.

      • statusenumRequired

        Whether the bank has taken this transfer.

        Possible values

        • PENDINGNot yet sent to or taken by the bank.
        • SUCCEEDThe bank has taken it.
      • methodenum

        How it’s paid. Left out until it’s sent.

        Possible values

        • A2AAccount-to-account; the code is a tracking number (شماره پیگیری).
        • ACHPAYA; the code is a reference code (کد رهگیری).
        • RTGSSATNA; the code is a reference code (کد رهگیری).
      • predictedDoneTimeISO 8601 timestamp

        Expected settlement time, when there is one still ahead.

      • publicReceiptUrlstring

        Link to the bank receipt, once there is one.

      • trackingCodestring

        Bank tracking code, once there is one.

      • trackingCodeMethodenum

        Which kind of code trackingCode is.

        Possible values

        • A2AAccount-to-account; the code is a tracking number (شماره پیگیری).
        • ACHPAYA; the code is a reference code (کد رهگیری).
        • RTGSSATNA; the code is a reference code (کد رهگیری).
The Toman withdrawal transaction
{
  "id": 3052688,
  "supportCode": "SW-W9FP3ZC-QL7M",
  "timestamp": 1795170645000,
  "type": "FIAT_WITHDRAW",
  "status": "PENDING",
  "network": "INTERNAL",
  "exchangeFee": {
    "number": "2200",
    "unit": "IRT"
  },
  "fiatWithdraw": {
    "amount": {
      "number": "5000000",
      "unit": "IRT"
    },
    "value": {
      "number": "18.35536",
      "unit": "USD"
    },
    "userCurrencyValue": {
      "number": "5000000",
      "unit": "IRT"
    },
    "iban": "IR040560611828005553419001",
    "bank": "SAMAN",
    "holderName": "مریم کاظمی",
    "transfers": [
      {
        "id": 3052688,
        "amount": {
          "number": "5000000",
          "unit": "IRT"
        },
        "fee": {
          "number": "2200",
          "unit": "IRT"
        },
        "status": "PENDING"
      }
    ]
  }
}

Preview a Toman withdrawal

GET/v1/bank/fiat-withdraw/config

Returns the withdrawal fee for an amount and IBAN, the most you can withdraw to it right now, and its bank. Nothing is withdrawn. Call it before creating a withdrawal and pass the fee you get.

Query parameters

  • ibanstringRequired

    IBAN registered on your account, such as IR040560611828005553419001.

  • amountdecimal stringRequired

    Amount in Toman. The fee is worked out from it.

  • feeDeductTypeenum

    Only changes how receivedAmount is worked out.

    Default: INTERNAL

    Possible values

    • INTERNALreceivedAmount is amount − fee.
    • EXTERNALreceivedAmount is amount.

Returns

Returns a Toman withdrawal preview object in result.

Errors

  • 404IBAN_NOT_FOUND

    The IBAN isn’t registered on your account.

  • 400MINIMUM_SETTLEMENT_DIDNT_MEET

    amount is below the minimum.

  • 400INSUFFICIENT_USER_BALANCE

    Your Toman balance doesn’t cover amount plus the fee.

  • 400LIMIT_DAILY_WITHDRAW_EXCEEDED

    Over your daily Toman withdrawal limit.

  • 400LIMIT_MONTHLY_WITHDRAW_EXCEEDED

    Over your monthly Toman withdrawal limit.

  • 400TEMPORARY_DISABLED

    Toman withdrawals are paused for now.

GET/v1/bank/fiat-withdraw/config
curl -G https://swapwallet.app/api/v1/bank/fiat-withdraw/config \
  -H "Authorization: Bearer $SWAPWALLET_API_KEY" \
  -d iban=IR040560611828005553419001 \
  -d amount=5000000
Response
{
  "status": "OK",
  "result": {
    "fee": {
      "number": "2200",
      "unit": "IRT"
    },
    "receivedAmount": {
      "number": "4997800",
      "unit": "IRT"
    },
    "isInstantWithdrawAvailable": false,
    "minWithdraw": {
      "number": "15000",
      "unit": "IRT"
    },
    "maxWithdraw": {
      "number": "48239100",
      "unit": "IRT"
    },
    "iban": "IR040560611828005553419001",
    "bank": "SAMAN",
    "predictedDoneDate": "2026-11-20T10:30:12.551204Z"
  }
}

Create a Toman withdrawal

POST/v1/bank/fiat-withdraw

Withdraws Toman from your balance to an IBAN registered on your account. The amount and the fee leave your balance at once; the bank transfer follows.

Pass fee from the preview: if the fee has changed since, the request fails instead of charging the new fee.

With the default INTERNAL, the bank account receives the full amount and the fee is taken from your Toman balance on top. The preview’s receivedAmount assumes the opposite, so budget for amount + fee.

Body parameters

  • amountMoneyRequired

    Amount to withdraw, in IRT.

    At least minWithdraw from the preview

    Show child attributesHide child attributes
    • numberdecimal stringRequired

      The amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.

    • unitstringRequired

      The token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.

  • ibanstringRequired

    IBAN registered on your account, in your own name.

  • feeMoneynullable

    The fee you expect, from the preview. If it doesn’t match, the request fails with TRANSACTION_FEE_HAS_CHANGED. Recommended.

    Show child attributesHide child attributes
    • numberdecimal stringRequired

      The amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.

    • unitstringRequired

      The token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.

  • feeDeductTypeenumnullable

    How the fee is applied.

    Default: INTERNAL

    Possible values

    • INTERNALThe bank account receives amount; your balance goes down by amount + fee.
    • EXTERNALThe fee for amount is added to the transfer itself, so the bank account receives amount + that fee, and the fee for the larger transfer is taken from your balance on top. Compare fee with that larger fee.
  • remarkstringnullable

    A private note for your own records, saved on the transaction in the app.

Returns

Returns the Toman withdrawal transaction in result, with status PENDING.

Errors

  • 404IBAN_NOT_FOUND

    The IBAN isn’t registered on your account. Register it in the app; that needs identity verification at level «متوسط».

  • 400TRANSACTION_FEE_HAS_CHANGED

    fee doesn’t match the current fee. Preview again.

  • 400MINIMUM_SETTLEMENT_DIDNT_MEET

    amount is below the minimum.

  • 400INSUFFICIENT_USER_BALANCE

    Your Toman balance doesn’t cover amount plus the fee.

  • 400LIMIT_DAILY_WITHDRAW_EXCEEDED

    Over your daily Toman withdrawal limit.

  • 400LIMIT_MONTHLY_WITHDRAW_EXCEEDED

    Over your monthly Toman withdrawal limit.

  • 404INVALID_TOKEN_ENUM

    amount.unit isn’t IRT.

  • 400USER_ACCOUNT_LIMITED

    Withdrawals from your account are limited. Contact support.

  • 400TEMPORARY_DISABLED

    Toman withdrawals are paused for now.

POST/v1/bank/fiat-withdraw
curl -X POST https://swapwallet.app/api/v1/bank/fiat-withdraw \
  -H "Authorization: Bearer $SWAPWALLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": {
    "number": "5000000",
    "unit": "IRT"
  },
  "iban": "IR040560611828005553419001",
  "fee": {
    "number": "2200",
    "unit": "IRT"
  },
  "remark": "Payroll, November"
}'
Response
{
  "status": "OK",
  "result": {
    "id": 3052688,
    "supportCode": "SW-W9FP3ZC-QL7M",
    "timestamp": 1795170645000,
    "type": "FIAT_WITHDRAW",
    "status": "PENDING",
    "network": "INTERNAL",
    "exchangeFee": {
      "number": "2200",
      "unit": "IRT"
    },
    "fiatWithdraw": {
      "amount": {
        "number": "5000000",
        "unit": "IRT"
      },
      "value": {
        "number": "18.35536",
        "unit": "USD"
      },
      "userCurrencyValue": {
        "number": "5000000",
        "unit": "IRT"
      },
      "iban": "IR040560611828005553419001",
      "bank": "SAMAN",
      "holderName": "مریم کاظمی",
      "transfers": [
        {
          "id": 3052688,
          "amount": {
            "number": "5000000",
            "unit": "IRT"
          },
          "fee": {
            "number": "2200",
            "unit": "IRT"
          },
          "status": "PENDING"
        }
      ]
    }
  }
}