Check the rows of a payout batch
package main
import ( "fmt" "strings" "net/http" "io")
func main() {
url := "https://api.feitpay.com/v1/payout-batches/validate"
payload := strings.NewReader("{ \"rows\": [ { \"destination_id\": \"example\", \"asset\": \"example\", \"address\": \"example\", \"extra_id\": \"example\", \"amount\": \"example\", \"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/validate';const options = { method: 'POST', headers: { 'FeitPay-Environment': 'test', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"rows":[{"destination_id":"example","asset":"example","address":"example","extra_id":"example","amount":"example","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/validate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'FeitPay-Environment: test' \ --data '{ "rows": [ { "destination_id": "example", "asset": "example", "address": "example", "extra_id": "example", "amount": "example", "note": "example" } ] }'Checks rows (from a form or a CSV asset,address,memo,amount,label) without holding or creating anything: each row is matched with an allow-listed destination of the organization (by id, or by asset + address + memo), its amount checked against the asset’s payout minimum and decimals, and its address format checked. A row whose address is not a destination yet is new_destination (add it with POST /v1/payout-destinations; it is payable after the security cooling-off), one still in its cooling-off is cooling_off with usable_after.
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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
object
An allow-listed destination (or give asset + address).
Memo / destination tag of the address, if any.
Label of the row (kept as the payout note).
Example generated
{ "rows": [ { "destination_id": "example", "asset": "example", "address": "example", "extra_id": "example", "amount": "example", "note": "example" } ]}Responses
Section titled “Responses”The result per row.
object
Every row is ready to be paid now.
object
Zero-based position of the row.
When a destination in its cooling-off becomes payable.
Example
{ "object": "payout_batch_validation", "rows": [ { "status": "ready" } ]}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" }}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" }}