When retrieving the violation listing for a policy via the Policy REST API, the AWS account ID field is returned by default as an integer field. This means that account numbers with leading zeros will have those zeros stripped off. For example account 009999999 is returned as 9999999.
If you require these id's returned as strings you can optionally add the following parameter to your API call "id_string=true". This will add the leading zeros to the account id string. The default behavior of no leading zeros will be retained for backward compatibility with existing behavior. This additional parameter is available as of May 5, 2023.
Example syntax:
https://chapi.cloudhealthtech.com/v1/policies/:policy_id/policy_blocks/:policy_block_id/violations/:violation_id?api_key=:client_api_id&page=:page_number&per_page=:count_per_page
&id_string=true