Skip to content
Draft: the API is under development and may change before the first release

Merchant balances by currency

GET
/balances
curl --request GET \
--url https://api.pachapay.io/v1/balances \
--header 'Authorization: Bearer <token>'

available can be paid out, pending is waiting for settlement, reserve is held against chargebacks, hold is reserved for payouts and refunds in progress, debt is what you owe after chargebacks.

One entry per currency.

Media typeapplication/json
object
data
required
Array<object>
object
object
required
string
Allowed value: balance
currency
required

ISO 4217 code. Crypto assets are not accepted in this field.

string
Allowed values: CLP COP PEN MXN BRL USD
available
required

Can be paid out. Never negative.

integer format: int64
pending
required

Waiting for settlement.

integer format: int64
reserve
required

Held against chargebacks.

integer format: int64
hold
required

Reserved for payouts and refunds in progress.

integer format: int64
debt
required

What the merchant owes after chargebacks. Payouts and refunds are blocked while it is above zero.

integer format: int64
updated_at
string format: date-time

Example

{
"data": [
{
"object": "balance",
"currency": "CLP"
}
]
}

Error. See error.code.

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

Stable machine-readable code that does not change within a major version. Examples are parameter_invalid, parameter_missing, amount_out_of_range, api_key_invalid, api_key_revoked, merchant_not_active, method_not_allowed, country_not_allowed, resource_not_found, idempotency_conflict, idempotency_in_progress, invalid_state, insufficient_balance, method_not_available, blocked_payer, limit_exceeded, rate_limited, internal_error, provider_unavailable, service_unavailable.

string
message
required
string
param

Name of the offending parameter, if any.

string
request_id
required
string

Examples

Merchant not approved

{
"error": {
"type": "permission_error",
"code": "merchant_not_active",
"message": "KYB is not approved for this merchant.",
"request_id": "req_01"
}
}

Error. See error.code.

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

Stable machine-readable code that does not change within a major version. Examples are parameter_invalid, parameter_missing, amount_out_of_range, api_key_invalid, api_key_revoked, merchant_not_active, method_not_allowed, country_not_allowed, resource_not_found, idempotency_conflict, idempotency_in_progress, invalid_state, insufficient_balance, method_not_available, blocked_payer, limit_exceeded, rate_limited, internal_error, provider_unavailable, service_unavailable.

string
message
required
string
param

Name of the offending parameter, if any.

string
request_id
required
string

Examples

Merchant not approved

{
"error": {
"type": "permission_error",
"code": "merchant_not_active",
"message": "KYB is not approved for this merchant.",
"request_id": "req_01"
}
}