def METHOD_NAME(
    staff_api_client,
    gift_card,
    gift_card_expiry_date,
    gift_card_used,
    permission_manage_gift_card,
):
    # given
    variables = {
        "sortBy": {
            "direction": "ASC",
            "field": "CURRENT_BALANCE",
        }
    }
    # when
    response = staff_api_client.post_graphql(
        QUERY_GIFT_CARDS, variables, permissions=[permission_manage_gift_card]
    )
    # then
    content = get_graphql_content_from_response(response)
    assert len(content["errors"]) == 1
    assert (
        content["errors"][0]["message"]
        == "Sorting by balance requires filtering by currency."
    )