Pay several wallets at once
package main
import ( "fmt" "strings" "net/http" "io")
func main() {
url := "https://api.feitpay.com/v1/payout-batches"
payload := strings.NewReader("{ \"label\": \"example\", \"rows\": [ { \"destination_id\": \"example\", \"amount\": \"59.90\", \"note\": \"example\" } ] }")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("FeitPay-Environment", "test") req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://api.feitpay.com/v1/payout-batches';const options = { method: 'POST', headers: { 'FeitPay-Environment': 'test', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"label":"example","rows":[{"destination_id":"example","amount":"59.90","note":"example"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.feitpay.com/v1/payout-batches \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'FeitPay-Environment: test' \ --data '{ "label": "example", "rows": [ { "destination_id": "example", "amount": "59.90", "note": "example" } ] }'Creates one ordinary payout per row (each holds its own gross amount and pays its own withdrawal fee and FeitPay fee, exactly like POST /v1/payouts), all or nothing. Every row names an allow-listed destination past its security cooling-off. With merchant four-eyes, another member approves the whole batch once (POST /v1/payout-batches/{payout_batch_id}/approve); then every payout goes through the usual review: the automatic approval applies per payout and its 24-hour total counts the whole batch. At most max_rows rows (100); batches per 24 hours are limited separately from single payouts. Honors Idempotency-Key.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Active organization for dashboard sessions. Ignored for API keys (the key determines the organization).
test (default) or live for dashboard sessions. API keys determine the environment. Until the platform is in production, configuration (stores, webhook endpoints, payment links) is live and money movement answers payments_not_enabled.
Unique key per logical create operation (max 255 chars). Replays return the original response; reuse with a different body returns idempotency_error.
Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Decimal string. Never a float.
Responses
Section titled “Responses”Batch created; every amount is held.
object
Derived from its payouts: pending_approval (waiting for the merchant’s second member), pending_operator (some payouts wait for FeitPay’s review), processing (being sent), completed (every payout complete), partially_completed (done; some payouts did not go out), canceled, rejected, failed.
Number of payouts per status.
object
object
Decimal string. Never a float.
Integer amount in the asset’s smallest unit.
Decimal string. Never a float.
Decimal string. Never a float.
Decimal string. Never a float.
object
Gross amount requested; the balance is debited (held) this amount.
Integer amount in the asset’s smallest unit.
Decimal string. Never a float.
Integer amount in the asset’s smallest unit.
Decimal string. Never a float.
Integer amount in the asset’s smallest unit.
Rate applied, fixed at request time (monthly tier).
platform_fee_bps as a percentage.
What the destination receives, amount - fee - platform_fee (the network fee is paid by the platform wallet).
Integer amount in the asset’s smallest unit.
EUR value of amount at request time (live; tier audit).
The organization’s month-to-date live payout value in EUR that this payout saw, itself included; above 1000.00 the higher rate applied.
Memo / destination tag sent with the payout (from the destination). Absent when none.
The payout batch it belongs to (ADR-0033). Absent for single payouts.
PIX transfers only, once settled: the account that received it, as the receiving bank reported it (a PIX key cannot be looked up before a transfer). Absent otherwise.
object
Account holder’s name as the bank reports it.
The holder’s CPF or CNPJ
The receiving bank.
Pending_approval (waiting for a second merchant member) → pending_operator (FeitPay review; payouts within the automatic approval limits skip it and go straight to submitting, see approval) → submitting → submitted (created in the payment processor) → sent (broadcast) → complete (confirmed). Terminal: rejected, canceled, failed.
feitpay: sent by FeitPay’s hot wallet (live).
Network fee the processor reported for the transaction (paid by the platform wallet, not by the merchant).
Why the payout failed (English).
Stable code of failure_reason for clients that explain it in the reader’s language: asset_not_held (no platform wallet holds the asset; nothing was sent), processor_unavailable (the processor could not be reached; nothing was sent), processor_refused, submission_interrupted and send_failed (verify before the funds are released), canceled_before_sending, address_not_accepted (the processor does not accept this address yet; nothing was sent and the amount is back), processor_balance_low (the PIX account could not cover the transfer; nothing was sent), pix_holder_required (the PIX processor requires the payee’s full name and CPF or CNPJ, which the key does not have; nothing was sent and the amount is back), simulated_failure and other.
The held amount went back to the available balance (always for canceled and rejected payouts; for a failed payout only when nothing can have been sent, or after an operator verified that and released it).
Who approves a live payout (ADR-0029). auto: FeitPay approved it automatically (within the automatic approval limits) and sent it like an operator approval; operator: a FeitPay operator decides or decided. Merchants see mode only; the other fields are operator console only.
object
Operator console only. Outcome of the automatic check: within_limits (approved) or why it waits for an operator. Null when no automatic check ran (payouts from before ADR-0029). processor_balance_unknown / processor_balance_low: a payout through the second processor (ADR-0032) whose custody balance reading is missing or older than 10 minutes, or does not cover the net amount plus the withdrawal fee. processor_whitelist_pending: the second processor pays only addresses whitelisted in its account (a deployment setting, ADR-0033), so the payout waits for an operator who checked the address there.
Operator console only. Plain-language reason (English).
Operator console only. The automatic approval limit in EUR at decision time.
Operator console only. EUR value of this payout at request time.
Operator console only. The merchant’s live payouts of the last 24 hours, this one included (null when not reached).
Operator console only. The gas tank that pays this token’s payouts, as read at decision time.
object
Operator console only.
When the payout first left the platform wallet (became sent, or complete directly). Null before that. When the funds show up is decided by the receiving wallet or exchange (confirmations it waits for).
Operator console only.
Operator console only.
Example
{ "object": "payout_batch", "status": "pending_approval", "totals": [ { "amount": "59.90", "amount_units": "99834", "fee": "59.90", "platform_fee": "59.90", "net_amount": "59.90" } ], "payouts": [ { "object": "payout", "amount": "59.90", "amount_units": "99834", "fee": "59.90", "fee_units": "99834", "platform_fee": "59.90", "platform_fee_units": "99834", "platform_fee_rate": "2%", "net_amount": "59.90", "net_amount_units": "99834", "status": "pending_approval", "requested_via": "session", "processor": "feitpay", "failure_code": "asset_not_held", "approval": { "mode": "auto", "code": "within_limits", "gas_tank": { "state": "ok" } } } ]}Missing or invalid credentials.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Authenticated but not permitted. Any route may also answer request_blocked when abuse protection has blocked the client IP for a while.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}State conflict.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Validation failed.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Too many requests. See Retry-After.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}