Thank you for your email. We can inform you that the customs office at Schoenefeld Airport, located on the first floor in Terminal A, always opens when there is a departure.So even at 1am, there should be customs officers at the counter to stamp your receipts.
http://www.globalblue.cn/customer-services/tax-free-shopping/refund-points/germany/berlin-tegel2/
http://www.globalblue.cn/customer-services/tax-free-shopping/refund-points/germany/berlin-schonefeld1/