Incomplete order addresses in the Shopify Admin API

I am using the Shopify REST Admin API to fetch order details with the following request:

GET /admin/api/2024-07/orders.json?status=any

I have the read_orders and write_orders scopes enabled. However, in the API response, the billing_address field is missing crucial details such as name, address1, address2, city, zip, and phone. The only data returned under billing_address is:

"billing_address": {
    "province": "Ontario",
    "country": "Canada",
    "country_code": "CA",
    "province_code": "ON"
}

Similarly, the shipping_address also lacks full details. Since complete address details are required for processing, I would like to confirm whether this is expected behavior, a permissions issue, or a potential API bug.

Please let me know how to resolve this and retrieve the full billing and shipping address details.

Thank you.

I believe this is because your app doesn’t have permissions to view Customer Protected information PII. You can find out more information here Work with protected customer data

Also I would recommend looking at moving over to the GraphQL API as the REST API is legacy/deprecated now.