Recharge voucher
Allows to recharge a voucher (bono) for a customer. The voucher type determines if it’s a money voucher or units voucher.
POST https://dev.v3manager.com/api/vouchers/api/recharge.json
Parameters
{
customer: "int",
voucherType: "int",
amount: "float",
price: "float?",
expiration: "datetime?",
notes: "string?",
paymentMethod: "int?"
}
- customer: Customer ID to recharge the voucher for
- voucherType: Voucher type ID
- amount: Amount to recharge (money or units depending on voucher type)
- price: Optional price of the recharge. If not provided, the price will be obtained from the product associated with the voucher type
- expiration: Optional expiration date for the recharge
- notes: Optional notes/comments for the recharge
- paymentMethod: Optional payment method ID. If provided, the sale will be automatically paid using this method
Example request:
{
"customer": 123,
"voucherType": 5,
"amount": 100.00,
"price": 90.00,
"expiration": "2025-12-31T23:59:59",
"notes": "Annual recharge",
"paymentMethod": 1
}
Response
{
"balance": 250.00,
"sale": {
"id": 456,
"customer": 123,
"description": "Recarga: Bono Premium",
"total": 90.00,
"product": 10,
"status": 3,
"created": "2025-10-22T10:30:00"
}
}
- balance: Current balance of the customer for this voucher type after the recharge
- sale: The created sale object with all its properties