Endpoint terbuka
No authentication required.
Redeem voucher
POST {base_url}/V1/reedem
Open endpoint (no auth) that proxies a voucher redemption to the external RentToday provider. Requires a suppliers row with code="renttoday" carrying url / api_key / token / is_prod in config_fields jsonb; without it every call returns 422 gagal dari operator. Every attempt writes one row to reedem_logs.
Body (JSON):
{
"voucher_kode": "VOUCHER-CODE",
"nomor_whatsapp": "081234567890"
}
Contoh respons:
{
"status": "success", "code": 200, "message": "success",
"data": { "data": { "status": true, "message": "Redeem Berhasil", "data": { "akun": "...", "password": "...", "pin": "..." } } }
}