Account IDs in REST API results are deleting leading zeroes
search cancel

Account IDs in REST API results are deleting leading zeroes

book

Article ID: 282703

calendar_today

Updated On:

Products

CloudHealth

Issue/Introduction

The default formatting for account id fields from the REST API is numeric.

This can cause problems for account IDs with leading zeroes, which are lost in the API result.

Resolution

This can be resolved by adding an id_string=true query parameter to the call which will force the ID fields to be returned as strings and preserve leading zeros: