# after_acceptorder

Event triggered after accepting order, either manually by staff or automatically after receiving pending payment

# Hook parameter

An array is passed as a basic order details from hb_orders table

Key Type Description
id int Order ID
number int Order number
payment_module int Payment module ID
client_id int Client ID
staff_member_id int Staff member ID
invoice_id int Invoice ID
total float Total amount
date_created string Date created
status string Current order status: ('Pending', 'Active', 'Cancelled', 'Fraud')
order_ip string IP number from which order has been placed
notes string Notes
metadata string Metadata
contract_accepted_date string Contract accepted date
contract_accepted_by int Contract accepted by

# Sample hook files

Last Updated: 3/17/2023, 8:40:19 AM