API Reference

Payment Transaction object

A Payment Transaction is an attempt to pay the installments of any of the services offered by Zafepay, Single Payments, Subscriptions and Payment Plans.

{
    "id": 10250,
    "amount": 5500,
    "installments": [
        {
            "id": "6444c8d6-7109-4812-8181-9f73b99ca4aa",
            "amount": 5500,
            "currency": "CLP",
            "due_date": "2023-07-29",
            "payment_date": "2023-07-29 10:00:00 UTC",
            "status": "paid"
        }
    ],
    "payment_date": "2023-07-29 10:00:00 UTC",
    "payment_method": "Webpay",
    "status": "accepted"
}

Attributes

The attributes available to a Payment Transaction object are:

NameTypeDescription
idstringPayment Transaction unique identifier.
amountnumberTotal amount of the Payment Transaction.
payment_datedatetimeDate where the payment transaction was made.
payment_methodstringThe payment method with which the Payment Transaction was made.
statusstringThe status of the payment transaction. A Payment Transaction can have the following statuses:
- accepted
- rejected
- reversed
- pending_approval
installmentsarray of jsonA list with all the installments paid in the Payment Transaction.