Skip to main content

Add a GET endpoint for customer identity and billing address

It looks like the Storefront API currently allows us to set and update a customer’s billing address, but there does not appear to be an endpoint for retrieving the currently stored address.

The sign-in and refresh responses only return the customer ID, name and email, and there is no documented GET endpoint for /api/customer/identity.

For a custom customer portal, it would be very useful to have an authenticated endpoint such as:

GET /api/customer/identity

returning the customer’s name, email, billing address and communication preferences.

Without this, we can update the billing address but cannot display or prefill the existing data.

Status: Completed1 comment

Log in to comment and vote

Comments1

  • Tobias Lønnerød Madsen

    Team•

    Nov 2

    Good news, this already exists. It just wasn't easy to find! In @moonbase.sh/storefront-api, client.identity.get() returns the signed-in customer's name, email, billing address and communication preferences (it calls GET /api/customer/meta/user).