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. 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: