Previewing fiat withdrawal

POST /api/public/v1/bank_withdrawal_transactions/build

This endpoint allows you to preview a fiat withdrawal details before submitting an actual Create Fiat Withdrawal request.

Headers

NameValue

Content-Type

application/vnd.api+json

Authorization

Bearer <api_key>

Request Body

{
  "data": {
    "type": "bankWithdrawalTransactions",
    "attributes": {
      "absorb_fees": true,
      "account_id": "acd50522-de49-4aaa-a183-dc046ff27fd5",
      "bank_account_id": "f96d0db2-3e5d-42b4-8e36-7a0ea2a951fe",
      "amount": 1000.55,
      "reference": "Reference number for this particular withdrawal"
    }
  }
}

NameTypeRequiredDescription

data.type

string

Yes

Can only be bankWithdrawalTransactions.

data.attributes.reference

string

Yes

The custom reference ID to tie the request to end-user or their account who gets paid. This can be anything you choose.

data.attributes.amount

number

Yes

Withdrawal amount.

data.attributes.account_id

string

Yes

Account ID on the Txn platform, e.g. your Euro account, which Txn will debit funds from.

data.attributes.bank_account_id

string

Yes

Beneficiary (bank account) ID. Refer to Listing Beneficiaries.

absorbFees

boolean

No

If false or omitted, the service fee is deducted from the transaction amount. If true, the service fee is deducted from your account balance.

Response Body

{
  "data": {
    "id": "",
    "type": "bank_withdrawal_transactions",
    "attributes": {
      "absorbFees": true,
      "createdAt": null,
      "updatedAt": null,
      "state": "unconfirmed",
      "iban": "GB94BARC10201530093459",
      "beneficiaryName": "Acme LLC",
      "reference": "Reference number for this particular withdrawal",
      "paymentStatus": "created",
      "currency": "EUR",
      "amount": "1010.56",
      "payAmount": "1000.55",
      "fee": "10.01"
    },
    "relationships": {
      "bankAccount": {
        "meta": {
          "included": false
        }
      },
      "account": {
        "meta": {
          "included": false
        }
      }
    }
  },
  "meta": {},
  "jsonapi": {
    "version": "1.0"
  }
}

Last updated