--- title: orderCustomerRemove - GraphQL Admin description: Removes customer from an order. api_version: 2025-07 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/2025-07/mutations/ordercustomerremove md: https://shopify.dev/docs/api/admin-graphql/2025-07/mutations/ordercustomerremove.md --- # order​Customer​Remove mutation Requires `write_orders` access scope. Also: The user must have permission to manage the order. Removes customer from an order. ## Arguments * order​Id [ID!](https://shopify.dev/docs/api/admin-graphql/2025-07/scalars/ID) required The ID of the order having its customer removed. *** ## Order​Customer​Remove​Payload returns * order [Order](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/Order) The order that had its customer removed. * user​Errors [\[Order​Customer​Remove​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/OrderCustomerRemoveUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### orderCustomerRemove reference ## Mutation Reference ```graphql mutation orderCustomerRemove($orderId: ID!) { orderCustomerRemove(orderId: $orderId) { order { # Order fields } userErrors { field message } } } ``` ## Input ```json { "orderId": "gid://shopify//10079785100" } ``` ##### Variables ``` { "orderId": "gid://shopify//10079785100" } ```