We have it working now with /admin/api/2024-04/orders.json?name=#110469 (no encoding)
Older API versions seem to be broken.
Issue: Retrieving a single Shopify order via REST API fails when the order name contains the default # prefix (e.g., #6298). Queries return all orders instead of the specific one, or return nothing when the # is omitted.
Root Cause: The # character in URL parameters causes parsing issues. Standard URL encoding (%23) and various query formats initially failed to resolve the problem.
Working Solutions:
query=name:<order_name> instead of name=<order_name>
/admin/api/2023-07/orders.json?query=name:#6298 or with %23 encoding/orders.json?name=#110469 works without special encoding# to something else (e.g., US, CA)Key Notes:
# prefix correctly&status=any parameter alone does not resolve the issuequery=name: format solutionWe have it working now with /admin/api/2024-04/orders.json?name=#110469 (no encoding)
Older API versions seem to be broken.