Methods
| Method | Description |
|---|---|
create(transfer) | Create a new transfer |
sendWebhook(transferId) | Send a webhook notification for a transfer |
Create a transfer
Transfer requests are provider-specific. Pass theprovider field to select the request shape.
Stripe
PagarMe
BRLA
Provider request fields
| Field | Stripe | PagarMe | BRLA |
|---|---|---|---|
provider | "stripe" | "pagar_me" | "brla" |
source.currency | "usd" | "brl" | "brla" |
source.customer | Required | — | Optional |
destination.customer | Required (same as source) | — | Optional |
destination.payment_method | Bank PM by ID | — | Wallet or PM by ID |
provider_data | statement_descriptor | — | wallet_memo |
Send webhook
Trigger a webhook notification for a completed transfer:Transfer type constraints
Transfer payment method types are restricted to"customer_wallet" or "bank". The chain field is restricted to "polygon" or "celo".
Response
The response data extends the original request with:| Field | Type | Description |
|---|---|---|
id | string | Transfer ID |
status | string | Transfer status (e.g., "created") |
type | "transfer" | Always "transfer" |
provider | string | Provider used |
created_at | string | ISO timestamp |
updated_at | string | ISO timestamp |