Retirement tax questions

My company sold/fitted patients with braces.  The $545 one was the payment from a hospital which I provided service to their patient in 2017 and billed them in 2017.  They didn't pay me until 1/10/18.  The other one was from an insurance company.