Retrieve an event
const url = 'https://api.pachapay.io/v1/events/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.pachapay.io/v1/events/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The event.
object
Unique per event. Use it to ignore duplicates.
object
expired is not final: a late payment moves it to succeeded.
partially_paid and overpaid apply to transfers. chargeback applies to cards.
Amount the merchant asked for.
Amount actually received so far.
Our fee on the received amount, same currency.
Received amount minus fee.
ISO 4217 code. Crypto assets are not accepted in this field.
ISO 3166-1 alpha-2. Target countries for the first release are CL, CO, EC, PE, MX and BR; availability per country depends on the agreement with the payment provider.
Hosted checkout page, set for the hosted flow.
Total refunded so far in minor units.
object
E.164 format.
object
Payer IP address, optional. Used for risk checks.
Opaque device identifier from the merchant, optional. Used for risk checks.
What the payer must do next. Show it or redirect the payer.
object
object
Reference the payer must include.
Up to 20 string keys, values up to 500 characters. Returned as is.
object
object
After succeeded the bank may still return the money, then the status becomes returned.
Our fee; reserved on top of the amount.
ISO 4217 code. Crypto assets are not accepted in this field.
ISO 3166-1 alpha-2. Target countries for the first release are CL, CO, EC, PE, MX and BR; availability per country depends on the agreement with the payment provider.
object
object
object
E.164 format.
object
object
object
object
object
object
Must be whitelisted; a new address becomes active after 24 hours.
Set when the payout executes a refund.
Up to 20 string keys, values up to 500 characters. Returned as is.
object
object
Set when the refund is executed as a payout.
ISO 4217 code. Crypto assets are not accepted in this field.
object
ISO 4217 code. Crypto assets are not accepted in this field.
Can be paid out. Never negative.
Waiting for settlement.
Held against chargebacks.
Reserved for payouts and refunds in progress.
What the merchant owes after chargebacks. Payouts and refunds are blocked while it is above zero.
Example
{ "id": "evt_0192f3e5", "object": "event", "type": "payment.created", "data": { "id": "pay_0192f3a1", "object": "payment", "status": "created", "currency": "CLP", "country": "CL", "method_family": "card", "flow": "hosted", "payer": { "document": { "type": "RUT" } }, "next_action": { "type": "redirect" } }}Error. See error.code.
object
object
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.
Name of the offending parameter, if any.
Examples
Merchant not approved
{ "error": { "type": "permission_error", "code": "merchant_not_active", "message": "KYB is not approved for this merchant.", "request_id": "req_01" }}Not enough balance
{ "error": { "type": "invalid_state_error", "code": "insufficient_balance", "message": "Available balance is lower than the amount plus fee.", "param": "amount", "request_id": "req_02" }}Error. See error.code.
object
object
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.
Name of the offending parameter, if any.
Examples
Merchant not approved
{ "error": { "type": "permission_error", "code": "merchant_not_active", "message": "KYB is not approved for this merchant.", "request_id": "req_01" }}Not enough balance
{ "error": { "type": "invalid_state_error", "code": "insufficient_balance", "message": "Available balance is lower than the amount plus fee.", "param": "amount", "request_id": "req_02" }}