---
title: HydrogenStorefrontCustomerApplicationUrlsReplacePayload - GraphQL Admin
description: Return type for `hydrogenStorefrontCustomerApplicationUrlsReplace` mutation.
api_version: unstable
api_name: admin
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/unstable/payloads/HydrogenStorefrontCustomerApplicationUrlsReplacePayload
  md: >-
    https://shopify.dev/docs/api/admin-graphql/unstable/payloads/HydrogenStorefrontCustomerApplicationUrlsReplacePayload.md
---

# Hydrogen​Storefront​Customer​Application​Urls​Replace​Payload

payload

Return type for `hydrogenStorefrontCustomerApplicationUrlsReplace` mutation.

## Fields

* javascript​Origin

  [\[String!\]](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String)

  List of allowed javaScript url origins.

* logout​Uris

  [\[String!\]](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String)

  List of allowed urls that can be redirected to post-logout.

* redirect​Uri

  [\[String!\]](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String)

  List of allowed callback urls.

* success

  [Boolean](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Boolean)

  Whether the customer application was updated successfully.

* user​Errors

  [\[Hydrogen​Storefront​Customer​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/HydrogenStorefrontCustomerUserError)

  non-null

  The list of errors that occurred from executing the mutation.

***

## Mutations with this payload

* [hydrogen​Storefront​Customer​Application​Urls​Replace](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/hydrogenStorefrontCustomerApplicationUrlsReplace)

  mutation

  Updates the customer account application URLs for a Hydrogen storefront, configuring the authentication and redirect endpoints used by Shopify's Customer Account API integration. This mutation validates URL formats and security requirements.

  For example, when setting up customer login functionality, developers configure the JavaScript origin for client-side authentication, logout redirect URIs for post-signout navigation, and the primary redirect URI for successful authentication flows.

  Use `hydrogenStorefrontCustomerApplicationUrlsReplace` to:

  * Configure customer authentication endpoints
  * Update redirect URLs for login and logout flows
  * Modify JavaScript origins for client-side integration
  * Validate URL security and format requirements

  The mutation replaces all existing URLs with the new configuration, ensuring consistent authentication behavior across the storefront. Detailed error reporting helps developers verify the configuration meets Shopify's security standards.

  Learn more about [Customer Account API integration](https://shopify.dev/docs/storefronts/headless/building-with-the-customer-account-api/getting-started).

  * storefront​Id

    [ID!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID)

    required

    ### Arguments

    The ID of the storefront.

  * urls​Replace​Input

    [Hydrogen​Storefront​Customer​Application​Urls​Replace​Input!](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/HydrogenStorefrontCustomerApplicationUrlsReplaceInput)

    required

    An object of fields to update on the customer oauth application.

  ***

***

## Map

### Mutations with this payload

* [hydrogen​Storefront​Customer​Application​Urls​Replace](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/hydrogenStorefrontCustomerApplicationUrlsReplace)
