Bit Capital

The Bit Capital Developer Hub

Welcome to the Bit Capital developer hub. You'll find comprehensive guides and documentation to help you start working with the platform as quickly as possible, as well as support if you get stuck. Let's jump right in!

Guides    API Reference

External bank transfers (TED)

External bank transfers use the TED (Transferência Eletrônica Disponível) system in Brasil, which allows fast and secure fiat movement between accounts from different banks.

When creating a new withdrawal request through TED, you may send all the banking information as part of the transfer request, or you can select a previously created Banking for convenience.

const me = await bitcapital.users().me();
const source = me.wallets[0].id;

// Taking an asset out of the Bitcapital platform is always called "withdraw"
const transaction = await  bitcapital.wallets().withdraw(source, {
  amount: 100,
  // This banking information will be used to create a new Banking Information associated with the source user.
  // Optionally, instead of `bank` you could use a previously
  // created destination banking information.
  //
  // bankingId: '4bdbcc4c-203a-4a79-9608-c83a27ae528d'
  bank: {
    holderType: AccountType.PERSONAL,
    bank: '123',
    agency: 456,
    agencyDigit: '0', // Use zero or '' if unavailable
    account: 789,
    accountDigit: 'X', // Use zero or '' if unavailable
    name: 'John Nobody',
    taxId: '123456789', // CPF
  }
});
curl --location --request POST 'https://instance-url.btcore.app/wallets/7a19e13b-60c1-49cd-b309-165fd93b5485/withdraw' \
--header 'Authorization: Bearer 0000000000000000000000000000000000000000'\
--header 'Content-Type: application/json' \
--header 'X-Request-Signature: 140cf378103cb985a938fa3080401f9eb72524172f1a9725482c74a003d4993b' \
--header 'X-Request-Timestamp: 1578678110828' \
--data-raw '{
	"amount": "1.00",
	"bank": {
		"bank": 123,
		"agency": 456,
		"agencyDigit": "0",
		"account": 789,
		"accountDigit": "X",
		"taxId": "123456789",
		"name": "John Nobody"
	}
}'

Updated 17 days ago


External bank transfers (TED)


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.