MagenMagen Docs

Internal transfer

When to use

  • Transfer between accounts of the same operation (headquarters/branch)
  • Payment to a partner that is also a Magen customer
  • Internal balance movement (wallets, operational sub-accounts)

Create transfer

You need the accountNumber (6 digits) of both payer and receiver. The payer must match the account authenticated by the token.

curl -X POST https://api.magen.processamento.com/v1/internal-transfer \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "payerAccountNumber": "513579",
    "receiverAccountNumber": "987654",
    "amount": 100.50,
    "description": "Pagamento referente a fatura #1234",
    "callbackUrl": "https://seusite.com.br/webhooks/magen",
    "clientReference": "transfer-abc-123"
  }'
const res = await fetch('https://api.magen.processamento.com/v1/internal-transfer', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.MAGEN_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    payerAccountNumber: '513579',
    receiverAccountNumber: '987654',
    amount: 100.50,
    description: 'Pagamento referente a fatura #1234',
    callbackUrl: 'https://seusite.com.br/webhooks/magen',
    clientReference: 'transfer-abc-123',
  }),
});
res = requests.post(
    'https://api.magen.processamento.com/v1/internal-transfer',
    headers={
        'Authorization': f'Bearer {os.environ["MAGEN_TOKEN"]}',
        'Content-Type': 'application/json',
    },
    json={
        'payerAccountNumber': '513579',
        'receiverAccountNumber': '987654',
        'amount': 100.50,
        'description': 'Pagamento referente a fatura #1234',
        'callbackUrl': 'https://seusite.com.br/webhooks/magen',
        'clientReference': 'transfer-abc-123',
    },
)

Fields

FieldTypeRequiredDescription
payerAccountNumberstringYesPayer account (6 digits). Must match the token.
receiverAccountNumberstringYesDestination account (6 digits).
amountnumberYesAmount in BRL. Minimum R$ 0.01.
descriptionstringNoFree text up to 140 characters.
callbackUrlstringNoURL to receive updates.
clientReferencestringNoExternal identifier (idempotência). Max 64 chars.
virtualAccountstringNoVirtual sub-account (multi-tenant). Max 50 chars.

Full schema at POST /internal-transfer.

Query

Accepts id, clientReference or virtualAccount (use only one).

curl "https://api.magen.processamento.com/v1/internal-transfer?clientReference=transfer-abc-123" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json"

Differences vs Pix Withdrawal

AspectInternal transferPix withdrawal (/withdraw)
DestinationMagen accountAny bank/account
FeePer account fee schedulePer fee schedule
SettlementInstantPix in seconds
IdentifieraccountNumber (6 digits)Pix key or QR Code

The destination account's accountNumber comes from the Magen partner. The platform does not expose a public account directory.

On this page