The Payment Voucher resource represents a voucher that has been created for a customer to initiate voucher-based payment. This resource contains relevant details such as the voucher URL, the amount of the voucher, the status of the voucher, and more. Currently, the only supported voucher-based payment source is Boleto. Boleto is a payment method in Brazil that is regulated by the Central Bank of Brazil and is considered an official form of payment. This is also a popular voucher-based payment method in Brazil.
Note: This resource can be extended in the future to support other types of payment sources for vouchers.
{
"id": "pv_1mG11S1TcNM88A9Zm",
"id_at_gateway": "pi_3N0VBuK7ilSfRo7v0D66epcC",
"payment_voucher_type": "boleto",
"expires_at": 1682365190,
"status": "active",
"amount": 17800,
"gateway_account_id": "gw_161my9TXG5oNYwgv",
"payment_source_id": "pm_1mG11S1TcNM3LP9ZX",
"gateway": "stripe",
"payload": "{\"url\":\"https://payments.stripe.com/boleto/voucher/test_YWNjdF8xTHZnMFRLN2lsU2ZSbzd2LF9ObTNJN2NoejBsYldJeDI0VTVxemkwbnJaZUVTN0FH0100PvfYwtjd\",\"voucher_number\":\"01010101010101010101010101010101010101010101010\",\"expiry\":\"1682365190\"}",
"url": "http://john.chargebee.com/pages/v3/__dev__w5aPBsoEK5z6kIEt2mrEIH9GWLliHXrN/view_voucher",
"date": 1682365010,
"updated_at": 1682365010,
"resource_version": 1682365010580,
"object": "payment_voucher",
"currency_code": "BRL",
"customer_id": "test_d23ed22ew",
"linked_invoices": [
{
"invoice_id": "61",
"date": 1682364955,
"total": 17800,
"status": "payment_due"
}
]
}Creates a voucher type payment source. If you create this voucher type payment source using customer details, like tax ID, you can then generate a voucher with that payment source.
Retrieves a voucher using the unique payment_voucher_id
.
Retrieves vouchers for an invoice in reverse chronological order.
Retrieves vouchers for a customer in reverse chronological order.