POST CUSTOMER INVOICE USING FREEDOM API

AM trying to post customer invoice using freedom API.

But I got this error as per image below

"Object reference not set to an instance of an object."