Partner wants an API call that retrieves Statements for all customers and the ability to correlate each statement to a customer. The current API call to get all channel customer statements https://apidocs.cloudhealthtech.com/#partner_statements-for-all-customers does not list the customer IDs in the response so it is difficult to identify which invoice belongs to which customer.
A possible workaround is for partner to build a script that combines two calls.
First, retrieve a list of all customer tenants to get their client_api_id numbers using this call:
https://apidocs.cloudhealthtech.com/#partner_get-all-customers
and then pull the statements for individual customers, by specifying the client_api_id in each call:
https://apidocs.cloudhealthtech.com/#partner_statement-for-single-customer