Skip to content

Check the rows of a payout batch

POST
/v1/payout-batches/validate
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.

FeitPay-Organization
string

Active organization for dashboard sessions. Ignored for API keys (the key determines the organization).

FeitPay-Environment
string
default: test
Allowed values: test live

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.

Media typeapplication/json
object
rows
required
Array<object>
>= 1 items <= 1000 items
object
destination_id

An allow-listed destination (or give asset + address).

string
asset
string
<= 40 characters
address
string
<= 200 characters
extra_id

Memo / destination tag of the address, if any.

string
<= 100 characters
amount
string
<= 60 characters
note

Label of the row (kept as the payout note).

string
<= 200 characters

Example generated

{
"rows": [
{
"destination_id": "example",
"asset": "example",
"address": "example",
"extra_id": "example",
"amount": "example",
"note": "example"
}
]
}

The result per row.

Media typeapplication/json
object
object
required
string
Allowed value: payout_batch_validation
ready
required

Every row is ready to be paid now.

boolean
max_rows
required
integer
rows
required
Array<object>
object
index
required

Zero-based position of the row.

integer
status
required
string
Allowed values: ready new_destination cooling_off invalid
asset
required
string
address
required
string
extra_id
required
string | null
amount
required
string
note
required
string
destination_id
required
string | null
usable_after
required

When a destination in its cooling-off becomes payable.

string | null format: date-time
minimum_payout
required
string | null
payout_fee
required
string | null
error_code
required
string | null
error_message
required
string | null

Example

{
"object": "payout_batch_validation",
"rows": [
{
"status": "ready"
}
]
}

Missing or invalid credentials.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

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.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

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.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

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.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}

Validation failed.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

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.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}

Too many requests. See Retry-After.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

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.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}
Retry-After
integer